- Tue Jun 13, 2017 4:19 am
#793199
Our efforts done on windows but it can be applied to linux with a bit of modifiction.
Put cakephp 3.4 in INSTALL_DRIVE:/processmaker-3.2-0/apps/processmaker/htdocs/cakephp and follow the steps...
1. INSTALL_DRIVE:\processmaker-3.2-0\apps\processmaker\conf\httpd-app.conf
Add:
Mod:
Mod:
Mode:
New file:
5. INSTALL_DRIVE:\processmaker-3.2-0\apps\processmaker\htdocs\workflow\public_html\app.php
Add at first:
Put cakephp 3.4 in INSTALL_DRIVE:/processmaker-3.2-0/apps/processmaker/htdocs/cakephp and follow the steps...
1. INSTALL_DRIVE:\processmaker-3.2-0\apps\processmaker\conf\httpd-app.conf
Add:
Code: Select all
Alias /cakephp INSTALL_DRIVE:/processmaker-3.2-0/apps/processmaker/htdocs/cakephp
<Directory "INSTALL_DRIVE:\processmaker-3.2-0\apps\processmaker\htdocs\cakephp">
#RewriteEngine off
require all granted
AllowOverride ALL
#Options FollowSymlinks Indexes
Options FollowSymlinks
ExpiresActive On
ExpiresDefault "access plus 1 seconds"
ExpiresByType image/gif "access plus 10 day"
ExpiresByType image/png "access plus 10 day"
ExpiresByType image/jpg "access plus 10 day"
ExpiresByType text/css "access plus 10 day"
ExpiresByType text/javascript "access plus 10 day"
</Directory>
Mod:
Code: Select all
2. INSTALL_DRIVE:\processmaker-3.2-0\apps\processmaker\htdocs\cakephp\config\app.php<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/cakephp/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /app.php [QSA,L]
</IfModule>
Mod:
Code: Select all
3. INSTALL_DRIVE:\processmaker-3.2-0\apps\processmaker\htdocs\cakephp\vendor\cakephp\cakephp\src\I18n\functions.php 'Error' => [
'errorLevel' => E_ALL ^ E_DEPRECATED ^ E_STRICT^ E_NOTICE,
'exceptionRenderer' => 'Cake\Error\ExceptionRenderer',
'skipLog' => [],
'log' => true,
'trace' => true,
],
Mode:
Code: Select all
4. INSTALL_DRIVE:\processmaker-3.2-0\apps\processmaker\htdocs\cakephp\loader.phpfunction ___($singular, ...$args)
{
if (!$singular) {
return null;
}
if (isset($args[0]) && is_array($args[0])) {
$args = $args[0];
}
return I18n::translator()->translate($singular, $args);
}
New file:
Code: Select all
<?php
require __DIR__ . '/vendor/autoload.php';
use App\Application;
use Cake\Http\Server;
// Bind your application to the server.
$server = new Server(new Application(__DIR__ . '/config'));
// Run the request/response through the application
// and emit the response.
$server->run();
5. INSTALL_DRIVE:\processmaker-3.2-0\apps\processmaker\htdocs\workflow\public_html\app.php
Add at first:
Code: Select all
require_once "INSTALL_DRIVE:/processmaker-3.2-0/apps/processmaker/htdocs/cakephp/loader.php";