Answer the question
In order to leave comments, you need to log in
Apache 2.2 won't start after PHP update. How to fix?
After updating php on old freebsd 8, it is not possible to start apache. After searching for the error, it became clear that apache does not load php as a module. I myself am not a sysadmin and I configured this server about 5 years ago so that the php + nginx + apache bundle worked there.
After much torment, I can’t set up php + nginx, so I decided to try the old fashioned php + apache.
How to start apache?
Invalid command 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration
Answer the question
In order to leave comments, you need to log in
Not every version of php is compatible with every version of Apache.
You need to look at which php library suits your apache, you may need to either substitute the right library or update apache itself.
That is why now they often use ready-made LAMPs and do not put everything separately
You (nothing that starts with "you") most likely do not have the libphp5.so module enabled in httpd.conf (well, or in one of the configs).
Usually, if apache22, in the /usr/local/etc/apache22/httpd.conf config, at about line 75, it should be like this:
LoadModule php5_module libexec/apache22/libphp5.so
next to other LoadModule. Or in one of the config files. Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question