PHP cannot run in virtual host

Forum for you who has PHP installation issues

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 1
Joined: Sat Jul 02, 2011 1:26 am

PHP cannot run in virtual host

Postby redskyhk » Sat Jul 02, 2011 1:33 am

I am using debian squeeze and install PHP with apache2.

When I put the PHP file in root website, it can run normally. However when put the PHP file in user website (path http://domain/~peter/test.php), it could not be run and the browser asks me to save the file. Why is that?

I tried to put the line "AddType application/x-httpd-php .php .php" inside the .conf but still not work. Anything I get wrong? Please help and thanks.

Return to “PHP Installation”

Who is online

Users browsing this forum: No registered users and 3 guests