Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problem with PHP5 and phpBB
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
DarkWolfBG
n00b
n00b


Joined: 06 Mar 2006
Posts: 24

PostPosted: Mon Mar 06, 2006 6:51 pm    Post subject: problem with PHP5 and phpBB Reply with quote

I have installed apache2 mysql4.x and php5.1.1 on my box. All test pages (one use function phpinfo() to check php module and the other uses mysqlconect() to check conection wit MySQL) work fine but when I installed phpBB and run the install script, the browser gives me an error "undefined function preg_mach()". Anyone knows how to fix this problem?
_________________
no windows, no gates, apache inside :)
Back to top
View user's profile Send private message
djscribble
Tux's lil' helper
Tux's lil' helper


Joined: 03 Aug 2005
Posts: 116

PostPosted: Mon Mar 06, 2006 7:31 pm    Post subject: Reply with quote

have you tried looking here:
http://www.phpbb.com/phpBB/viewtopic.php?t=323896

let me know if your settings are what they say at that site.
Back to top
View user's profile Send private message
DarkWolfBG
n00b
n00b


Joined: 06 Mar 2006
Posts: 24

PostPosted: Mon Mar 06, 2006 8:38 pm    Post subject: Reply with quote

I edit it and the error is the same "Fatal error: Call to undefined function preg_match() in /home/dwolf/public_html/phpBB2/install/install.php on line 206" The strange thing is that function preg_match() don't exists at all
_________________
no windows, no gates, apache inside :)
Back to top
View user's profile Send private message
djscribble
Tux's lil' helper
Tux's lil' helper


Joined: 03 Aug 2005
Posts: 116

PostPosted: Mon Mar 06, 2006 8:52 pm    Post subject: Reply with quote

ooo ok -- last time you typed the error wrong (you said mach instead of match) ... this could be one of 2 things then, it could be a misconfiguration with mysql or there could be a package missing (php-pcre extensions) could you please post the pertinant parts of your apache logs?

thanks!
Back to top
View user's profile Send private message
DarkWolfBG
n00b
n00b


Joined: 06 Mar 2006
Posts: 24

PostPosted: Mon Mar 06, 2006 9:38 pm    Post subject: Reply with quote

this is part of my /var/log/error_log
Code:
[Mon Mar 06 18:09:14 2006] [notice] Apache configured -- resuming normal operations
[Mon Mar 06 18:17:34 2006] [error] [client 127.0.0.1] File does not exist: /var/www/localhost/htdocs/phpmyadmin, referer: http://forums.gentoo.org//viewtopic-t-440250-highlight-php.html?sid=a0716a038809aad220a2002f71822bc0
[Mon Mar 06 22:43:02 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec2)
[Mon Mar 06 22:43:03 2006] [notice] Digest: generating secret for digest authentication ...
[Mon Mar 06 22:43:03 2006] [notice] Digest: done
[Mon Mar 06 22:43:04 2006] [notice] Apache configured -- resuming normal operations
[Mon Mar 06 22:44:24 2006] [error] [client 127.0.0.1] File does not exist: /var/www/localhost/htdocs/favicon.ico
[Mon Mar 06 22:58:32 2006] [error] [client 127.0.0.1] File does not exist: /var/www/localhost/htdocs/favicon.ico

and this is access_log
Code:
127.0.0.1 - - [06/Mar/2006:18:09:53 +0200] "GET /~dwolf/phpBB2/ HTTP/1.1" 302 -
127.0.0.1 - - [06/Mar/2006:18:09:53 +0200] "GET /~dwolf/phpBB2/install/install.php HTTP/1.1" 200 154
127.0.0.1 - - [06/Mar/2006:18:17:33 +0200] "GET /phpmyadmin/ HTTP/1.1" 404 268
127.0.0.1 - - [06/Mar/2006:22:44:21 +0200] "GET /~dwolf/phpBB2/install/install.php HTTP/1.1" 200 154
127.0.0.1 - - [06/Mar/2006:22:44:24 +0200] "GET /favicon.ico HTTP/1.1" 404 268
127.0.0.1 - - [06/Mar/2006:22:58:32 +0200] "GET /favicon.ico HTTP/1.1" 404 268
127.0.0.1 - - [06/Mar/2006:22:58:33 +0200] "GET /~dwolf/phpBB2/install/install.php HTTP/1.1" 200 154

_________________
no windows, no gates, apache inside :)
Back to top
View user's profile Send private message
djscribble
Tux's lil' helper
Tux's lil' helper


Joined: 03 Aug 2005
Posts: 116

PostPosted: Mon Mar 06, 2006 10:19 pm    Post subject: Reply with quote

OK, so it is looking more and more like a pcre problem...

Please post the output of the following commands:

Code:
equery l -i |grep pcre

Code:
equery l -i |grep pear
Back to top
View user's profile Send private message
DarkWolfBG
n00b
n00b


Joined: 06 Mar 2006
Posts: 24

PostPosted: Tue Mar 07, 2006 12:05 am    Post subject: Reply with quote

Theese comands don't say anything.
_________________
no windows, no gates, apache inside :)
Back to top
View user's profile Send private message
djscribble
Tux's lil' helper
Tux's lil' helper


Joined: 03 Aug 2005
Posts: 116

PostPosted: Tue Mar 07, 2006 2:27 pm    Post subject: Reply with quote

OK,
Code:
emerge dev-libs/libpcre
and also, please give me the output of emerge -pv for what you used to install php5

Last edited by djscribble on Tue Mar 07, 2006 2:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Tue Mar 07, 2006 2:49 pm    Post subject: Reply with quote

You need the pcre USE flag enabled for php, the PHP upgrade guide has information on some sensible default USE flags to enable.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
DarkWolfBG
n00b
n00b


Joined: 06 Mar 2006
Posts: 24

PostPosted: Tue Mar 07, 2006 6:39 pm    Post subject: Reply with quote

Thanks for the help. The problem was the USE flags. This time I have entered the flags from the guide :D If I have problem will inform you after compilation.
_________________
no windows, no gates, apache inside :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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