Advertisement

PHP 8.2 php.ini - allow_url_fopen

General questions relating to Joomla! 4.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
User avatar
kgeary007
Joomla! Intern
Joomla! Intern
Posts: 60
Joined: Mon Feb 07, 2011 5:18 pm

PHP 8.2 php.ini - allow_url_fopen

Post by kgeary007 » Thu Aug 29, 2024 5:54 pm

I need to change the settings for
allow_url_fopen = On
I have updated the php.ini using the cPanel editor for our domain. ea-php82

I can see the php.ini file in the joomla root level directory and the top level public_html with the correct setting.

However when I look in Joomla admin at SYSTEM INFORMATION
under CORE it shows php 8.2.22
allow_url_fopen Off Off

How do I update this for Joomla CORE?

Advertisement
gws
Joomla! Champion
Joomla! Champion
Posts: 6347
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: PHP 8.2 php.ini - allow_url_fopen

Post by gws » Thu Aug 29, 2024 6:00 pm

You need allow url open to be yes! With this off updating and installing extensions may be problematic. This is not a security concern, allow url include is the security risk and often confused with.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44563
Joined: Sat Apr 05, 2008 9:58 pm

Re: PHP 8.2 php.ini - allow_url_fopen

Post by Webdongle » Thu Aug 29, 2024 6:23 pm

+1 @gws

https://docs.joomla.org/Security_Checkl ... _url_fopen
Use allow_url_fopen

This option enables the URL-aware fopen wrappers that enable accessing URL object like files. Default wrappers are provided for the access of remote files using the FTP or HTTP protocol, some extensions such as zlib may register additional wrappers. Note: This can only be set in php.ini for security reasons. Enable and use allow_url_fopen to allow Joomla's One-Click-Update to work properly.

For more information see: PHP Manual: allow_url_fopen and allow_url_include

Proper setup will have this:
allow_url_fopen = 1
allow_url_include = 0

PHP default: allow_url_fopen is enabled
PHP default: allow_url_include is disabled
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

javiercarpenter
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Aug 27, 2024 1:41 pm

Re: PHP 8.2 php.ini - allow_url_fopen

Post by javiercarpenter » Fri Aug 30, 2024 9:23 am

Sometimes hosting environments use a global php.ini that overrides local settings. You might want to check with your hosting provider to ensure the correct file is being read.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44563
Joined: Sat Apr 05, 2008 9:58 pm

Re: PHP 8.2 php.ini - allow_url_fopen

Post by Webdongle » Fri Aug 30, 2024 9:53 am

@javiercarpenter
There is always a master php.ini, depending on the Hosting package the user may or may not have access to it.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

User avatar
kgeary007
Joomla! Intern
Joomla! Intern
Posts: 60
Joined: Mon Feb 07, 2011 5:18 pm

Re: PHP 8.2 php.ini - allow_url_fopen

Post by kgeary007 » Mon Sep 02, 2024 2:02 pm

I updated the php.ini in the local joomla directory and the top level domain, but I don't have access to the global php.ini
The backend Joomla admin system information / php information shows CORE php 8.2.22

Directive Local Value Master Value
allow_url_fopen Off Off
allow_url_include Off Off

Is there some way I can make Joomla use the local php.ini file instead of the global file?
Is there a setting in htaccess or some other way to modify this?

gws
Joomla! Champion
Joomla! Champion
Posts: 6347
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: PHP 8.2 php.ini - allow_url_fopen

Post by gws » Mon Sep 02, 2024 2:59 pm

Ask your host to enable it.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44563
Joined: Sat Apr 05, 2008 9:58 pm

Re: PHP 8.2 php.ini - allow_url_fopen

Post by Webdongle » Mon Sep 02, 2024 5:37 pm

kgeary007 wrote: Mon Sep 02, 2024 2:02 pm...

Is there some way I can make Joomla use the local php.ini file instead of the global file?
Is there a setting in htaccess or some other way to modify this?
Nope.
You need to ask your Host. If they refuse to do it and tell you it's a security risk then tell them they don't know what they are talking about and you will change to a Host that does.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

User avatar
AMurray
Joomla! Master
Joomla! Master
Posts: 10193
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: PHP 8.2 php.ini - allow_url_fopen

Post by AMurray » Sun Sep 15, 2024 4:52 am

Some quick research (with a grain of salt) indicates allow_url_fopen when used and coded correctly is fine (the risk is in the dodgy coding that might make it a vulnerability)...but allow_url_include is the one to avoid.
Regards - A Murray
General Support Moderator

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44563
Joined: Sat Apr 05, 2008 9:58 pm

Re: PHP 8.2 php.ini - allow_url_fopen

Post by Webdongle » Sun Sep 15, 2024 8:34 am

Hmmmmm yes when allow_url_include is set ON instead of OFF
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

Advertisement

Post Reply

Return to “General Questions/New to Joomla! 4.x”