ProcessMaker 2.8 Installation for Apache 2.4 on a Debian 8 (jessie)

Note: This release of ProcessMaker (2.8) has not been yet fully tested with GLPI Processmaker plugin, so beware some features may not be available.

Pre-requisites:

  1. Apache 2.4: my doc root is /var/www/html and Apache is running user www-data.
  2. PHP5-FPM (or HHVM 3.7.0): configured as a FastCGI server listenning on port 9000 and running user www-data.

PHP5-FPM is included in Debian as a package: http://php.net/manual/en/install.fpm.php
HHVM package must be added to the package manager: see https://github.com/facebook/hhvm/wiki/Prebuilt-Packages-on-Debian-8.

Steps for installation:

  1. Download: http://sourceforge.net/projects/processmaker/files/ProcessMaker/2.8/2.8.0/processmaker-2.8-community.98ca8de.tar.gz/download.
  2. Expand the archive in /var/www/html. you should get: /var/www/html/processmaker...
  3. Move your GLPI folder to /var/www/html/processmaker/workflow/public_html
  4. Execute following commands: sudo chmod -R ug=rwX,o=r /var/www and sudo chown -R www-data:www-data /var/www
  5. Edit Apache configuration file (mine is: sudo gedit /etc/apache2/sites-enabled/000-default.conf), and add (or change) your default virtual host definition:
    <VirtualHost *:80>
        DocumentRoot /var/www/html/processmaker/workflow/public_html
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
        DirectoryIndex index.php
    
        RewriteEngine On
    #    LogLevel alert rewrite:trace8
    
       <LocationMatch "^/pm">
        Redirect "/pm" "/sys/en/neoclassic/login/login" 
       </LocationMatch>
    
       <LocationMatch "^/$">
        Redirect "/" "/glpi/" 
       </LocationMatch>
    
       <LocationMatch "^/glpi/">
        RewriteCond %{REQUEST_FILENAME} -f
        RewriteRule ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/$1 [QSA,L,P]
       </LocationMatch>
    
       <Directory "/var/www/html/processmaker/workflow/public_html">
        AddDefaultCharset UTF-8
        AllowOverRide none
        Options FollowSymlinks
        Order allow,deny
        Allow from all
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^(.*)$ fcgi://127.0.0.1:9000/var/www/html/processmaker/workflow/public_html/app.php [QSA,L,P]
    
        ExpiresActive On
        ExpiresDefault "access plus 1 day" 
        ExpiresByType image/gif "access plus 1 day" 
        ExpiresByType image/png "access plus 1 day" 
        ExpiresByType image/jpg "access plus 1 day" 
        ExpiresByType text/css "access plus 1 day" 
        ExpiresByType text/javascript "access plus 1 day" 
        AddOutputFilterByType DEFLATE text/html
       </Directory>
    
    # by default other files are served by Apache
    
    </VirtualHost>
    
    
Apache with the following modules enabled:
  • deflate
  • expires
  • rewrite
  • vhost_alias
  • filter

ProcessMaker configuration

See: ProcessMaker Server Configuration