•
•
•
•
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
![]() |
•
•
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,879
Reputation:
Rep Power: 32
Solved Threads: 106
#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!!
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!!
Dani the Computer Science Gal
Do you run a computer-related website? Feature it in our niche link directory!
Do you run a computer-related website? Feature it in our niche link directory!
•
•
Join Date: Mar 2003
Posts: 12
Reputation:
Rep Power: 6
Solved Threads: 0
#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.
and I have a default of ScriptAlias /cgi-bin/ /var/www/html/cgi-bin/ Just curous why this may be different aswell!
•
•
•
•
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!
#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.
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.
ASP.NET Specialist / Webmaster, Extended64.com.
Please do not email or PM me with support questions. Please direct them to the forums instead.
•
•
Join Date: Mar 2003
Posts: 12
Reputation:
Rep Power: 6
Solved Threads: 0
#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!
•
•
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,879
Reputation:
Rep Power: 32
Solved Threads: 106
#18
Mar 11th, 2003
So it's all working now?
Dani the Computer Science Gal
Do you run a computer-related website? Feature it in our niche link directory!
Do you run a computer-related website? Feature it in our niche link directory!
•
•
Join Date: Mar 2003
Posts: 12
Reputation:
Rep Power: 6
Solved Threads: 0
#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:
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:
•
•
Join Date: Aug 2003
Location: Jersey - You gotta problem wit dat?
Posts: 332
Reputation:
Rep Power: 8
Solved Threads: 5
This is a BIG no-no:
ServerName is the address of your webserver.
Example:
...just FYI...
That's the same thing as saying your machine is the primary DNS server for the domain manitobamotorsports.com
ServerName dns1.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
What's more, you deserve to be hacked.
-- former White House cybersecurity czar Richard Clarke
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Linux Servers and Apache Marketplace
•
•
•
•
apple bbc cellphone computer core daniweb debian dell desktop development drivers enterprise fedora games gentoo google gpl handheld hardware ibm install internet kernel laptop linux livecd microsoft mmorpg mobile news novell open open source openoffice operating os palmos red hat security server software source sun suse system ubuntu unix vista web windows
- find the number of incoming requests to a apache server (Linux Servers and Apache)
- No Redirection to my Apache Server (Linux Servers and Apache)
- Installing Apache 2.2.2 Server (*nix Software)
- helop in apache server (PHP)
- Help (PHP)
- what is apache server? (PHP)
- need help setting up apache server (Linux Servers and Apache)
- Using PHP, MySQL and Apache Server (PHP)
Other Threads in the Linux Servers and Apache Forum
- Previous Thread: SSI still doesn't work...why??
- Next Thread: Hosting multiple Apache/PHP/mysql sites - how many?



Linear Mode