On Tue, 29 Feb 2000, Flavio Alberto wrote:

> Estou tendo problemas para colocar o apache com suporte a php no meu debian
> slink atualizado para woody eu instalei e atualiza a distribuicao e depois
> rodei apt-get install apache e logo em seguida apt-get install php3 logo
> apos criei um arquivo php de teste com a mensagem "Ola mundo" mas quando
> digito o endereco do server + o test.php ele nao o executa e sim baixa o
> script para a maquina (http://host/test.php3) o que esta errado? o que devo
> fazer?

        Faltou dizer no apache que arquivo com extensao php3 são
executáveis.
[EMAIL PROTECTED] ~]# grep php /usr/local/etc/apache/apache.conf
AddModule mod_php3.c
DirectoryIndex index.html index.php3 index.htm
AddIcon /icons/php3.gif .php3 
AddIcon /icons/php2.gif .phtml
AddIcon /icons/phps.gif .php3s .phps
AddType application/x-httpd-php3 .php3 .php .html .phtml .htm
AddType application/x-httpd-php3-source .phps


[]'s
+----------------------------------+---------------------------+---------+
|  Helio Alexandre Lopes Loureiro  |[EMAIL PROTECTED]| Powered |
|  http://www.lcmi.ufsc.br/~helio  | http://www.engnux.ufsc.br |   by    |
| http://www.engnux.ufsc.br/~helio | http://www.aikido.ufsc.br | FreeBSD |
+----------------------------------+---------------------------+---------+
Where a calculator on the ENIAC is equipped with 18,000 vaccuum tubes and
weighs 30 tons, computers in the future may have only 1,000 vaccuum tubes
and perhaps weigh 1 1/2 tons.
                -- Popular Mechanics, March 1949  

  • apache + php Flavio Alberto
    • Hélio Alexandre Lopes Loureiro

Responder a