Forum

php file is downloading and not executing

Phil
1 June 2018, 11:59
Hi,
I want to execute php in a virtual host. The server is listening, but visit 127.0.0.1:5000 in a browser starts downloading the index.php file, and doesn't execute it.
Has anybody an idea?
Thanks!!!!


Here's my config:
Binding {
Port = 5000
BindingId = p5000
}

FastCGIserver {
FastCGIid = PHP7
ConnectTo = 127.0.0.1:9000
Extension = php
}

VirtualHost {
Hostname = 127.0.0.1
WebsiteRoot = /fs/data0/hiawatha-dev/webroot_wiki
AccessLogfile = /fs/data0/hiawatha-dev/log_wiki/access.log
ErrorLogfile = /fs/data0/hiawatha-dev/log_wiki/error.log
Startfile = index.php
RequiredBinding = p5000
TimeForCGI = 10
UseFastCGI = PHP7
# ExecuteCGI = yes
}
Hugo Leisink
2 June 2018, 20:29
I'm sure some of the configuration is missing. My guess: you have a default host or another virtual host with the same hostname (127.0.0.1). Somehow Hiawatha selected that virtual host, which isn't configured to execute PHP.
This topic has been closed.