Current time: 11-26-2024, 09:05 PM Hello There, Guest! (LoginRegister)


Thread Closed 
[Solved] Local php.ini not read
Author Message
Spheerys Offline
Junior Member
*

Posts: 101
Joined: Feb 2008
Reputation: 0
Post: #1
[Solved] Local php.ini not read
Hi,

I'm using for a website the fcgi php file :
/var/www/fcgi/mydomain.com/php5/php.ini

Inside, I have just switch to "On" the variable "allow_url_fopen"

With RC3, that's work very well.
But since I have updated to RC4, this modification seems not working for each website which need this option On

Do you have this problem too ?
(This post was last modified: 04-02-2008 08:57 PM by Spheerys.)
03-26-2008 06:38 AM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: problem with fcgi after update to RC4
Take care when updating - it may happen that the php.ini may be overwritten while regenerating the config files.

Normally the settings in the specified php.ini should exactly do this for the php in the domain.... as it should. Maybe a reload of the php process is needed to take effect...

/J
03-26-2008 11:16 AM
Visit this user's website Find all posts by this user
Spheerys Offline
Junior Member
*

Posts: 101
Joined: Feb 2008
Reputation: 0
Post: #3
RE: problem with fcgi after update to RC4
I reload Apache several times without success...
How can I relaod de "php process" ?
03-26-2008 08:13 PM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: problem with fcgi after update to RC4
when you *restart* apache, all php processes should also be terminated... I don't know what happens with a "apache reload"...

ot you can kill the php processes of the vhost...
03-26-2008 08:24 PM
Visit this user's website Find all posts by this user
Spheerys Offline
Junior Member
*

Posts: 101
Joined: Feb 2008
Reputation: 0
Post: #5
RE: problem with fcgi after update to RC4
I have restart the server and the problem is still here : the modification of the "allow_url_fopen" variable in the php.ini file doesn't work
03-28-2008 05:02 AM
Find all posts by this user
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #6
RE: problem with fcgi after update to RC4
I also use this variable, but i don't have any Problems. It works as it should.

Did you edit the right php.ini?
03-28-2008 06:15 AM
Visit this user's website Find all posts by this user
Spheerys Offline
Junior Member
*

Posts: 101
Joined: Feb 2008
Reputation: 0
Post: #7
RE: problem with fcgi after update to RC4
After several verifications, I confirm than I have modified the right php.ini file
I even modify the php4/php.ini file to be sure

What did I do exactly ?
Code:
# nano /var/www/fcgi/domainname.com/php5/php.ini
I search the string "allow_url_include" :
Code:
;;;;;;;;;;;;;;;;;;
; Fopen wrappers ;
;;;;;;;;;;;;;;;;;;

; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
allow_url_fopen = On

; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
allow_url_include = Off
So, I have just turn On the "allow_url_include" variable because I have this error on the website :
Code:
Warning: include() [function.include]: URL file-access is disabled in the server configuration in /var/www/virtual/domainame.com/htdocs/file.php on line 83
Finaly, I have restarted apache2 :
Code:
# /etc/init.d/apache2 restart

If my memory works well, with the RC3, this procedure works.
Now, I only can see than the error is still present on the website, despite the modification in this php.ini file

Maybe I do something wrong, I don't know....[/code]
04-01-2008 07:21 PM
Find all posts by this user
Spheerys Offline
Junior Member
*

Posts: 101
Joined: Feb 2008
Reputation: 0
Post: #8
RE: problem with fcgi after update to RC4
Hummm I have found something.
If I do a phpinfo() on the website, I have this :
Code:
PHP Core
Directive             Local Value    Master Value
allow_url_fopen            On       On
allow_url_include          Off      Off
Why the Local value is Off whereas in the php.ini it's fix to On ?
04-01-2008 07:26 PM
Find all posts by this user
Spheerys Offline
Junior Member
*

Posts: 101
Joined: Feb 2008
Reputation: 0
Post: #9
RE: problem with fcgi after update to RC4
I had open a bug few days ago about this problem : http://www.isp-control.net/ispcp/ticket/1136
Today, the bug seem fixed in the last SVN
But I still have my problem....
04-01-2008 07:52 PM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #10
RE: problem with fcgi after update to RC4
I always make a copy of the php.ini (php.ini_1) so I have it, when ispcp overwrites it - with the patch this should not happen anymore.

But - your problem:
I also have RC4 and have no problems changing this value.

Can you check again with another value if you really have the right php.ini for this domain? Well you should see it in phpinfo - "Configuration File (php.ini) Path"

/J
04-01-2008 08:38 PM
Visit this user's website Find all posts by this user
Thread Closed 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)