View previous topic :: View next topic |
Author |
Message |
demonlinjun n00b
Joined: 18 Apr 2006 Posts: 7
|
Posted: Sat Jul 08, 2006 4:16 pm Post subject: PHP problem |
|
|
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 |
|
|
magic919 Advocate
Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Sat Jul 08, 2006 5:22 pm Post subject: |
|
|
Have you run phpinfo to see what PHP has to say (via Apache). |
|
Back to top |
|
|
demonlinjun n00b
Joined: 18 Apr 2006 Posts: 7
|
Posted: Sun Jul 09, 2006 4:26 am Post subject: |
|
|
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 |
|
|
magic919 Advocate
Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Sun Jul 09, 2006 7:25 am Post subject: |
|
|
I don't know. I'm just working through general troubleshooting methods. |
|
Back to top |
|
|
llongi Retired Dev
Joined: 15 Apr 2004 Posts: 459 Location: Switzerland
|
Posted: Mon Jul 10, 2006 9:44 am Post subject: |
|
|
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 |
|
|
OpticalDezires n00b
Joined: 22 Aug 2005 Posts: 72 Location: Riga, Latvia
|
Posted: Tue Jul 11, 2006 9:44 am Post subject: |
|
|
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 |
|
|
llongi Retired Dev
Joined: 15 Apr 2004 Posts: 459 Location: Switzerland
|
Posted: Tue Jul 11, 2006 10:24 am Post subject: |
|
|
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 |
|
|
OpticalDezires n00b
Joined: 22 Aug 2005 Posts: 72 Location: Riga, Latvia
|
Posted: Tue Jul 11, 2006 6:32 pm Post subject: |
|
|
Thanks mate Everything works fine now Yupppyy!!! |
|
Back to top |
|
|
|