Dear Wiki user, You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change notification.
The following page has been changed by BramMertens: http://wiki.apache.org/httpd/ScratchPad/DebianPHP ------------------------------------------------------------------------------ }}} Which will simply symlink ''/etc/apache2/mods-available/php5.conf'' and ''/etc/apache2/mods-available/php5.load'' to ''/etc/apache2/mods-enabled/''. + If you had php4 installed you might get the following error when restarting apache: + {{{ + Forcing reload of web server (apache2)...apache2: Syntax error on line 185 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php4.load: Cannot load /usr/lib/apache2/modules/libphp4.so into server: /usr/lib/apache2/modules/libphp4.so: cannot open shared object file: No such file or directory + failed! + }}} + To solve this disable the php4 module: + {{{ + a2dismod php4 + }}} + You're half done now. The last two things that need to be taken care of are to '''correct''' Debian's [and php.net's] default PHP configuration for Apache. You can do this by typing: {{{ sed -r 's/AddType/AddHandler/g' -i /etc/apache2/mods-available/php5.conf
