500 internal server error

Reply

Join Date: Feb 2004
Posts: 23
Reputation: izick is an unknown quantity at this point 
Solved Threads: 0
izick's Avatar
izick izick is offline Offline
Newbie Poster

500 internal server error

 
0
  #1
Feb 21st, 2004
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2003
Posts: 372
Reputation: TheOgre is a jewel in the rough TheOgre is a jewel in the rough TheOgre is a jewel in the rough 
Solved Threads: 6
TheOgre's Avatar
TheOgre TheOgre is offline Offline
Posting Whiz

Re: 500 internal server error

 
0
  #2
Feb 21st, 2004
Which version of Apache are you running?
If you spend more on coffee than on IT security, you will be hacked.
What's more, you deserve to be hacked.
-- former White House cybersecurity czar Richard Clarke
Reply With Quote Quick reply to this message  
Join Date: Feb 2004
Posts: 23
Reputation: izick is an unknown quantity at this point 
Solved Threads: 0
izick's Avatar
izick izick is offline Offline
Newbie Poster

Re: 500 internal server error

 
0
  #3
Feb 21st, 2004
Thank you for replying so quickly...Redhat9
Reply With Quote Quick reply to this message  
Join Date: Feb 2004
Posts: 23
Reputation: izick is an unknown quantity at this point 
Solved Threads: 0
izick's Avatar
izick izick is offline Offline
Newbie Poster

Re: 500 internal server error

 
0
  #4
Feb 21st, 2004
Oh sorry....Apache 2.0 (httpd 2.0.46)
Reply With Quote Quick reply to this message  
Join Date: Aug 2003
Posts: 372
Reputation: TheOgre is a jewel in the rough TheOgre is a jewel in the rough TheOgre is a jewel in the rough 
Solved Threads: 6
TheOgre's Avatar
TheOgre TheOgre is offline Offline
Posting Whiz

Re: 500 internal server error

 
0
  #5
Feb 21st, 2004
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.)
If you spend more on coffee than on IT security, you will be hacked.
What's more, you deserve to be hacked.
-- former White House cybersecurity czar Richard Clarke
Reply With Quote Quick reply to this message  
Join Date: Aug 2003
Posts: 372
Reputation: TheOgre is a jewel in the rough TheOgre is a jewel in the rough TheOgre is a jewel in the rough 
Solved Threads: 6
TheOgre's Avatar
TheOgre TheOgre is offline Offline
Posting Whiz

Re: 500 internal server error

 
0
  #6
Feb 21st, 2004
Heh.. you were reading my mind while I was posting that
If you spend more on coffee than on IT security, you will be hacked.
What's more, you deserve to be hacked.
-- former White House cybersecurity czar Richard Clarke
Reply With Quote Quick reply to this message  
Join Date: Aug 2003
Posts: 372
Reputation: TheOgre is a jewel in the rough TheOgre is a jewel in the rough TheOgre is a jewel in the rough 
Solved Threads: 6
TheOgre's Avatar
TheOgre TheOgre is offline Offline
Posting Whiz

Re: 500 internal server error

 
0
  #7
Feb 21st, 2004
Are you restarting httpd after making changes to httpd.conf ?
(apachectl start|stop|restart)
If you spend more on coffee than on IT security, you will be hacked.
What's more, you deserve to be hacked.
-- former White House cybersecurity czar Richard Clarke
Reply With Quote Quick reply to this message  
Join Date: Feb 2004
Posts: 23
Reputation: izick is an unknown quantity at this point 
Solved Threads: 0
izick's Avatar
izick izick is offline Offline
Newbie Poster

Re: 500 internal server error

 
0
  #8
Feb 21st, 2004
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.


Reply With Quote Quick reply to this message  
Join Date: Aug 2003
Posts: 372
Reputation: TheOgre is a jewel in the rough TheOgre is a jewel in the rough TheOgre is a jewel in the rough 
Solved Threads: 6
TheOgre's Avatar
TheOgre TheOgre is offline Offline
Posting Whiz

Re: 500 internal server error

 
0
  #9
Feb 21st, 2004
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
If you spend more on coffee than on IT security, you will be hacked.
What's more, you deserve to be hacked.
-- former White House cybersecurity czar Richard Clarke
Reply With Quote Quick reply to this message  
Join Date: Feb 2004
Posts: 23
Reputation: izick is an unknown quantity at this point 
Solved Threads: 0
izick's Avatar
izick izick is offline Offline
Newbie Poster

Re: 500 internal server error

 
0
  #10
Feb 21st, 2004
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC