+ Responder ao Tópico



  1. #1
    Visitante

    Padrão Apache + PHP = Problemas ??

    Pessoal, uso o RH 8.0 e estou tentando configurar o APACHE + PHP, segui as instrucoes conforme o site do PHP :

    1. gunzip apache_xxx.tar.gz 2. tar -xvf apache_xxx.tar 3. gunzip php-xxx.tar.gz 4. tar -xvf php-xxx.tar 5. cd apache_xxx 6. ./configure --prefix=/www --enable-module=so 7. make 8. make install 9. cd ../php-xxx 10. ./configure --with-mysql --with-apxs=/www/bin/apxs 11. make 12. make install If you decide to change your configure options after installation you only need to repeat the last three steps. You only need to restart apache for the new module to take effect. A recompile of Apache is not needed. 13. cp php.ini-dist /usr/local/lib/php.ini You can edit your .ini file to set PHP options. If you prefer this file in another location, use --with-config-file-path=/path in step 10. 14. Edit your httpd.conf or srm.conf file and check that these lines are present and not commented out: AddType application/x-httpd-php .php LoadModule php4_module libexec/libphp4.so You can choose any extension you wish here. .php is simply the one we suggest. You can even include .html, and .php3 can be added for backwards compatibility. The path on the right hand side of the LoadModule statement must point to the path of the PHP module on your system. The above statement is correct for the steps shown above. 15. Use your normal procedure for starting the Apache server. (You must stop and restart the server, not just cause the server to reload by use a HUP or USR1 signal.)

    Mas acontece que estou recebendo um erro ao tentar rodar o comando apachectl stop/start eis o erro:

    Syntax error on line 6 of /etc/httpd/conf.d/php.conf:
    Cannot load /etc/httpd/modules/libphp4.so into server: /etc/httpd/modules/libphp4.so: undefined symbol: ap_block_alarms

    os arquivos estao la (libphp4.so) e o httpd.conf configurado, o que esta errado???

    Obrigado a todos

  2. #2
    BrunoPiaui
    Visitante

    Padrão Apache + PHP = Problemas ??

    Fala Brother!!

    Vc tá instalando errado!!!!!!!

    Faça isso:

    cd /caminho_do_fonte_apache
    ./configure --prefix=/caminho_da_istalação_apache
    cd ..

    cd /caminho_do_fonte_php
    ./configure --prefix=/caminho_da_istalação_php --with-mysql=/caminho_da_istalação_mysql --with-apache=/caminhodo_fonte_apache
    make
    make install
    cp php.ini-dist /usr/local/lib/php.ini
    cd ..

    cd /caminho_do_fonte_apache
    ./configure --prefix=/caminho_da_istalação_apache --activate-module=src/modules/php4/libphp4.a
    make
    make install

    Valeu!!!!!!!!!!! <IMG SRC="images/forum/icons/icon_wink.gif">

  3. #3
    Visitante

    Padrão Apache + PHP = Problemas ??

    Amigo, obrigado, fiz da maneira que disse, mas o erro persisite, o mysql esta funcionando ok, mas a msg :

    Syntax error on line 6 of /etc/httpd/conf.d/php.conf:
    Cannot load /etc/httpd/modules/libphp4.so into server: /etc/httpd/modules/libphp4.so: undefined symbol: ap_block_alarms

    ainda aparce ao rodar apachectl start.

    Voce poderia me dar uma ajuda nisto? Preciso de ter este ambiente configurado ate a quarta desta semana.

    Valeu!

  4. #4
    Administrador Avatar de Fernando
    Ingresso
    Jul 2001
    Localização
    Campinas Area
    Posts
    4.996
    Posts de Blog
    4

    Padrão Apache + PHP = Problemas ??

    Tenta outra versao do PHP, a que uso aqui perfeitamente, eh a 4.2.3, se voce tiver pego uma diferente, tenta essa.

  5. #5
    Visitante

    Padrão Apache + PHP = Problemas ??

    humm, a mesma que tenho aki ...
    Desculpe a idiotice, mas sou novato no mundo linux, eu nao desisntalei a ultima versao, apenas executei todos os camandos que disse, isso pode ser um problema?

    Valeu <IMG SRC="images/forum/icons/icon_smile.gif">