Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

This happened after the server went down all of sudden, we couldn't access it only a minute later, when we attempted apache restart. the error below occurred:

httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf:
Syntax error on line 5 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 65 of /usr/local/psa/admin/conf/generated/13342807890.71533800_server.include: Syntax error on line 5 of /usr/local/psa/admin/conf/ip_vhosts_bootstrap.conf: Could not open configuration file /var/www/vhosts/[WEBSITE_NAME]/conf/13271658660.95918800_httpd_ip_default.include: Permission denied

Due to business confidentiality, I replaced the actual website name with [WEBSITE_NAME] in this question.

httpd -k start stop works fine without errors, but service httpd restart/start/stop fails. I tried chcon -t httpd_config_t on the listed conf files but to no avail. I also tried: /usr/local/psa/admin/sbin/websrvmng -v -a but that didn't work either

The [WEBSITE_NAME] have been added from the start and restart was working fine. I don't think it's a permission issue with that site directory. It seems it has to do with SElinux. Something happened to it either when server went down or some changes I don't know about.

How would I go about debugging this issue?

share|improve this question
    
Test to see if it's an SELinux issue. echo 0 >/selinux/enforce To re-enable SELinux echo 1 >/selinux/enforce –  Wesley Apr 17 '12 at 4:53
    
Thanks for the comment, I ll do that later. Client want to backup all first since server is working now. if confirmed SELinux issue after running that command, what's your suggestion? –  Dreaded semicolon Apr 17 '12 at 6:15
    
yes it's selinux issue. the strange thing that parallel plex kb article suggest disabling it kb.parallels.com/en/113376 –  Dreaded semicolon Apr 19 '12 at 5:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.