Apache 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 apache permission denied exec of Stack Overflow the company Business Learn more about hiring developers or posting ads with
Apache Permission Denied Access To / Denied
us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users
Apache Permission Denied Make_sock Could Not Bind To Address 80
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 to the top Can't access
Apache Permission Denied /var/www/html
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 can I access the apache logs? I apache permission denied access to /index.html denied 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 there a more permanent solution? Like being able to navigate to the apache2 folder? &
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 apache permission denied could not open password file Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs apache permission denied home directory Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, apache permission denied proxy http attempt to connect to just like you, helping each other. Join them; it only takes a minute: Sign up Apache 13 permission denied in user's home directory [closed] up vote 36 down vote favorite 9 My friend's website was working fine http://askubuntu.com/questions/421684/cant-access-apache-error-logs until he moved the document root from /var/www/xxx to /home/user/xxx. Apache gives 13 permission denied error messages when we try to access the site via a web browser. The site is configured as a virtual directory. All the Apache configurations were unchanged (except for the directory change). We tried to chmod 777 /home/user/xxx, chown apache /home/user/xxx. But they didn't work. Is there some kind of security feature set on the user's home directories? The http://stackoverflow.com/questions/1225594/apache-13-permission-denied-in-users-home-directory server OS is CentOS (Godaddy VPS). Any help is appreciated! Thanks! apache permissions share|improve this question edited Oct 15 '12 at 6:32 Santosh Kumar 5,48373175 asked Aug 4 '09 at 3:18 Dave 4,47442638 closed as off topic by Will Jan 25 '11 at 13:51 Questions on Stack Overflow are expected to relate to programming within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question. 3 Should go on serverfault. –g . Aug 4 '09 at 3:21 Didn't know about that until you mentioned it =) I guess I'll give it a go. Why they keep two (maybe more?) sites anyway? Isn't it better to centralize those categories? –Dave Aug 4 '09 at 3:50 @Dave: stackoverflow.com is for programming questions; serverfault.com is for sysadmin/server questions; superuser.com is for general "power users" and other misc computer related questions. Helps people focus on their areas of expertise I suppose. –Josh Aug 4 '09 at 13:47 Can the question (and it's answers) be migrated over to serverfault - it is a good question, and c
Support Search GitHub This repository Watch 99 Star 1,760 Fork 481 fideloper/Vaprobash Code Issues 30 https://github.com/fideloper/Vaprobash/issues/436 Pull requests 34 Projects 0 Wiki Pulse Graphs New issue http://www.centos.org/forums/viewtopic.php?t=1742 Permission denied on apache2 logs #436 Closed damianlewis opened this Issue Jan 26, 2015 · 1 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 permission denied 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 apache permission denied 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.
access to /~user/ denied -- SElinux? General support questions Post Reply Print view Search Advanced search 5 posts • Page 1 of 1 hm2k Posts: 24 Joined: 2006/08/17 10:03:24 Contact: Contact hm2k Website [SOLVED] (13)Permission denied: access to /~user/ denied -- Quote Postby hm2k » 2012/01/18 18:16:24 Hi there,I've setup a server for local development on CentOS6.I'm trying to keep it fairly secure so I'm keeping SElinux enabled for now, however I seem to be having a problem.I've setup apache with UserDir public_html so I'm able to access the user's public_html directory as follows:http://server.ip/~user/This however results in:ForbiddenYou don't have permission to access /~user/ on this server.Apache Server at server.ip Port 80Checking the error log (/var/log/httpd/error_log) shows the following:[Wed Jan 18 18:01:02 2012] [error] [client server.ip] (13)Permission denied: access to /~user/ deniedWhat I've tried:I've RTFM, specifically the apache manual suggests it's a file permissions issue...It's not a file permissions issue as the apache user can access the files of the above mentioned "user":Code: Select all[root@elite home]# su apache -s /bin/bash
bash-4.1$ cat /home/user/public_html/test.txt
Just a test.
bash-4.1$ exit
exit
This results in being able to see the contents of test.txt, so we know that's OK.I can only assume it's an SElinux issue and RTFM...Code: Select allsetsebool -P httpd_enable_homedirs 1
chcon -R -t httpd_sys_content_t /home/user/public_html
Here's a bunch of other SElinux/httpd related settings I have set:Code: Select all[root@elite home]# getsebool -a | grep httpd
allow_httpd_anon_write --> on
allow_httpd_mod_auth_ntlm_winbind --> off
allow_httpd_mod_auth_pam --> off
allow_httpd_sys_script_anon_write --> off
httpd_builtin_scripting --> on
httpd_can_check_spam --> off
httpd_can_network_connect --> on
httpd_can_network_connect_cobbler --> off
httpd_can_network_connect_db --> off
httpd_can_network_memcache --> off
httpd_can_network_relay --> off
httpd_can_sendmail --> off
httpd_dbus_avahi --> on
httpd_enable_cgi --> on
httpd_enable_ftp_server --> off
httpd_enable_homedirs --> on
httpd_execmem --> off
httpd_read_user_content --> on
httpd_setrlimit --> off
httpd_ssi_exec --> off
httpd_tmp_exec --> off
httpd_tty_comm --> on
httpd_unified --> on
httpd_use_cifs --> off
httpd_use