Current time: 11-17-2024, 11:38 AM Hello There, Guest! (LoginRegister)


Post Reply 
500 internal server error and Apache error
Author Message
karstenmeijers Offline


Posts: 1
Joined: Mar 2010
Reputation: 0
Post: #1
Exclamation 500 internal server error and Apache error
Hello,

Ou're server has sometimes the strange problem that ou're website gives on every php page an 500 server error. At that point it's also not possible to restart of start apache, the error is with apache that there isn't permission to the logging service, with this problem Apache is failing to start.

This problem is not alway's it come's on different times, and not after a specific action, on the server itself are no actions running by users, so that can't be the problem.

Ther'e several solutions on this forum, but I don't think that any solution meets ou're problem because ou're problem is purely based on a permission problem.

If the problem starts, we run an self written script on the server what is reconfigured the permissions. Afterwards everything is working again.

Offcourse this is not a good solution, but an temporary emergency solution to get the websites back working.

The script that we run on that point is showed on the bottom of this post.

I hope that anyone has a good solution to repair the problem for alway's!

(The're more sites, but for privacy reasons only one site is showed in the script. The code for the other sites is the same)
Code:
#!/bin/bash

# ISPCP Rechten herstelscript
# Copyright 2010

clear

# Apache stoppen
#/etc/init.d/apache2 stop

# ISPCP herstelscripts uitvoeren
sh /var/www/ispcp/engine/setup/ispcp-permission-functions.sh
sh /var/www/ispcp/engine/setup/set-engine-permissions.sh
sh /var/www/ispcp/engine/setup/set-gui-permissions.sh

# PHP - FCGI rechten herstellen
chmod 755 /var/www/fcgi/apple2day.nl/php5-fcgi-starter

# Apache starten
/etc/init.d/apache2 restart
03-15-2010 04:58 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)