Apache Error Log Permission Denied Access To
Contents |
files will yield something like: (13)Permission denied: access to / There are a few things that could be the problem: Make sure it's not denied by Apache Most apache Configurations have something apache permission denied access to /index.html denied like this in there:
Apache 13 Permission Denied Access To
will block access to all files. You should also see something like this:
Apache Permission Denied Because Search Permissions Are Missing On A Component Of The Path
in your httpd.conf to allow access to that directory. Make sure Apache has Read, Execute Permissions The next thing to check is that Apache has read and execute permission (rx) on directories and read permission on files. You can run chmod 750 /dir (to give -rwxr-x--- permission) or chmod 755 /dir (to give -rwxr-xr-x permission), etc. Make sure that the Directory Above has Execute Permission This is the one that apache permission denied make_sock could not bind to address 80 tends to get me. Suppose you are creating an Alias like this: Alias /foo /tmp/bar/foo Now you have made sure that apache can read and execute /tmp/bar/foo by running chmod 755 /tmp/bar/foo, but you also need to give Apache execute permission to /tmp/bar/ otherwise it cannot traverse the sub directory foo. If Running Security Enhanced Linux (SELinux) Another possibility for this error is that you are running SELinux (Security Enhanced Linux), inwhich case you need to use chcon to apply the proper security context to the directory. One easy way to do this is to copy from a directory that does work for example /var/www/ chcon -R --reference=/var/www /path/to/webroot Tweet Permalink | Add Comment | add to del.icio.us | Tags: apache, alias, permission, httpd Related Entries Apache Security Patches on CentOS / RHEL - November 22, 2013 20 ways to Secure your Apache Configuration - December 6, 2005 CheatSheet for Apache - October 7, 2005 14 people found this page useful, what do you think? UsefulVery UsefulNot Useful Comments Another issue could be that your unix server has SELinux on, adn therefore we would need to run this:chcon -t httpd_sys_content_tin all filesSee here for further details:http://stackoverflow.com/questions/8816836/apache-403-error-13permission-denied-access-to-denied-fedora-16 by random striker on 08/21/2012 at 2:59:22 PM UTC tomcat 6 v
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn
Apache Permission Denied /var/www/html
more about Stack Overflow the company Business Learn more about hiring developers or
Apache Permission Denied Could Not Open Password File
posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer apache permission denied home directory site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise https://www.petefreitag.com/item/793.cfm to the top Can't access apache error logs up vote 9 down vote favorite 1 My Ubuntu vitual server wen't offline. I rebooted it and now want to debug what happened. I can browse to /etc/log but if I try cd apache2 it says Permission denied. I'm sure my user account has priviliges. I also tried sudo cd apache2 which gives the the error sudo: cd: command not found How http://askubuntu.com/questions/421684/cant-access-apache-error-logs can I access the apache logs? I also tried via sftp without success PS I am new to linux and virtual servers, but I am keen to learn everything I can. server permissions apache2 logs share|improve this question asked Feb 16 '14 at 15:44 Sam 170117 Try sudo -i then cd apache2. –Wilf Feb 16 '14 at 15:45 @Wilf it then says -bash: cd: apache2: No such file or directory –Sam Feb 16 '14 at 16:12 add a comment| 2 Answers 2 active oldest votes up vote 10 down vote accepted You need to add your username to the group adm sudo usermod -aG adm YourUserName You can then access the logfiles as normal user without sudo. share|improve this answer answered Feb 16 '14 at 17:10 rechengehirn 2,19311031 Thanks, this worked and made me able to actually browse to directory. –Sam Feb 16 '14 at 18:07 4 I had to log in / out of my user session for this permission to take effect. –Horba Jan 29 '15 at 0:15 add a comment| up vote 3 down vote Try: sudo cat /var/log/apache2/error.log share|improve this answer answered Feb 16 '14 at 16:06 wojox 5,9282551 Thanks wojox, but is
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings http://stackoverflow.com/questions/29210034/403-permission-denied-error-on-ubuntu-14-04-apache2 and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation https://github.com/scotch-io/scotch-box/issues/222 Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it permission denied only takes a minute: Sign up 403 - Permission denied error on Ubuntu 14.04 - apache2 up vote 5 down vote favorite 1 This question has been asked many times and I have gone through most of the solutions but still no luck. I am trying to create a virtual host on a new installation of Ubuntu 14.04 LTS version and apache permission denied for some reason I am getting the following error. You don't have permission to access / on this server. This is what I have done so far. Created the following virtual host in /etc/apache2/sites-available/om.conf
Support Search GitHub This repository Watch 123 Star 2,177 Fork 465 scotch-io/scotch-box Code Issues 37 Pull requests 1 Projects 0 Pulse Graphs New issue Permission denied trying to access apache error logs #222 Closed viveleroi opened this Issue May 20, 2016 · 2 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 2 participants viveleroi commented May 20, 2016 • edited Looking in /var/logs I see the apache2 directory but it's locked to a user group the vagrant user doesn't have access to. paulocamboim commented May 20, 2016 Mike, If you execute: $ ls -l /var/log | grep apache2 it will return: drwxr-x--- 2 root adm 4.0K Jul 10 2015 apache2 You can see that only the root have full access to this folder (rwx) and the group adm can (rx). And others users can't do nothing. If you are not root or do not belongs to adm group you can't do nothing. To check which groups you belongs run this command on the bash: $ groups The solution for you access the folder and files it's becoming root using sudo: $ sudo su $ cd /var/log/apache2 $ vim access.log Hope this helps! viveleroi commented May 20, 2016 Thanks, I knew the permissions were excluding the vagrant user but I didn't realize I could sudo su for root since this box was preconfigured. viveleroi closed this May 20, 2016 Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. Terms Privacy Security Status Help You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.