Posts tagged Warning: file() [function.file]: URL file-access is disabled in the server configuration

Warning: file() [function.file]: URL file-access is disabled in the server configuration

If you are getting the above error then  make the following changes  in  the php.ini file (Suexec  server) or  .htaccess file (non-Suexec server) :

root@server[#] vi  php.ini

allow_url_fopen = On
allow_url_include = On

or

root@server[#] vi  .htaccess

<IfModule mod_php5.c>
php_admin_value allow_url_fopen On
php_admin_value allow_url_include On
</IfModule>

That’s all  this will  do it.