Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
There could be some steps missed with setting up a web server prior to the instructions on those websites. If there is any other information I could post to be helpful let me know. I would really like to get this up and running.
(13)Permission denied: AH00091: httpd: could not open error log file /var/www/sorchastarr.com/error.log.
AH00015: Unable to open logs
(13)Permission denied: AH00091: httpd: could not open error log file /var/www/sorchastarr.com/error.log.
AH00015: Unable to open logs
(13)Permission denied: AH00091: httpd: could not open error log file /var/www/sorchastarr.com/error.log.
AH00015: Unable to open logs
(13)Permission denied: AH00091: httpd: could not open error log file /var/www/sorchastarr.com/error.log.
AH00015: Unable to open logs
(13)Permission denied: AH00091: httpd: could not open error log file /var/www/sorchastarr.com/error.log.
AH00015: Unable to open logs
(13)Permission denied: AH00091: httpd: could not open error log file /var/www/sorchastarr.com/error.log.
AH00015: Unable to open logs
(13)Permission denied: AH00091: httpd: could not open error log file /var/www/sorchastarr.com/error.log.
AH00015: Unable to open logs
(13)Permission denied: AH00091: httpd: could not open error log file /var/www/sorchastarr.com/error.log.
AH00015: Unable to open logs
You should think about changing those values to say /var/log/http/sorchastarr.com_error.log.
You don't want to have your apache logs writing to /var/www/.
It's an unnecessary risk.
So see what .conf files you need to adjust, have a look at the output of
Code:
apache2ctl -S
Once you start writing to /var/log/http/sorchastarr.com_error.log, apache should start right up.
I got it to start. I had to change the write access and then I got this message:
Code:
SELinux is preventing /usr/sbin/httpd from write access on the directory /var/www/sorchastarr.com.
***** Plugin httpd_write_content (92.2 confidence) suggests ***************
If you want to allow httpd to have write access on the sorchastarr.com directory
Then you need to change the label on '/var/www/sorchastarr.com'
Do
# semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/sorchastarr.com'
# restorecon -v '/var/www/sorchastarr.com'
***** Plugin catchall_boolean (7.83 confidence) suggests ******************
If you want to allow httpd to unified
Then you must tell SELinux about this by enabling the 'httpd_unified' boolean.
You can read 'None' man page for more details.
Do
setsebool -P httpd_unified 1
***** Plugin catchall (1.41 confidence) suggests **************************
If you believe that httpd should be allowed write access on the sorchastarr.com directory by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep httpd /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp
Once I followed the instructions I was able to start httpd!
all files in /var/www should be OWNED BY the user "apache"
I couldn't disagree more.
The user running the webserver should have write access to the bare minimum required to perform it's functions.
If it has the ability to rewrite it's own files it gives any attacker MUCH more scope to make your webserver do their bidding.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.