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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New and need some Help setting up.

Status
Not open for further replies.

Haunter

Programmer
Jan 2, 2001
379
US
My purpose for running apache is selfish. I program perl scripts as a hobby and for fun (mostly as a public service just to see what I can do). I would like to set apache up on my machine so I can test them locally, before I spend time uploading.

I am running win98
I have PERL installed @ E:\perl I would
like to have access to the main drive E: where I keep my scripts in a folder called E:\scripts

Any Idea on how to set my config settings or where I can download one. I have no security issue since I will only use it locally.
 
OK, first things first. Did you get apache up and running? Apache is configured for localhost out of the box so you shouldn't have any problems there. Enter 'localhost' in your browsers URL box and see if you get the Apache test page. If you do, then apache is running. To tell apache where your cgi scripts are you will have to edit httpd.conf. Look for a line that says ' ScriptAlias /path/to/cgi-bin/ ' and edit it to your scripts directory. You will also have to edit the directory container following that directive so Apache will know how to treat that directory. I don't run windows so I can't help you much beyond that put a common reason for perl not working on windows is because besides having it in your autoexec.bat and/or config.sys files is you also need it setup in your registry. That's a little outside the realm of my experteeeez. :) If you have any problems, I'm sure someone here will be glad to help. You just need to be a little more specific on where you are in your setup and what specific help you need. There's a lot of knowlege here, we just haven't learned to read minds yet. :) Good luck
 
I have apache up and running. No problems there. Perl is installed but I am not sure if it is in the Registry or not. I have no problem seeing my hard drive and pulling up html files but running scripts is another matter. I keep getting an error that says "you dont have access to the cgi directory" It will not let me see my own "cgi-bin" directory.

I uncommented the script aliases and placed the path to my script directory and the following <Directory> stuff but made no changes there.

I would like to be able to run a script from any directory on my hard drive not just one directory.
 
To use cgi in directories other than you cgi-bin directory, go down to the line that says '#AddHandler cgi-script .cgi' and uncomment it. Then add .pl to the end of the line if it's not there.

To be able to access a directory on your server it needs to have a directory container defined. Below is an example of the one I have for my cgi-bin:
#
ScriptAlias /cgi-bin/ &quot;/var/
#
# &quot;/var/ should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory &quot;/var/ AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>

Of course since you are running Windows, the path info will be different.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top