Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't get a perl script to run from a virtual host

Status
Not open for further replies.

time2play

Programmer
Jul 2, 2002
10
US
Hello,
I am running apache under Linux Mandrake 8.2. When I was first developing I created one site and all went well. I could run my scripts, no problem.....When I created my two virtual host (using webmin) I can no longer run the scripts. The browser returns with the message that it is unable to find the page. Here is the thing that makes me want to believe it is a permissions thing. If I hit refresh from the browser I get promted to download the text version of the script.
What I am really looking for is for someone to tell me what files I need to alter or just what I am doing wrong.
Thanks in advance for all your help.
D
 
Your error logs will give you a little more info about the error. Check your dir structure and make sure it is the same as the original. Each website should have its own dir and inside it an html dir and a cgi-bin. Then edit your vhost container in httpd.conf and make sure you have everything that the "main" cgi-bin had including the ScriptAlias directive. I'm not sure where mandrake keeps its files but my logs are in /var/log/httpd/ and httpd.conf is in /etc/httpd/conf/. My thinking is that if you make you cgi-bins just like the one that worked then unless you have a permission problem, it should work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top