I just made a change to my PHP.ini file. (my Linux dist is CentOS).
I have an .rpm, which I created. In its %post part, I do some stuff, and in the end of this script, i call service httpd restart.
I have installed MySQL and PHP, and I tried restarting apache and here what happens when I run # service httpd restart:
Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 17 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/libphp5.so into server: /usr/lib64/libmysqlclient.so.18: file too short
I have spent the who
My setup:
# grep php /etc/httpd/conf/httpd.conf
LoadModule php5_module modules/libphp5.so
AddType x-httpd-php .php
AddHandler php5-script .php
# grep PHP /etc/httpd/conf/httpd.conf
PHPIniDir /etc/
# grep open_tag /etc/php.ini
; short_open_tag
short_open_tag = On
# /etc/init.d/httpd start
Starting httpd: [Tue Dec 04 03:26:29 2012] [warn] module php5_module is already loaded, skipping
httpd:
I get the following error: when i try to restart the server:
[root@lts5srv1 mod_wsgi-2.3]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 202 of /etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/modules/mod_wsgi.so into server:
libpython2.5.so.1.0: cannot open shared object file: No such file or directory
I have just upgraded my FC15 to FC16. Apache was running OK under the old version, but will not start now.
Code:
[root@cardraeh ~]# systemctl start httpd.service
Job failed.
I have a VPS and today I noticed apache was not running, I got in SSH, the httpd status says:
[root@adrimail ~]# service httpd status
httpd dead but pid file exists
Tried to restart it and I get this:
[root@adrimail ~]# service httpd restart
rm: cannot remove `/var/run/httpd.pid': Read-only file system [FAILED]
rm: cannot remove `/var/lock/subsys/httpd': Read-only file system
rm: cannot remov
Apache isn't booting on our production server (all of a sudden) and there are no error messages.
I recently added httpd to start during the start up by doing this:
cd /etc/rc.d/rc5.d/
ln -s /etc/init.d/httpd S80httpd
Although httpd starts on boot, seems like my DocumentRoot that was set in httpd.conf located in /etc/httpd/conf/httpd.conf does not take effect and Fedora Test Page gets loaded.
When I used to start httpd manually by httpd -k start, everything was working fine.
I have no