You are not logged in.
I was working on some (non-PHP) Apache configuration, when I went to restart httpd I got the following error:
Cannot load /etc/httpd/modules/libphp5.so into server: /etc/httpd/modules/libphp5.so: undefined symbol: ap_log_rerror_
Here is the console output:
stav@shiva:~$ sudo systemctl restart httpd
Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.
stav@shiva:~$ sudo systemctl status httpd
● httpd.service - Apache Web Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled)
Active: failed (Result: exit-code) since Wed 2014-07-02 17:25:29 EDT; 1s ago
Process: 2675 ExecStart=/usr/bin/apachectl start (code=exited, status=1/FAILURE)
Jul 02 17:25:29 shiva apachectl[2675]: httpd: Syntax error on line 125 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/libphp5.so into server: /etc/httpd/modules/libphp5.so: undefined symbol: ap_log_rerror_
Jul 02 17:25:29 shiva systemd[1]: httpd.service: control process exited, code=exited status=1
Jul 02 17:25:29 shiva systemd[1]: Failed to start Apache Web Server.
Jul 02 17:25:29 shiva systemd[1]: Unit httpd.service entered failed state.
I removed all PHP & deps, reinstalled just PHP 5.5 and PHP worked ok. Then when I installed php-apache and I got the error again.
I downgraded to PHP 5.4 and now it works.
More info:
stav@shiva:/etc/php$ httpd -v
Server version: Apache/2.2.26 (Unix)
Server built: Mar 13 2014 16:37:13
stav@shiva:/etc/php$ httpd -l
Compiled in modules:
core.c
prefork.c
http_core.c
mod_so.c
I'm having trouble installing Apache 2.4 so that's why I'm still on 2.2.
Any ideas how to get PHP 5.5 working?
Offline
As far as I know php-apache apache module is compiled against Apache2.4 libraries and is not going to work with previous Apache versions.
You either need to use older version of php-apache module (before Apache2.4 migration) or, highly recommended, move your website to Apache 2.4.
Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster
Offline
Right, that must have been it: I upgraded php-apache during a `pacman -Syu`, compiled against 2.4 and the next time I cycled `httpd` I got the undefined symbol error. Many thanks and yes I should upgrade to 2.4.
Offline