Home > eclipse, linux, subversion, ubuntu > Localhost: “Falied to open stream”

Localhost: “Falied to open stream”

If you ever find this error in localhost:

Warning: require_once(xajax_core/xajax.inc.php): failed to open stream: Permission denied in /home/mike/eclipse_workspace/web/src/main.php on line 2 Fatal error: require_once(): Failed opening required 'xajax_core/xajax.inc.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/mike/eclipse_workspace/web/src/main.php on line 2

it’s due to a permission error. Today I’ve copied a backup copy from one computer to another and I’ve overwritten the folder’s content.

I resolved it with a chgrp & chmod:

$ chgrp -R www-data application

$ chmod -R 775 application

  1. No comments yet.
  1. No trackbacks yet.

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: