DEV Community

sa3i0l
sa3i0l

Posted on

php u apache

pacman -S php php-apache
Enter fullscreen mode Exit fullscreen mode

In /etc/httpd/conf/httpd.conf, comment the line:

#LoadModule mpm_event_module modules/mod_mpm_event.so
Enter fullscreen mode Exit fullscreen mode

and uncomment the line:

LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
Enter fullscreen mode Exit fullscreen mode

Note: The above is required, because libphp.so included with the package does not work with mod_mpm_event, but will only work mod_mpm_prefork instead. As an alternative, you can use mod_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
Enter fullscreen mode Exit fullscreen mode
  • Place this at the end of the Include list:
Include conf/extra/php_module.conf
Enter fullscreen mode Exit fullscreen mode

vidi docs za jos

Top comments (0)