When using cPanel the way to enable allow_url_include
directive locally (per user) is to create an Virtual Host include:
First create an include file:
/usr/local/apache/conf/userdata/std/2/username/domain.com/custom.conf
Add directive to custom.conf:
1
|
|
Then run to enable include:
/scripts/ensure_vhost_includes --user=username --verbose
Alternatively, enabling allow_url_include globally (server-wide) is done by editing /usr/local/lib/php.ini and adding “allow_url_include = On” directive to the Fopen wrapper section.
1 2 3 |
|
1 2 3 |
|
and restarting apache by issuing service httpd restart
command as root.