Apache Start Failed

Comments, suggestions, compliments, etc
Post Reply
tward
Posts: 3
Joined: 2014/05/25 20:46:00

Apache Start Failed

Post by tward » 2019/07/12 07:17:39

After latest updates and a reboot Apache failed to start?

systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2019-07-11 16:41:24 BST; 15s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 27717 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 27707 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 27707 (code=exited, status=1/FAILURE)

Jul 11 16:41:24 WARLINOBSER.magna.global systemd[1]: Starting The Apache HTTP Server...
Jul 11 16:41:24 WARLINOBSER.magna.global systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jul 11 16:41:24 WARLINOBSER.magna.global kill[27717]: kill: cannot find process ""
Jul 11 16:41:24 WARLINOBSER.magna.global systemd[1]: httpd.service: control process exited, code=exited status=1
Jul 11 16:41:24 WARLINOBSER.magna.global systemd[1]: Failed to start The Apache HTTP Server.
Jul 11 16:41:24 WARLINOBSER.magna.global systemd[1]: Unit httpd.service entered failed state.
Jul 11 16:41:24 WARLINOBSER.magna.global systemd[1]: httpd.service failed.

Found using strace a permissions issue with /etc/ld.so.preload so change to 777 but still unable start apache?

xecve("/usr/sbin/httpd", ["/usr/sbin/httpd", "-DFOREGROUND", "-X"], [/* 23 vars */]) = 0
access("/etc/ld.so.preload", R_OK) = 0
open("/etc/ld.so.preload", O_RDONLY|O_CLOEXEC) = 3
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libpcre.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libselinux.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libaprutil-1.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libcrypt.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libexpat.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libdb-5.3.so", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libapr-1.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libuuid.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libfreebl3.so", O_RDONLY|O_CLOEXEC) = 3
stat("/etc/sysconfig/64bit_strstr_via_64bit_strstr_sse2_unaligned", 0x7ffd721a7770) = -1 ENOENT (No such file or directory)
statfs("/sys/fs/selinux", {f_type=SELINUX_MAGIC, f_bsize=4096, f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={0, 0$
statfs("/sys/fs/selinux", {f_type=SELINUX_MAGIC, f_bsize=4096, f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={0, 0$
stat("/sys/fs/selinux", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0

tward
Posts: 3
Joined: 2014/05/25 20:46:00

Re: Apache Start Failed

Post by tward » 2019/07/12 09:11:42

I have resolved the this issue the SELinux tool highlighted several permission issues and running through all these issues and resolving them allowed a restart of the Apache service

Post Reply

Return to “User Comments”