943,749 Members | Top Members by Rank

Ad:
You are currently viewing page 1 of this multi-page discussion thread
Feb 21st, 2004
0

500 internal server error

Expand Post »
I am trying to execute a basic hello world cgi script. However I keep getting 500 error. I tried changing the scriptsock setting in my httpd.conf file as well as file permissions and every other suggestion I could find on various postings.... I have reinstalled the OS and started from scratch. I am pretty new to linux however I have learned alot over the past 2 months..Any help would be so appreciated.

Izick
Reputation Points: 10
Solved Threads: 0
Newbie Poster
izick is offline Offline
23 posts
since Feb 2004
Feb 21st, 2004
0

Re: 500 internal server error

Which version of Apache are you running?
Reputation Points: 128
Solved Threads: 8
Posting Whiz
TheOgre is offline Offline
390 posts
since Aug 2003
Feb 21st, 2004
0

Re: 500 internal server error

Thank you for replying so quickly...Redhat9
Reputation Points: 10
Solved Threads: 0
Newbie Poster
izick is offline Offline
23 posts
since Feb 2004
Feb 21st, 2004
0

Re: 500 internal server error

Oh sorry....Apache 2.0 (httpd 2.0.46)
Reputation Points: 10
Solved Threads: 0
Newbie Poster
izick is offline Offline
23 posts
since Feb 2004
Feb 21st, 2004
0

Re: 500 internal server error

RedHat 9 is the distribution of Linux that Apache is running on, not the Apache version. Do you know which version of Apache you have? I don't use RedHat, so I don't know which version it ships with. (Look at the bottom of the error page, and if you have the server signature turned on in httpd.conf, it'll say something like "Apache 1.3.27 at www.mydomain.com Port 80" or something similar.)
Reputation Points: 128
Solved Threads: 8
Posting Whiz
TheOgre is offline Offline
390 posts
since Aug 2003
Feb 21st, 2004
0

Re: 500 internal server error

Heh.. you were reading my mind while I was posting that
Reputation Points: 128
Solved Threads: 8
Posting Whiz
TheOgre is offline Offline
390 posts
since Aug 2003
Feb 21st, 2004
0

Re: 500 internal server error

Are you restarting httpd after making changes to httpd.conf ?
(apachectl start|stop|restart)
Reputation Points: 128
Solved Threads: 8
Posting Whiz
TheOgre is offline Offline
390 posts
since Aug 2003
Feb 21st, 2004
0

Re: 500 internal server error

I originally uncommented the ScriptSocks log/cgisocks then rebooted the machine which httpd is set to restart on boot. It was recommended that I change the file group and owner to apache so i did that two and chmod all the files to 755.


Reputation Points: 10
Solved Threads: 0
Newbie Poster
izick is offline Offline
23 posts
since Feb 2004
Feb 21st, 2004
0

Re: 500 internal server error

Try commenting the line about ScriptSocks log/cgi and do:
apachectl restart

You don't have to reboot the box to restart Apache :) ...rebooting is for adding hardware :P
Reputation Points: 128
Solved Threads: 8
Posting Whiz
TheOgre is offline Offline
390 posts
since Aug 2003
Feb 21st, 2004
0

Re: 500 internal server error

Ok...I will try it now. Thank you for your help. I will post in a few and let you know.
Quick question. It seems like I can only get ftp access outside of my /home/user folder if I change the ownership of the /var/www/ folder to owner-me so in other words when I try to upload directly to the /var/www/cgi-bin/ it will not transfer the file unless I make myself the owner. I have tried adding me to the root user accound under the user administration control panel but no luck. ANy suggestions
Reputation Points: 10
Solved Threads: 0
Newbie Poster
izick is offline Offline
23 posts
since Feb 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Linux Applications and Software Forum Timeline: Need for a leaner meaner system
Next Thread in Linux Applications and Software Forum Timeline: Windows emulator to run mIRC





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC