Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am using Ubuntu and have AMP. I tried to create a new folder under /var/www/html/ it says not found. I edited the http://localhost/index.html and that gives me a 404 error. I guess its something to do with the security.

localhost/index.html was OK before the edit

Appreciate all assistance.

Thanks Jean

share|improve this question
    
Can you describe exactly what you did, and show the exact error messages you got? If you can copy and paste from your terminal session, that's usually best, as long as the excerpts are not too long. –  David Z May 25 '10 at 5:56

1 Answer 1

up vote 1 down vote accepted

Your logs are located in /var/log/httpd/ error_log will provide you with a good starting point.

Maybe this is what your looking for:

chcon -Rv -usystem_u -robject_r -thttpd_sys_content_t /var/www/html crypt.gen.nz/selinux/disable_selinux.html

At least it will be able to rule that out as an issue. I'm guessing you do not have any relevant errors in your logs?

share|improve this answer
    
I think its more of a security issue, with selinux, any grabs on that? –  Jean May 25 '10 at 6:00
    
Maybe this is what your looking for: chcon -Rv -usystem_u -robject_r -thttpd_sys_content_t /var/www/html crypt.gen.nz/selinux/disable_selinux.html At least it will beable to rule that out as an issue. I'm guessing you do not have any relevant errors in your logs? –  Ash Palmer May 25 '10 at 6:26
1  
@ash It worked, can put this as an answer, so I can vote. Thanks –  Jean May 25 '10 at 6:48
    
@Jean - I added his comment to his answer so you can vote/accept it –  Nifle May 25 '10 at 7:24
    
@nife I cannot vote, I need a 15 reputation???? –  Jean May 25 '10 at 7:36

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.