After upgrade Apache from 2.2 to 2.4, Apache is not starting

Created:

2016-11-16 13:12:38 UTC

Modified:

2017-04-24 11:17:10 UTC

0

Was this article helpful?


Have more questions?

Submit a request

After upgrade Apache from 2.2 to 2.4, Apache is not starting

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux
  • Plesk 10.x and below for Linux

Symptoms

After failed Plesk upgrade on Debian OS with Apache version 2.4 installed, web server is not starting. The following error messages appears:

  1. apache2: Syntax error on line 234 of /etc/apache2/apache2.conf: Syntax error on line 5 of /etc/apache2/conf.d/zz010_psa_httpd.conf: Syntax error on line 72 of /etc/apache2/plesk.conf.d/server.conf: No matches for the wildcard '*.conf' in '/etc/apache2/plesk.conf.d/ip_default', failing (use IncludeOptional if required)
    Action 'configtest' failed.
    The Apache error log may have more information.
  2. Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration
  3. SSLSessionCache: 'shmcb' session cache not supported (known names: dbm,memcache). Maybe you need to load the appropriate socache module (mod_socache_shmcb?).
  4. The apache2 instance did not start within 20 seconds. Please read the log files to discover problems.
  5. [proxy_balancer:emerg] [pid 25870] AH01177: Failed to lookup provider 'shm' for 'slotmem': is mod_slotmem_shm loaded?
  6. Invalid command 'Require', perhaps misspelled or defined by a module not included in the server configuration
    1. Invalid command 'User', perhaps misspelled or defined by a module not included in the server configuration1.

      Invalid command 'DirectoryIndex', perhaps misspelled or defined by a module not included in the server configuration

Cause

Configuration files were not completely switched to the new Apache 2.4

Resolution

  1. Check if custom templates exist in /usr/local/psa/admin/conf/templates folder. If so review all of them and change Include to IncludeOptional in every line what contain wildcard.

  2. If there are no custom templates change Include to IncludeOptional in every line what contain wildcard in the following files:

/etc/apache2/conf.d/zz010_psa_httpd.conf
/etc/apache2/plesk.conf.d/server.conf
/etc/apache2/plesk.conf.d/horde.conf

  1. Enable and activate the following Apache modules
    ~# a2enmod authz_core authz_host access_compat socache_shmcb slotmem_shm mpm_worker unixd php5 dir
Have more questions? Submit a request
Please sign in to leave a comment.