Forum Moderators: bakedjake

Message Too Old, No Replies

Setting up apache 1.3 server on windows xp for testing only

Need help with the configuration set up

         

RoseMarie

2:10 pm on Mar 26, 2003 (gmt 0)

10+ Year Member



Hello,
I am trying to set up apache 1.3 on windows xp for testing purposes only. I have successfully installed mysql, php4, perl and apache from firepages. Everything has tested okay except I am having a problem trying to figure out the proper configuration for the apache server. Apache set up (just the basics):

ServerRoot: "C:/plandev/apache"
Port80
ServerName localhost
DocumentRoot "C:/plandev/www"
ScriptAlias /cgi-bin/ "C:/phpdev/www/cgi-bin/"

<Directory />
Options FollowSymLinks MultiViews +ExecCGI
AllowOverride None
</Directory>

<Directory "C:/phpdev/www/">
Options Indexes FollowSymLinks MultiViews Includes ExecCGI
AllowOverride AuthConfig FileInfo
Order allow,deny
Allow from localhost 127.0.0.1
</Directory>

<Directory "C:/phpdev/www/cgi-bin">
<IfModule mod_perl.c>
Sethandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
</IfModule>
Options All MultiViews
AllowOverride None
Order deny,allow
Allow from all
</Directory>
</iIfModule>

How do I set the configuration so I can view my web folders as if I was on a live connection? My web folders are stored on C:mywebsitename. I need to make sure that I have script access outside of the cgi-bin folder. I am setting up a shopping cart that uses perl and connects to mysql.

I have been reading about virtual hosting and was wondering if this is the way to go. (I feel like I have been studying for a final exam!)

I need help and would appreciate any advice that will get me pointed in the right direction.
Thanks so much,
Rose

justa

5:59 am on Mar 31, 2003 (gmt 0)

10+ Year Member



The easiest way is to use either [127.0.0.1...] or [localhost...]

If your apache server is running click on the link and you site will be served up from the server, rather then the file directory.

martin

1:18 pm on Mar 31, 2003 (gmt 0)

10+ Year Member



If you like to use virtual hosts on the same IP or just don't like the idea of typing localhost or 127.0.0.1 you can use a hosts file (on Windows XP this is located in c:/windows/system32/driver/etc/hosts by default). It's in a self explained format.

If you need to serve stuff from C:\mywebsitename why don't you set the DocumentRoot and replace all occurrences of C:/plandev/www with it?

PS. I would recommend using Perl as a CGI rather than mod_perl at least if you're beginning Perl.

RoseMarie

8:53 pm on Mar 31, 2003 (gmt 0)

10+ Year Member



Thanks for the info.
I have been reading up on some of the same things that has been suggested. I am almost there, just need to download some modules to run the program that I have. Appreciate the advice.
Rose