How to enable allow_url_fopen, allow_url_include on a shared server using custom php.ini

You can simply enable/disable the php functions allow_url_include and allow_url_fopen by editing the php configuration file. These functions may disabled in the php configuration file of some shared hosting server. You can simply manage these function by creating a custom php.ini file under your public folder.

Here is the way to do that 

Step I : Create/Open php.ini file under the public folder of your domain.
Step II : Add the following lines to enable above php functions.

allow_url_fopen = On
allow_url_include = On

that’s it 

  • 0 Users Found This Useful
Was this answer helpful?

Also Read

How to Find which VPS is Consuming High CPU on OpenVZ node

How to Find which VPS is Consuming High CPU on OpenVZ node   vzlist -o ctid,laverage |sort -nk2

What is PHP Selector ?

PHP Selector is a CloudLinux component that sits on top of CageFS. It allows each user to select...

How to enable mod_expires within the .htaccess file

Mod_expires is an Apache Web server module installed on all of our Linux hosting accounts by...

How to install VNC Server in OpenVZ VPS container (Ubuntu, Debian or CentOS)

Hello, You can check this script to setup a VNC server in OpenVZ containers.Simple steps:  - Run...

Fix Mail Delivery Reports in whm

Try repairing the eximstats database with a command such as: mysqlcheck --repair eximstats