PDA

View Full Version : Running test server on Windows XP Professional


Kristian
Thu 26th Sep '02, 1:22pm
I have installed OmniHTTPD Professional 2.0 on my machine. This worked fine.

I then installed PHP in the following manner:

- downloaded .zip file
- extracted to c:\php
- Made changes in OmniHTTPD properties under 'External' and 'MIME' tabs as suggested in documentation



When I try to view a PHP file running on this server i get the following:

Security Alert! The PHP CGI cannot be accessed directly.
This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set, e.g. via an Apache Action directive.

For more information as to why this behaviour exists, see the manual page for CGI security.

For more information about changing this behaviour or re-enabling this webserver, consult the installation file that came with this distribution, or visit the manual page.


ANY IDEAS...!!!

filburt1
Thu 26th Sep '02, 3:30pm
Don't install PHP as a CGI module because as the installation readme said, it causes huge security risks on Windows.

Here's my simple guide on getting Apache/PHP/MySQL working on Windows, the most common configuration (sans Windows ;)): http://www.turtletips.com/forums/showthread.php?s=&threadid=4300

Kristian
Tue 1st Oct '02, 8:08am
Thanks for your help so far, all seemed to go fine..

Only thing is, the two lines I addedd to the bottom of the Apache httpd.conf (inside the conf subfolder) are causing problems.

This is what I have got:


LoadModule php4_module c:/program files/php/sapi/php4apache.dll
AddType application/x-httpd-php .php .phtml



When I try and restart Apache I get the following:


The Apache service is starting.
The Apache service could not be started.

The service did not report an error.

More help is available by typing NET HELPMSG 3534.



I have chacked that the path to this file is correct, is there anything from this that is obvious to you...???

filburt1
Tue 1st Oct '02, 8:10am
Read my post in my sig where I said "read this before doing the tutorial" in big blue letters ;)

Kristian
Tue 1st Oct '02, 8:24am
Thanks filburt1...

You have been a great help - RESEPECT...