php files are downloaded

Hello,

I have setup Cherokee web server and php 5.2 in Opensolaris zone. Problem is that all .php files are downloaded from web server and not served when I use IP address instead of DNS name in web brovser.

Example: test.mydomain.com <-- php works
192.168.0.10/index.php <-- file is downloaded.

Any help is welcome :slight_smile:

Kind regards, M

Do you have the handler setup in apache at the global level?

eg:

<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>

see PHP: Apache 2.x on Unix systems - Manual for more details.

Is the solution/configuration for Apache web server applicable for Cherokee web server, frank_rizzo?

sorry for assuming apache. Yes that will only work for apache. I am not familar with cherokee. Check this link and make sure your setup is simliar.

http://www.cherokee-project.com/doc/cookbook_php.html

1 Like