How to disable open_basedir and allow_url_fopen in PHP

12.6k Views Asked by At

I'm currently working on a PrestaShop website and noticed that one of my addon does not work when open_basedir and allow_url_fopen are enabled.

How to disable openbase_dir and allow_url_fopen in php.ini on my local server?

1

There are 1 best solutions below

0
Gufran Hasan On BEST ANSWER

You just need to comment out open_basedir in php.ini file and restart the server.

As:

;open_basedir

and this line in the .htaccess file

php_value allow_url_fopen On

or you can add this line in php.ini file

allow_url_fopen = On;