Re: php and apache problem
Em Sex 18 Mai 2001 08:15, Flavio Alberto escreveu:
> Eu recentemente estou tentando dar suprete ao php no apache do debian...
> apt-get install php4... e ele adicionava a linha do modulo nao
> /etc/httpd.conf deu tudo certo ele inciava o php direitinho... agora eu
> tentei dar suporte ao uma outra mauqina.. mas e coloquei a linha... mas
> quando vou tentar acessar o arquivo php ele pede para eu baixar... eu ja
> adicinei as linhas AddType application/x-httpd-php3 .php3 .php e resetei o
> paache mas isto nao resvolveu ele ainda vontinua baixandoi os arquivos...
Tirado do /etc/apache/httpd.conf (Debian unstable) :
# AddType allows you to tweak mime.types without actually editing
# it, or to make certain files to be certain types.
#
# For example, the PHP 3.x module (not part of the Apache
# distribution - see http://www.php.net) will typically use:
#
#AddType application/x-httpd-php3 .php3
#AddType application/x-httpd-php3-source .phps
#
# And for PHP 4.x, use:
#
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Aqui funciona muito bem assim, só com a parte relativa ao PHP 4
descomentada.
Espero ter ajudado.
--
André Luís Lopes
Utah Linuxcenter
andrelop@utah.com.br
http://www.utah.com.br
Reply to: