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

link|improve this question

38% accept rate
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 Zaslavsky May 25 '10 at 5:56
feedback

1 Answer

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?

link|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
show 1 more comment
feedback

Your Answer

 
or
required, but never shown

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