Apache2 not starting because of ssl_scache file



I mentioned this a while back, but I didn’t go into much detail on a long term solution. Let me re-set the situation. Linux server running apache2. It’s Mandrake (now Mandriva) (an older version.) When the system has suffered abrupt outage (power loss). Everything starts up normally with the exception of httpd2. It claims that it’s running but gives an error message. (For reference here’s the old article. Basically when you try to manually restart you see..

Cannot allocate shared memory: (17)File exists apache


(Not terribly descriptive.) The file it’s talking about though is /var/log/httpd/ssl_scache and of course, manually deleting it and then restarting apache (service httpd start) will work. However, I didn’t mention details of a longer term fix. Basically, this will require editing apache’s startup file. /etc/rc.d/init.d/httpd on Mandrake.

What you want to look for is the section that looks like this…

start() {
for tries in $times_start; do

if [ -x $SBIN/$HTTPDPERL -a ! -e $HTTPDPERLPID ]; then

You should make a bit of an addition here so that it looks like this….

start() {
for tries in $times_start; do

if [ -f /var/log/httpd/ssl_scache ]; then
mv -f /var/log/httpd/ssl_scache /var/log/httpd/old_ssl_scache
fi

if [ -x $SBIN/$HTTPDPERL -a ! -e $HTTPDPERLPID ]; then

So, we’re basically saying IF the file /var/log/httpd/ssl_scache exists, THEN move it to old_ssl_scache. You may have to adjust the location for your setup. So, next time power get’s cut to the server and apache (httpd) starts, it cleans up the stranded file first.

Related Posts

Blog Traffic Exchange Related Posts
  • Linux Permissions Headache Yikes, what an evening..... it started innocently enough in the afternoon. I have an old Mandrake 10.0 server that I was upgrading clamav on (recent security update). While I was at it, I was reviewing the anti-spam setup to see if I could get any better success with filtering junk......
  • How to Remove ShieldSafeness | ShieldSafeness Removal Guide The Wini family of rogue antivirus software has given us yet another version in the last couple days... ShieldSafeness. This is quick on the heels of SoftStronghold (softstronghold removal guide) and succeeds the following variants in this prolific family.... Softveteran (see the softveteran removal guide) but.... SoftCop (see the SoftCop......
  • Services.exe running at 100% CPU and using 100s of MB of memory - Windows XP SP3 I came across an interesting one in the last few days. This system was a Windows XP system with current updates - SP3, IE 8.... and among other things there was a complaint of very sluggish behavior. I updated the antimalware software installed and ran scans. Malware Bytes antimalware actually......
Blog Traffic Exchange Related Websites
  • Getting Your Dog to Stop Jumping Up On You [/caption] When you first get a new dog, one of the charming things it can do is jump up to greet you. But after a while, this behavior can seem a bit pointless and even annoying. Your dog should show you affection, and you should show your dog affection, but......
  • Action is Better than Perfection Photo Credit:  Sister72 Last night's Super Bowl was a nail biter for us. I thought it was a wonderful game, better than some recent Super Bowls. The game reminded me a bit about personal finance. (First it was fries and now it's foot ball. I know, I have issues.)Don't......
  • Simple Energy Solutions That Save Big Money As energy prices go up, many people are looking to alternative power solutions in order to save money. However, converting an entire house to go off grid can be costly, and the work involved may be too much for some homeowners. That doesn't mean that you have to abandon the......
www.pdf24.org    Send article as PDF   

Similar Posts


See what happened this day in history from either BBC Wikipedia
Search:
Keywords:
Amazon Logo

Comments are closed.


Switch to our mobile site