pacman -S php php-apache
In /etc/httpd/conf/httpd.conf
, comment the line:
#LoadModule mpm_event_module modules/mod_mpm_event.so
and uncomment the line:
LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
Note: The above is required, because
libphp.so
included with the package does not work withmod_mpm_event
, but will only workmod_mpm_prefork
instead. As an alternative, you can usemod_proxy_fcgi
--> To enable PHP, add these lines to /etc/httpd/conf/httpd.conf
:
- Place this at the end of the
LoadModule
list:
LoadModule php_module modules/libphp.so
AddHandler php-script .php
- Place this at the end of the
Include
list:
Include conf/extra/php_module.conf
Top comments (0)