PHP.ini file, confusion? My site no longer works right?

Jun 12, 2007
8
0
51
I own Artisticimpulses.com, and my host recently updated our version of PHP to PHP 5.2.2 and I have read everywhere that my php.ini file should have:

allow_url_include = On
&
allow_url_fopen = On


Displayed somewhere.

Yet when I opened that file, it was empty, I also checked the .htaccess and yet that was empty as well. Because of this, this is what is displayed on my site when I open it:

Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home2/artistic/public_html/index.php on line 1

Warning: include(http://aberrant.artisticimpulses.com/wordpress/index.php) [function.include]: failed to open stream: no suitable wrapper could be found in /home2/artistic/public_html/index.php on line 1

Warning: include() [function.include]: Failed opening 'http://aberrant.artisticimpulses.com/wordpress/index.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/artistic/public_html/index.php on line 1


Any idea what I need to put in my php.ini file? I am kind of new to this and its very confusing. Any help would be brilliant!

Nathan
 

TechBrein

Member
Jul 31, 2006
17
0
151
Open your .htaccess file and add the following lines:

php_flag allow_url_fopen On
php_flag allow_url_include On

This should fix the issue, hopefully.
 
Jun 12, 2007
8
0
51
I have tried finding a possible solution, yet I cant get anywhere?

If someone was even kind enough to send me an email with their .htaccress and/or php.ini file attached, [email protected], and instructions on where to put it, then that would be grand. Because currently my site doesn't work!
 
Last edited:

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
so why does my site display these things?

URL file-access is disabled in the server configuration in /home2/artistic/public_html/index.php on line 1


That is likely because your server administrator/web hosting provider has disabled such functionality. You will need to contact them to enable such functionality on the server you are using.
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
I am talking to my host, what do they need to do?
Two solutions:

Easy (but not most secure) Solution: Have your web hosting provider enable allow_url_fopen in php.ini

Better Solution: Don't use File I/O functions in PHP to handle data from external URLs. Refer to the PHP documentation at PHP.net on how you can do this.
 

Snowman30

Well-Known Member
PartnerNOC
Apr 7, 2002
679
0
316
cPanel Access Level
DataCenter Provider
i have actually noticed that allow_url_include is not included in php 5.2.3's php.ini file and allow_url_fopen does not work around this problem for everyone, and adding allow_url_include = on to the servers php.ini file will correct this, but of course at a risk of security
 
Last edited:

Kimber

Active Member
Apr 16, 2005
33
0
156
I own Artisticimpulses.com, and my host recently updated our version of PHP to PHP 5.2.2 and I have read everywhere that my php.ini file should have:

allow_url_include = On
&
allow_url_fopen = On


Displayed somewhere.

Yet when I opened that file, it was empty, I also checked the .htaccess and yet that was empty as well. Because of this, this is what is displayed on my site when I open it:

Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home2/artistic/public_html/index.php on line 1

Warning: include(http://aberrant.artisticimpulses.com/wordpress/index.php) [function.include]: failed to open stream: no suitable wrapper could be found in /home2/artistic/public_html/index.php on line 1

Warning: include() [function.include]: Failed opening 'http://aberrant.artisticimpulses.com/wordpress/index.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/artistic/public_html/index.php on line 1


Any idea what I need to put in my php.ini file? I am kind of new to this and its very confusing. Any help would be brilliant!

Nathan

Did you ever get your usr/lib/php:/usr/local/lib/php' error fixed? I am having the same problem and even with reading the forum am very very lost on what to do.

Kimberly
 

Frimon86

BANNED
Jun 4, 2007
31
0
156
Did you ever get your usr/lib/php:/usr/local/lib/php' error fixed? I am having the same problem and even with reading the forum am very very lost on what to do.

Kimberly
This might help

Two solutions:

Easy (but not most secure) Solution: Have your web hosting provider enable allow_url_fopen in php.ini

Better Solution: Don't use File I/O functions in PHP to handle data from external URLs. Refer to the PHP documentation at PHP.net on how you can do this.
I could suggest maybe finding someone you can hire to manage your server or hirign a freelancer?? Did you try asking your host Kimberly?
 

Kimber

Active Member
Apr 16, 2005
33
0
156
I own Artisticimpulses.com, and my host recently updated our version of PHP to PHP 5.2.2 and I have read everywhere that my php.ini file should have:

allow_url_include = On
&
allow_url_fopen = On


Displayed somewhere.

Yet when I opened that file, it was empty, I also checked the .htaccess and yet that was empty as well. Because of this, this is what is displayed on my site when I open it:

Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home2/artistic/public_html/index.php on line 1

Warning: include(http://aberrant.artisticimpulses.com/wordpress/index.php) [function.include]: failed to open stream: no suitable wrapper could be found in /home2/artistic/public_html/index.php on line 1

Warning: include() [function.include]: Failed opening 'http://aberrant.artisticimpulses.com/wordpress/index.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/artistic/public_html/index.php on line 1


Any idea what I need to put in my php.ini file? I am kind of new to this and its very confusing. Any help would be brilliant!

Nathan


My .htaccess file says:


Options All -Indexes
AddHandler application/x-httpd-php .htm .html

Where I am suppose to add or change to put in

change in php.ini the line
allow_url_fopen = On
with
allow_url_include = On
 

Kimber

Active Member
Apr 16, 2005
33
0
156
This might help



I could suggest maybe finding someone you can hire to manage your server or hirign a freelancer?? Did you try asking your host Kimberly?

1) I have a webhost I have contacted but I would still like to know if this is a cpanel or web hosting problem. Someone has screwed up here and I like to who because I have these php codes up for a very long time with no problem. Then all at once a problem...!

2) I don't hire freelancers because everyone I have ever hired had ripped me off. They tell me they can do programming they can't do and normally mess stuff up more than the fix it.

Right now I would like to know what the problem is so I can contact my web hosting company and says: "This is my problem and I need to get this fixed" but it doesn't do me much good if I can't find out what is wrong ( in english - not all us grew up with computers) then how so I can tell them what the problem is.
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
1) I have a webhost I have contacted but I would still like to know if this is a cpanel or web hosting problem. Someone has screwed up here and I like to who because I have these php codes up for a very long time with no problem. Then all at once a problem...!
The issue you are experiencing is a PHP configuration issue, not a cPanel/WHM issue. Additionally, it is likely if your web hosting provider has upgraded to a later version of PHP such as 5.2.3 that some settings in your php.ini files are no longer being processed. This was a long-standing unintended functionality of PHP that was recently fixed.
 

Kimber

Active Member
Apr 16, 2005
33
0
156
The issue you are experiencing is a PHP configuration issue, not a cPanel/WHM issue. Additionally, it is likely if your web hosting provider has upgraded to a later version of PHP such as 5.2.3 that some settings in your php.ini files are no longer being processed. This was a long-standing unintended functionality of PHP that was recently fixed.

What do I need to have my web host make my php processing again?

Thank you
Kimberly