Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problemas PHP5 [resolvido]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Portuguese
View previous topic :: View next topic  
Author Message
Dexter2004
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jul 2004
Posts: 123

PostPosted: Sun Nov 07, 2004 4:29 pm    Post subject: problemas PHP5 [resolvido] Reply with quote

Fiz emerge do php5 para substituir o 4. Mas agora não o estou a conseguir configurar para o apache2. supostamente não era apenas preciso adicionar ao ficheiro /etc/init.d/apache2:
Code:
 APACHE2_OPTS="-D PHP5"


quando faço isto obtenho este erro:
Code:
* Apache2 has detected a syntax error in your configuration files:
Syntax error on line 6 of /usr/lib/apache2/conf/modules.d/70_mod_php5.conf:
Cannot load /usr/lib/apache2/modules/libphp5.so into server: libhistory.so.4: cannot open shared object file: No such file or directory


alguem me pode dar uma ajuda
thanks


Last edited by Dexter2004 on Mon Nov 08, 2004 12:33 am; edited 1 time in total
Back to top
View user's profile Send private message
Matheus Villela
Apprentice
Apprentice


Joined: 25 Oct 2003
Posts: 263

PostPosted: Sun Nov 07, 2004 7:54 pm    Post subject: Reply with quote

Ainda não tentei configurar o php5, mas cola o 70_mod_php5.conf aí que o erro como indicado está nele e não na forma com que você está carregando o módulo que ao que parece está ok e dando certo ;)
Back to top
View user's profile Send private message
Dexter2004
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jul 2004
Posts: 123

PostPosted: Mon Nov 08, 2004 12:13 am    Post subject: Reply with quote

Code:

# vim: ft=apache sw=4 ts=4
<IfDefine PHP5>

        # Load the module first
        <IfModule !sapi_apache2.c>
                LoadModule php5_module modules/libphp5.so
        </IfModule>

        # Set it to handle the files
        <IfModule mod_mime.c>
                AddType application/x-httpd-php .php
                AddType application/x-httpd-php .phtml
                AddType application/x-httpd-php .php3
                AddType application/x-httpd-php .php4
                AddType application/x-httpd-php .php5
                AddType application/x-httpd-php-source .phps
        </IfModule>

</IfDefine>
Back to top
View user's profile Send private message
Dexter2004
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jul 2004
Posts: 123

PostPosted: Mon Nov 08, 2004 12:33 am    Post subject: Reply with quote

ja consegui resolver o problema.... fiz de novo emerge ao mod_php....

obrigado pela ajuda
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portuguese All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum