New web page and edited localhost/index.html gives a 404 error

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

Jean

Posted 2010-05-25T05:39:01.527

Reputation: 187

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 – 2010-05-25T05:56:18.800

Answers

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?

Ash Palmer

Posted 2010-05-25T05:39:01.527

Reputation: 209

I think its more of a security issue, with selinux, any grabs on that? – Jean – 2010-05-25T06:00:07.170

Maybe this is what your looking for:

chcon -Rv -usystem_u -robject_r -thttpd_sys_content_t /var/www/html

http://www.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 – 2010-05-25T06:26:48.043

1@ash It worked, can put this as an answer, so I can vote. Thanks – Jean – 2010-05-25T06:48:08.737

@nife I cannot vote, I need a 15 reputation???? – Jean – 2010-05-25T07:36:24.093

@Jean Glad to hear. Good Luck with your LAMP Setup. – Ash Palmer – 2010-05-25T12:59:41.507