User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the *nix Software section within the Tech Talk category of DaniWeb, a massive community of 402,623 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,182 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our *nix Software advertiser: Lunarpages Linux Web Hosting
Views: 10748 | Replies: 43
Reply
Join Date: Feb 2004
Location: Phoenix Arizona
Posts: 23
Reputation: izick is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
izick's Avatar
izick izick is offline Offline
Newbie Poster

Help 500 internal server error

  #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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2003
Location: Jersey - You gotta problem wit dat?
Posts: 332
Reputation: TheOgre has a spectacular aura about TheOgre has a spectacular aura about TheOgre has a spectacular aura about 
Rep Power: 8
Solved Threads: 5
TheOgre's Avatar
TheOgre TheOgre is offline Offline
Posting Whiz

Re: 500 internal server error

  #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  
Join Date: Feb 2004
Location: Phoenix Arizona
Posts: 23
Reputation: izick is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
izick's Avatar
izick izick is offline Offline
Newbie Poster

Re: 500 internal server error

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

Re: 500 internal server error

  #4  
Feb 21st, 2004
Oh sorry....Apache 2.0 (httpd 2.0.46)
Reply With Quote  
Join Date: Aug 2003
Location: Jersey - You gotta problem wit dat?
Posts: 332
Reputation: TheOgre has a spectacular aura about TheOgre has a spectacular aura about TheOgre has a spectacular aura about 
Rep Power: 8
Solved Threads: 5
TheOgre's Avatar
TheOgre TheOgre is offline Offline
Posting Whiz

Re: 500 internal server error

  #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  
Join Date: Aug 2003
Location: Jersey - You gotta problem wit dat?
Posts: 332
Reputation: TheOgre has a spectacular aura about TheOgre has a spectacular aura about TheOgre has a spectacular aura about 
Rep Power: 8
Solved Threads: 5
TheOgre's Avatar
TheOgre TheOgre is offline Offline
Posting Whiz

Re: 500 internal server error

  #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  
Join Date: Aug 2003
Location: Jersey - You gotta problem wit dat?
Posts: 332
Reputation: TheOgre has a spectacular aura about TheOgre has a spectacular aura about TheOgre has a spectacular aura about 
Rep Power: 8
Solved Threads: 5
TheOgre's Avatar
TheOgre TheOgre is offline Offline
Posting Whiz

Re: 500 internal server error

  #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  
Join Date: Feb 2004
Location: Phoenix Arizona
Posts: 23
Reputation: izick is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
izick's Avatar
izick izick is offline Offline
Newbie Poster

Re: 500 internal server error

  #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  
Join Date: Aug 2003
Location: Jersey - You gotta problem wit dat?
Posts: 332
Reputation: TheOgre has a spectacular aura about TheOgre has a spectacular aura about TheOgre has a spectacular aura about 
Rep Power: 8
Solved Threads: 5
TheOgre's Avatar
TheOgre TheOgre is offline Offline
Posting Whiz

Re: 500 internal server error

  #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  
Join Date: Feb 2004
Location: Phoenix Arizona
Posts: 23
Reputation: izick is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
izick's Avatar
izick izick is offline Offline
Newbie Poster

Re: 500 internal server error

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb *nix Software Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the *nix Software Forum

All times are GMT -4. The time now is 1:21 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC