Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I installed ubunto OS and apache.php and mysql on it the problem is that when I want to use phpmyadmin it says:

Warning: require_once(./libraries/ [function.require-once]: failed to open stream: Permission denied in /var/www/ on line 34

Fatal error: require_once() [function.require]: Failed opening required './libraries/' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/ on line 34

what should I do to solve my problem? any suggestions are welcome!


migration rejected from May 5 at 18:30

This question came from our site for professional and enthusiast programmers. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as off-topic by EEAA, masegaloeh, 84104, Jenny D, mdpc May 5 at 18:30

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

Did you try finding that file and doing a chmod 775 to open up permissions on that file? –  cinqoTimo Nov 28 '10 at 1:21

1 Answer 1

up vote 1 down vote accepted

cinqoTimo probably is on the right track, but I figured I'd expound. The user and group your apache is running as (www or some such) as specified in the httpd.conf file needs to have read permissions for the file.

You'll want to navigate to that file and check the permissions using 'ls -l', you might need to change the user/group of the file to match what is specified in your httpd.conf file.


Not the answer you're looking for? Browse other questions tagged or ask your own question.