Forum

PHP on Windows

Stefan
16 March 2012, 11:00
Hi,
I tried to enable PHP (5.3.6):
CGIhandler = C:\Server\PHP:php
In this folder php-cgi.exe is located. I also changed the
php.ini to use
cgi.fix_pathinfo=0
cgi.rfc2616_headers = 1

If I try to exeute a php-file it is downloaded, not executed.
Where's the trick !?

Thanks,
Stefan

Hiawatha version: latest
Operating System: Win7
Hugo Leisink
16 March 2012, 11:18
Set CGIhandler to 'C:\Server\PHP\php-cgi.exe:php'. Also, set ExecuteCGI to 'yes'.
Stefan
16 March 2012, 11:42
Thanks Hugo,
I was misleaded by the Linux-defaults, thought they all point to a folder...
I also "activated" the Directory Settings now (path same as WebsiteRoot):

Directory {
Path = C:\wwwroot
ExecuteCGI = yes
UploadSpeed = 10,2
}

But with no luck


Stefan
16 March 2012, 11:52
The problem was not using port 80!

I changed that because Apache is running on this machine too.

But I have no idea on why this is a problem...

This topic has been closed.