Before I start i just want to let you know that I DO know a great deal about computers and programming but have absolutely NO idea what I am doing when installing Web Servers or SDK's. Ok here goes,

I have recently installed Apache 1.3.26 on my Windows ME 4.90.3000 machine. As far as i can tell it runs fine. There are no errors at startup and i can see the Apache Success Page when i visit http://localhost/ in my web browser(IE 6.0). My intention was to install Perl and PHP onto the server but i cant get either of the to work.

Lets start with the Perl. I have installed Perl for Windows in the directory mentioned at the bottom of this post. I have added the following lines in this order to the httpd.conf file in the apache/conf directory...

AddModule mod_cgi.c

ScriptAlias /cgi-bin/ "C:/SERVER/Apache/cgi-bin/"

<Directory "C:/SERVER/Apache/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

AddHandler cgi-script .cgi

So my .cgi files are in the cgi-bin dir but when i come to run them i get the "500 Server Error" error and the script doesnt run. If i have missed anything out of the httpd.conf please tell me. If it is all correct the i suspect a CHMOD error and i would be happy if someone could tell me how to perform a CHMOD because i have no idea.

Now for the PHP,
I have PHP installed in the directory given at the bottom of this post. My install of PHP does not contain any of the API versions of PHP. I have added the following lines to the httpd.conf file...

ScriptAlias /php/ "C:/SERVER/Apache/htdocs/"

AddType application/x-httpd-php .php
Action application/x-httpd-php "C:/SERVER/PHP/php.exe"

Again, if i have made any mistakes or ommitions in this please tell me. When i try to run a php file in the directory htdocs i get the error "Bad Request"

My install directories are below...

My Server Parts DIR (Apache, Perl, PHP)
C:/SERVER/

Path to Apache
C:/SERVER/APACHE/

Path to Perl
C:/SERVER/PERL/

Path to PHP
C:/SERVER/PHP/

Path to MySQL
C:/SERVER/MySQL/

If you need any more information please ask
Thanks For You Help
Skripty

    Write a Reply...