Skip to main content
Topic: [SOLVED] apache can't run PHP (Read 383 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] apache can't run PHP

I installed php-apache.

I could not see a thing so I checked the files:
Code: [Select]
pacman -Ql php-apache 
php-apache /etc/
php-apache /etc/httpd/
php-apache /etc/httpd/conf/
php-apache /etc/httpd/conf/extra/
php-apache /etc/httpd/conf/extra/php_module.conf
php-apache /usr/
php-apache /usr/lib/
php-apache /usr/lib/httpd/
php-apache /usr/lib/httpd/modules/
php-apache /usr/lib/httpd/modules/libphp.so

I added to `/etc/httpd/conf/httpd.conf`:
Code: [Select]
Include conf/extra/php_module.conf
LoadModule php_module /usr/lib/httpd/modules/libphp.so

Apache service does not start anymore:
Code: [Select]
Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe.  You need to recompile PHP.


 

Re: apache can't run PHP

Reply #2
Yes I searched that error but I did not found the Arch wiki.
I tried that fix already, and apache started but I did not see anything.

I was missing "AddHandler php-script .php" in the conf https://wiki.archlinux.org/title/Apache_HTTP_Server#Using_libphp.

If I need php-mbstring and php-curl can I just use php83-mbstring and php83-curl from the AUR?