Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.

Moderators: ArturoRobles, ArturoRobles

Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
User avatar
By mk8800
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
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"

Code: Select all
<IfModule mod_rewrite.c>
      	 RewriteEngine On
RewriteCond %{REQUEST_URI} !^/cakephp/
       	RewriteCond %{REQUEST_FILENAME} !-f
       	RewriteRule ^(.*)$ /app.php [QSA,L]
2. INSTALL_DRIVE:\processmaker-3.2-0\apps\processmaker\htdocs\cakephp\config\app.php
Code: Select all
	'Error' => [
        'errorLevel' => E_ALL ^ E_DEPRECATED ^ E_STRICT^ E_NOTICE,
        'exceptionRenderer' => 'Cake\Error\ExceptionRenderer',
        'skipLog' => [],
        'log' => true,
        'trace' => true,
3. INSTALL_DRIVE:\processmaker-3.2-0\apps\processmaker\htdocs\cakephp\vendor\cakephp\cakephp\src\I18n\functions.php
Code: Select all
function ___($singular, ...$args)
        if (!$singular) {
            return null;
        if (isset($args[0]) && is_array($args[0])) {
            $args = $args[0];

        return I18n::translator()->translate($singular, $args);
4. INSTALL_DRIVE:\processmaker-3.2-0\apps\processmaker\htdocs\cakephp\loader.php
New file:
Code: Select all
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.

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";

I have a suggest where user have to select some do[…]

The 500 Internal Server Error is the general catch[…]

Really very nice blog information for this one and[…]

This is a long, lengthy and cumbersome process. T[…]