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 »

  1. Thanks a ton for taking a few minutes to line this all out for all of us. This particular post was in fact really useful to me.

    Comment by Alejandra Moscardelli | June 15, 2011 | Reply


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: