View previous topic :: View next topic |
Author |
Message |
DarkWolfBG n00b
Joined: 06 Mar 2006 Posts: 24
|
Posted: Mon Mar 06, 2006 6:51 pm Post subject: problem with PHP5 and phpBB |
|
|
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 |
|
|
djscribble Tux's lil' helper
Joined: 03 Aug 2005 Posts: 116
|
|
Back to top |
|
|
DarkWolfBG n00b
Joined: 06 Mar 2006 Posts: 24
|
Posted: Mon Mar 06, 2006 8:38 pm Post subject: |
|
|
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 |
|
|
djscribble Tux's lil' helper
Joined: 03 Aug 2005 Posts: 116
|
Posted: Mon Mar 06, 2006 8:52 pm Post subject: |
|
|
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 |
|
|
DarkWolfBG n00b
Joined: 06 Mar 2006 Posts: 24
|
Posted: Mon Mar 06, 2006 9:38 pm Post subject: |
|
|
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 |
|
|
djscribble Tux's lil' helper
Joined: 03 Aug 2005 Posts: 116
|
Posted: Mon Mar 06, 2006 10:19 pm Post subject: |
|
|
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 |
|
|
DarkWolfBG n00b
Joined: 06 Mar 2006 Posts: 24
|
Posted: Tue Mar 07, 2006 12:05 am Post subject: |
|
|
Theese comands don't say anything. _________________ no windows, no gates, apache inside |
|
Back to top |
|
|
djscribble Tux's lil' helper
Joined: 03 Aug 2005 Posts: 116
|
Posted: Tue Mar 07, 2006 2:27 pm Post subject: |
|
|
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 |
|
|
tomk Bodhisattva
Joined: 23 Sep 2003 Posts: 7221 Location: Sat in front of my computer
|
Posted: Tue Mar 07, 2006 2:49 pm Post subject: |
|
|
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 |
|
|
DarkWolfBG n00b
Joined: 06 Mar 2006 Posts: 24
|
Posted: Tue Mar 07, 2006 6:39 pm Post subject: |
|
|
Thanks for the help. The problem was the USE flags. This time I have entered the flags from the guide If I have problem will inform you after compilation. _________________ no windows, no gates, apache inside |
|
Back to top |
|
|
|