Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PHP problem
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
demonlinjun
n00b
n00b


Joined: 18 Apr 2006
Posts: 7

PostPosted: Sat Jul 08, 2006 4:16 pm    Post subject: PHP problem Reply with quote

My serve is GENTOO 2006.0, PHP+MYSQL+APACHE2

The web serve's script is PHP, when visiting it. The problem come out like this:
Code:
Fatal error: Call to undefined function preg_match_all()


When building PHP, the USE is "-* session zlib xml mysql cli apache2 ssl pcre"
Note that I do build PHP with the support of PCRE, so why the problem come out?
I am lost.
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Sat Jul 08, 2006 5:22 pm    Post subject: Reply with quote

Have you run phpinfo to see what PHP has to say (via Apache).
Back to top
View user's profile Send private message
demonlinjun
n00b
n00b


Joined: 18 Apr 2006
Posts: 7

PostPosted: Sun Jul 09, 2006 4:26 am    Post subject: Reply with quote

magic919 wrote:
Have you run phpinfo to see what PHP has to say (via Apache).

After running phpinfo, I find that although I add 'PCRE' to my USE, but PHPINFO say the PHP is build without the support of PCRE

why?
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Sun Jul 09, 2006 7:25 am    Post subject: Reply with quote

I don't know. I'm just working through general troubleshooting methods.
Back to top
View user's profile Send private message
llongi
Retired Dev
Retired Dev


Joined: 15 Apr 2004
Posts: 459
Location: Switzerland

PostPosted: Mon Jul 10, 2006 9:44 am    Post subject: Reply with quote

Did you really re-emerge dev-lang/php with USE=pcre enabled? "emerge -pv dev-lang/php" should show the flag in red then...
Also, remember to restart Apache for any changes to become effective!
_________________
Best regards, Luca.
Back to top
View user's profile Send private message
OpticalDezires
n00b
n00b


Joined: 22 Aug 2005
Posts: 72
Location: Riga, Latvia

PostPosted: Tue Jul 11, 2006 9:44 am    Post subject: Reply with quote

Same problem with me but a bit different. When I emerge PHP with xml in my USE flags, it builds without support of xml. I can see the flag --disable_xml in my configure path, running phpinfo. :(
Back to top
View user's profile Send private message
llongi
Retired Dev
Retired Dev


Joined: 15 Apr 2004
Posts: 459
Location: Switzerland

PostPosted: Tue Jul 11, 2006 10:24 am    Post subject: Reply with quote

OpticalDezires wrote:
Same problem with me but a bit different. When I emerge PHP with xml in my USE flags, it builds without support of xml. I can see the flag --disable_xml in my configure path, running phpinfo. :(


That's not the same problem, you just forgot to enable the "expat" USE flag in PHP4, which provides standard XML support. It's written in the last message the ebuild outputs too...
_________________
Best regards, Luca.
Back to top
View user's profile Send private message
OpticalDezires
n00b
n00b


Joined: 22 Aug 2005
Posts: 72
Location: Riga, Latvia

PostPosted: Tue Jul 11, 2006 6:32 pm    Post subject: Reply with quote

Thanks mate :) Everything works fine now :) Yupppyy!!!
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