V
V
Vincent12015-12-18 15:28:22
PHP
Vincent1, 2015-12-18 15:28:22

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

________________
Resolved:
Update Apache and install mod_php55 from ports to make everything work together.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Saboteur, 2015-12-18
@Vincent1

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

Y
Yuri, 2015-12-18
@xtreme

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.
When uninstalling php (and about portupgrade), this line is removed, but it may not have stuck back.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question