1

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

  • 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

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?

  • 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
  • @nife I cannot vote, I need a 15 reputation???? – Jean May 25 '10 at 7:36
  • @Jean Glad to hear. Good Luck with your LAMP Setup. – Ash Palmer May 25 '10 at 12:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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