UnixServerAdmin

Server Administration & Management

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) :-

# vi /usr/lib/php.ini (Suexec  server)

Edit follwoing lines

=======================
allow_url_fopen = On
allow_url_include = On
=======================

# vi .htaccess (non-Suexec server)

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

Advertisements

March 17, 2011 Posted by | Apache, htaccess | , , | 1 Comment