Apache2 Error.log Permission Denied
Contents |
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 more about Stack Overflow the company Business Learn more about hiring apache errorlog developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask
Php Permission Denied
Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it
Mysql Permission Denied
works: Anybody can ask a question Anybody can answer The best answers are voted up and rise 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
Tomcat Permission Denied
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 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 apache permission denied exec of 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 there a more permanent solution? Like being able to navigate to the apache2 folder? –Sam Feb 16 '14 at 16:13 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy p
Support Search GitHub This repository Watch 99 Star 1,760 Fork 481 fideloper/Vaprobash Code Issues 30 apache permission denied access to / denied Pull requests 34 Projects 0 Wiki Pulse Graphs New issue apache permission denied make_sock could not bind to address 80 Permission denied on apache2 logs #436 Closed damianlewis opened this Issue Jan 26, 2015 · 1 apache permission denied /var/www/html comment Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 2 participants damianlewis commented Jan 26, 2015 I can't access the apache2 http://askubuntu.com/questions/421684/cant-access-apache-error-logs log directory? I can view the log file is by using: $ sudo cat /var/log/apache2/192.168.22.10.xip.io-error.log but I can't access the /var/log/apache2 directory. I just get -bash: cd: /var/log/apache2: Permission denied fideloper closed this Jan 26, 2015 Owner fideloper commented Jan 26, 2015 Try using "sudo su" to login as root, then "cd" into https://github.com/fideloper/Vaprobash/issues/436 them. This is normal behavior, as using "sudo" with cat will work fine, but some operations like CD are "weird" in their behavior. so: sudo su cd /var/log/apache2 … On Mon Jan 26 2015 at 12:10:42 PM Damian Lewis ***@***.***> wrote: I can't access the apache2 log directory? I can view the log file is by using: $ sudo cat /var/log/apache2/192.168.22.10.xip.io-error.log but I can't access the /var/log/apache2 directory. I just get -bash: cd: /var/log/apache2: Permission denied — Reply to this email directly or view it on GitHub <#436>. 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.
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 https://www.petefreitag.com/item/793.cfm by Apache Most apache Configurations have something like this in there: