Page 1 of 1

Broke Apache2.4 and can't get PHP working?

Posted: Fri Dec 27, 2013 5:28 am
by KeiroD
... If you upgraded from Apache 2.2 to Apache 2.4, like I did, you'll find that some of your stuff has broken.

To get Apache 2.4 and PHP working again, you will need to use the following commands:

Code: Select all

apt-get install libapache2-mod-php5
This will re-enable PHP with Apache 2.4. If you had MySQL working with Apache 2.2, it will function fine again.

You will also need to change these:

Code: Select all

Order Allow,Deny
Allow from apache.org
Deny from foo.apache.org 
To:

Code: Select all

        Require all denied
or Require all granted as needed for anything that generates the "Invalid command 'order', perhaps misspelled or defined by a module not included in the server configuration" when dealing with apache 2.4