Configurando o Apache vhost para processar arquivos PHP

Configurando o Apache vhost para processar arquivos PHP

Possível duplicata:
Apache não analisa arquivos? Apenas enviando downloads

Descrição

Agora configurei um site no Apache usando vhost. Se eu solicitar algo, ele me responderá um arquivo PHP bruto.

Pergunta

Como devo configurar meu vhost para processar arquivos PHP?

Estágio

Minha configuração vhost:

Listen 8010

<VirtualHost *:8010>
   ServerAdmin [email protected]
   ServerName mysite.org
   ServerAlias www.mysite.org
   DocumentRoot /srv/www/mysite.org/public_html/
   ErrorLog /srv/www/mysite.org/logs/error.log
   CustomLog /srv/www/mysite.org/logs/access.log combined

   DirectoryIndex index.html index.php

   AddType application/x-httpd-php .php
   AddType application/x-httpd-php-source .phps
</VirtualHost>

Se eu solicitar alguma página, ela me enviará um arquivo PHP bruto, testei isso usando curl:

$ curl -I http://localhost:8010/index.php
HTTP/1.1 200 OK
Date: Mon, 15 Oct 2012 20:20:31 GMT
Server: Apache/2.2.16 (Debian)
Last-Modified: Thu, 03 May 2012 16:41:59 GMT
ETag: "48b6a-2871-4bf247b86c3c0"
Accept-Ranges: bytes
Content-Length: 10353
Content-Type: application/x-httpd-php

Responder1

Certifique-se de que o mod_php esteja instalado e ativado.

informação relacionada