User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Linux Servers and Apache section within the Tech Talk category of DaniWeb, a massive community of 391,596 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,706 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 Linux Servers and Apache advertiser:
Views: 15249 | Replies: 23
Reply
Join Date: Mar 2003
Posts: 12
Reputation: Brandog is an unknown quantity at this point 
Rep Power: 6
Solved Threads: 0
Brandog Brandog is offline Offline
Newbie Poster
  #11  
Mar 10th, 2003
Yes, I did see that, and I want to thank you for trying to lend a hand! I will have patients and wait for the linux guru to return!
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,879
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 32
Solved Threads: 106
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb
  #12  
Mar 11th, 2003
Unfortunately, I haven't played with Apache in a very, very, very very very long time. I can offer some quickie advice now and then get back to you later tonite.

My first thought is to put that thing back to the way you originally had it, before Tek told you to move it. It's better that you have the right path and can actually SEE the file versus getting a 404 error.

Second of all, try chmod'ing the script so that user/group/and others all have execute permissions. (Nobody needs read/write, but everyone needs execute in order to run the script).

I did a quick search on Google and found this site:
http://httpd.apache.org/docs/howto/cgi.html - Basically, it is Apache's tutorial for running CGI scripts on an Apache server. It seems pretty step-by-step. Maybe you can follow their tutorial and try to get their sample script to work. This way you know whether it's the server that's causing the problem or your script.

Basically I don't know enough about Apache at the moment to be able to take a look at your .conf files and tell you exactly where the problem is (if there is one). What I do know, however, is that you will get the problem you're experiencing (viewing the file instead of executing it) if the file has read permissions but not execute permissions.

Here's another site I found: http://inconnu.isu.edu/~ink/perl_cgi/ ... This one guides you step-by-step how to install Perl on Apache. As I said already, maybe you can follow the Apache setup tutorial and make sure everything is configured properly to run these tutorial scripts.

You may also wish to take a look at our links page: It has a bunch of links to CGI/Perl tutorials. Maybe one of those can help you.

Unfortunately, I have to run right now. I just thought I would be able to lend a helping hand for a quick sec. I'll look into this more detail later tonite.

Good luck!!
Reply With Quote  
Join Date: Mar 2003
Posts: 12
Reputation: Brandog is an unknown quantity at this point 
Rep Power: 6
Solved Threads: 0
Brandog Brandog is offline Offline
Newbie Poster
  #13  
Mar 11th, 2003
Yes all is chmod properly! I seem to have trouble with the documents because it states different paths than what I have for some reason! eg.
The ScriptAlias directive looks like:
ScriptAlias /cgi-bin/ /usr/local/apache/cgi-bin/

and I have a default of ScriptAlias /cgi-bin/ /var/www/html/cgi-bin/ Just curous why this may be different aswell!
Reply With Quote  
Join Date: Feb 2002
Location: New York
Posts: 862
Reputation: Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light 
Rep Power: 12
Solved Threads: 15
Moderator
Tekmaven's Avatar
Tekmaven Tekmaven is offline Offline
The C# Man, Myth, Legend
  #14  
Mar 11th, 2003
The difference is the folder location is due to where apache is configured. Red Hat puts their stuff in /war/www, but other distros may put it in /usr/local/apache.

Just so you know, the /apache folder is like the /www folder, so it should have www and cgi-bin under it.
-Ryan Hoffman

ASP.NET Specialist / Webmaster, Extended64.com.
Please do not email or PM me with support questions. Please direct them to the forums instead.
Reply With Quote  
Join Date: Mar 2003
Posts: 12
Reputation: Brandog is an unknown quantity at this point 
Rep Power: 6
Solved Threads: 0
Brandog Brandog is offline Offline
Newbie Poster
  #15  
Mar 11th, 2003
I just figured that out after I couldent find spacific paths! lol, I'm pretty new to linux systems (Windows 98)(windows 2000) Certified!!! lol I'm trying to get more use to linux so when I take the mcsa courses I can have a better understanding of how this type of system works!
Reply With Quote  
Join Date: Mar 2003
Posts: 12
Reputation: Brandog is an unknown quantity at this point 
Rep Power: 6
Solved Threads: 0
Brandog Brandog is offline Offline
Newbie Poster
  #16  
Mar 11th, 2003
I'm re installing the redhat 8.0 just to see if the first install was botched! Plus I was screwing around with trying to figure out how to add my domain name from tucows to the linux DNS. This is just so much information to take in at once! I'm in school starting from PC Support tech/A+ cert and working my way to MCSA within a small time frame I read over 200 pages of info a day at school and all this info at once is hurting the noggin! lol. My Biggest problem right now is that my current webhost is screwing with my forum files on my site! (I have a forum with over 300 active members and it's killing thier bandwith)I also put alot of strain on thier small servers for the fact that i use ssi! In the summer season here I get over 20,000 hits a month from local visitors, The site is mostly media contient of photos and videos so you can see how they dont want my business! The are now limiting my visitors connection limits to only allow 10 people on the site at one time. I have an already paid for local ad campaign starting on april 1st and I think I may be screwed if I cant get this server to work for me to host my site from my own server! I may have to use a windows NT system in the end! I dont know!
Reply With Quote  
Join Date: Mar 2003
Posts: 12
Reputation: Brandog is an unknown quantity at this point 
Rep Power: 6
Solved Threads: 0
Brandog Brandog is offline Offline
Newbie Poster
  #17  
Mar 11th, 2003
New progress! HA the previous install was Botched. It installed things in the wrong directories! lol. Man all thoes days of stress. Well I did learn alot though. I will be here to ask more Q's
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,879
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 32
Solved Threads: 106
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb
  #18  
Mar 11th, 2003
So it's all working now?
Reply With Quote  
Join Date: Mar 2003
Posts: 12
Reputation: Brandog is an unknown quantity at this point 
Rep Power: 6
Solved Threads: 0
Brandog Brandog is offline Offline
Newbie Poster
  #19  
Mar 11th, 2003
sort of! not exactly! I get the "Server error!
The server encountered an internal error and was unable to complete your request.
Error message:
Premature end of script headers: ikonboard.cgi
If you think this is a server error, please contact the webmaster
Error 500
24.70.170.85
Tue 11 Mar 2003 09:29:33 PM EST
Apache/2.0.40 (Red Hat Linux) "

error!

Im trying to work with the php right now but I cant seem to find a mysql admin feature. Do you have to set a password and username from a shell prompt only??


This is what I neet to setup the script!

Database Server Hostname / DSN:
Your Database Name:
Database Username:
Database Password:
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: another newbie with alot of redhat and apache server Q'S

  #20  
Feb 10th, 2004
This is a BIG no-no:

ServerName dns1.manitobamotorsports.com
That's the same thing as saying your machine is the primary DNS server for the domain manitobamotorsports.com

ServerName is the address of your webserver.

Example:

...just FYI...
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  
Reply

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

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Linux Servers and Apache Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Linux Servers and Apache Forum

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