Apache web server 2.4 on Fedora 18

I recently upgraded my web server system from Fedora 17 to Fedora 18.  I used fedup to do so.  The upgrade went fairly smooth.

A couple days later I noticed that Apache ( httpd ) was not running.   In the course of trouble shooting I had to disable selinux.    When I enabled selinux again, there was a new issue.

The first issue I noticed is that by default, the ServerName directive in the apache config (httpd.conf) file is remarked out.

The error shows up as the following in your /var/log/httpd/error_log file.

Could not reliably determine the server’s fully qualified domain name

The solution for that error is to edit your /etc/httpd/conf/httpd.conf file.

Change the line (line 95 in my file) that reads

#ServerName

to

ServerName localhost

The next error:

No such file or directory: AH01762: Failed to create shared memory segment on file /run/httpd/authdigest_shm

Which had the following error hand in hand with it:

no such file or directory: AH01760: failed to initialize shm – all nonce-count checking, one-time nonces, and MD5-sess algorithm disabled

Both of these errors can be fixed by creating the /run/httpd directory and then changing the ownership to apache and group to apache.  This seems to be a result of disabling and then enabling selinux.

mkdir /run/httpd/

chown -R apache /run/httpd

chgrp -R apache /run/httpd