toay i was asked for looking into a server which soem websites were suffering internal server error
like always firstly I would go ahead and take a look at what the apache logs are saying at

/usr/local/apache/logs/error_log

which in this server was the path of apache logs
from my experience it is mostly because of some misconfiguration in .htaccess but taking a look at the logs will savfe time to find out what exactly is going on

the errors was

[Tue Apr 03 22:57:38 2012] [alert] [client 66.249.66.249] /home/softwar/public_html/.htaccess: Invalid command 'SetOutput', perhaps misspelled or defined by a module not included in the server configuration
[Tue Apr 03 22:57:38 2012] [alert] [client 66.249.66.249] /home/softwar/public_html/.htaccess: Invalid command 'SetOutput', perhaps misspelled or defined by a module not included in the server configuration
[Tue Apr 03 22:58:01 2012] [alert] [client 109.162.219.138] /home/cmsha/public_html/.htaccess: Invalid command 'SetOutput', perhaps misspelled or defined by a module not included in the server configuration
[Tue Apr 03 22:58:01 2012] [alert] [client 109.162.219.138] /home/cmsha/public_html/.htaccess: Invalid command 'SetOutput', perhaps misspelled or defined by a module not included in the server configuration

I went into edit the .htaccess file where is located in

/home/cmsha/public_html/.htaccess

according to the error logs

I looked at the line where it was containing the SetOutput
the whole config containing that string was as followes

<ifModule mod_deflate.c>
  <filesMatch "\.(css|js|x?html?|php)$">
    SetOutput DEFLATE
  </filesMatch>
</ifModule>
# END Compress text files

I got rid of the whole mod_deflate configuration and after that I saved the file the site got up and running without any problems

Thanks
Woshka

1 COMMENT

  1. I think that Actionscript is just starting its rise. AS3 is an eretnily new language really built off of ES4. With the ES3 vs ES4 battle going on it is blaringly obvious that developers are taking a very strong liking to ES4 which ActionScript3 is based off of. Silverlight is ES3 based, so it the entire web right now but it is truly a new excellent revision of Javascript deemed Javascript2. ES4 has some bloat that AS3 removed such as getters/setters which was needed (why add bloat as things are going more functional/daynamic). Languages in general are going more like ES4 but also dynamic like javascript was where everything is an object. Javascript latest versions are really functional in many aspects. Anyways, it is on the rise, I hope that ES4 is based on the code Adobe gave to Mozilla (Gee why is Microsoft worried again?).Exciting times on the front line of the Javascript2 and Vector Wars.>wow AS is between Cobol and ‘Haskell’ in popularity. WTF is haskell?Apparently you don’t’ visit programming.reddit.com often. It is an academic functional language, functional is now academic after Java and OO sold out and went corporate.Posted by on b7

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.