php5.20 and file-access is disabled

kernow

Well-Known Member
Jul 23, 2004
995
42
178
cPanel Access Level
Root Administrator
Hi,
After upgrading to php 5.20 a few clients are complaining that some things are broken with new errors like:
Warning: include() [function.include]: URL file-access is disabled in the server configuration
/QUOTE] and also allow_url_include = off[ which used to be on.
I tried creating a php.in file in /home/user/public_html and and turning those functions On but it hasn't worked, how safe is it to turn them back on in the main php.ini file ?
 

NT

Well-Known Member
May 4, 2004
137
0
166
England, UK
These were disabled by default as they are a potential security risk. I believe you can only re-enable them in the main php.ini file, not through other methods.
 

Snowman30

Well-Known Member
PartnerNOC
Apr 7, 2002
679
0
316
cPanel Access Level
DataCenter Provider
Ive just noticed the same errors starting to pop up on some scripts and i have

allow_url_fopen = On

set in the php.ini file

is there somethign i have missed?
 

Michael-MS

Well-Known Member
Apr 16, 2003
144
0
166
I also have a few clients complaining about this. Should all scripts be updated to use a different method or do we need to enable this in the main php.ini file?

Michael
 

Snowman30

Well-Known Member
PartnerNOC
Apr 7, 2002
679
0
316
cPanel Access Level
DataCenter Provider
the problem i have seen that even with allow_url_fopen = On set in the main php.ini file it still errors out

anyone know how to fix this?
 

Michael-MS

Well-Known Member
Apr 16, 2003
144
0
166
Just make sure you restart httpd a few times. It didn't take affect the first time for me for some reason.

Michael
 

vince512

Active Member
Nov 16, 2003
35
0
156
All I did was add this to a local php.ini file in the public_html folder and worked like a charm:

allow_url_include = On

Also ensure that you left allow_url_fopen = On.

No reason to disable suexec.

Vince