Olnex
July 26th, 2009, 10:17 PM
I tried to build a LAMP server on Ubuntu 9.04 Desktop edition, followed the link:
https://help.ubuntu.com/community/ApacheMySQLPHP
Everything is fine but when I access http://localhost it said "403 Forbidden" and "You don't have permission to access / on this server."
Everything is setup according to the above link, and here is the error.log:
[Mon Jul 27 11:49:45 2009] [notice] Apache/2.2.11 (Ubuntu) configured -- resuming normal operations
[Mon Jul 27 11:50:03 2009] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Mon Jul 27 11:50:06 2009] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Mon Jul 27 11:51:02 2009] [notice] caught SIGTERM, shutting down
[Mon Jul 27 11:51:08 2009] [notice] Apache/2.2.11 (Ubuntu) configured -- resuming normal operations
[Mon Jul 27 11:51:10 2009] [notice] Graceful restart requested, doing restart
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Mon Jul 27 11:51:10 2009] [notice] Apache/2.2.11 (Ubuntu) configured -- resuming normal operations
[Mon Jul 27 11:56:02 2009] [notice] Graceful restart requested, doing restart
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Mon Jul 27 11:56:02 2009] [notice] Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch configured -- resuming normal operations
[Mon Jul 27 11:59:09 2009] [notice] caught SIGTERM, shutting down
[Mon Jul 27 11:59:11 2009] [notice] Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch configured -- resuming normal operations
[Mon Jul 27 11:59:29 2009] [error] [client 127.0.0.1] File does not exist: /var/www/phpAdmin
[Mon Jul 27 11:59:33 2009] [error] [client 127.0.0.1] File does not exist: /var/www/phpMyAdmin
[Mon Jul 27 12:04:06 2009] [notice] caught SIGTERM, shutting down
[Mon Jul 27 12:04:07 2009] [notice] Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch configured -- resuming normal operations
[Mon Jul 27 12:04:34 2009] [error] [client 127.0.0.1] (13)Permission denied: access to / denied
[Mon Jul 27 12:08:31 2009] [error] [client 127.0.0.1] (13)Permission denied: access to / denied
[Mon Jul 27 12:10:42 2009] [error] [client 127.0.0.1] (13)Permission denied: access to / denied
[Mon Jul 27 12:10:52 2009] [error] [client 127.0.0.1] (13)Permission denied: access to / denied
and access.log:
127.0.0.1 - - [27/Jul/2009:11:50:03 +1000] "GET / HTTP/1.1" 200 56 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12) Gecko/2009070811 Ubuntu/9.04 (jaunty) Firefox/3.0.12"
127.0.0.1 - - [27/Jul/2009:11:50:03 +1000] "GET /favicon.ico HTTP/1.1" 404 236 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12) Gecko/2009070811 Ubuntu/9.04 (jaunty) Firefox/3.0.12"
127.0.0.1 - - [27/Jul/2009:11:50:06 +1000] "GET /favicon.ico HTTP/1.1" 404 236 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12) Gecko/2009070811 Ubuntu/9.04 (jaunty) Firefox/3.0.12"
127.0.0.1 - - [27/Jul/2009:11:51:10 +1000] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.11 (Ubuntu) (internal dummy connection)"
127.0.0.1 - - [27/Jul/2009:11:51:10 +1000] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.11 (Ubuntu) (internal dummy connection)"
127.0.0.1 - - [27/Jul/2009:11:51:10 +1000] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.11 (Ubuntu) (internal dummy connection)"
127.0.0.1 - - [27/Jul/2009:11:51:10 +1000] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.11 (Ubuntu) (internal dummy connection)"
127.0.0.1 - - [27/Jul/2009:11:51:10 +1000] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.11 (Ubuntu) (internal dummy connection)"
127.0.0.1 - - [27/Jul/2009:11:56:02 +1000] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.11 (Ubuntu) (internal dummy connection)"
127.0.0.1 - - [27/Jul/2009:11:56:02 +1000] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.11 (Ubuntu) (internal dummy connection)"
127.0.0.1 - - [27/Jul/2009:11:56:02 +1000] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.11 (Ubuntu) (internal dummy connection)"
127.0.0.1 - - [27/Jul/2009:11:56:02 +1000] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.11 (Ubuntu) (internal dummy connection)"
127.0.0.1 - - [27/Jul/2009:11:56:02 +1000] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.11 (Ubuntu) (internal dummy connection)"
127.0.0.1 - - [27/Jul/2009:11:59:25 +1000] "GET / HTTP/1.1" 200 56 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12) Gecko/2009070811 Ubuntu/9.04 (jaunty) Firefox/3.0.12"
127.0.0.1 - - [27/Jul/2009:11:59:29 +1000] "GET /phpAdmin HTTP/1.1" 404 259 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12) Gecko/2009070811 Ubuntu/9.04 (jaunty) Firefox/3.0.12"
127.0.0.1 - - [27/Jul/2009:11:59:33 +1000] "GET /phpMyAdmin HTTP/1.1" 404 261 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12) Gecko/2009070811 Ubuntu/9.04 (jaunty) Firefox/3.0.12"
127.0.0.1 - - [27/Jul/2009:12:04:34 +1000] "GET / HTTP/1.1" 403 256 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12) Gecko/2009070811 Ubuntu/9.04 (jaunty) Firefox/3.0.12"
127.0.0.1 - - [27/Jul/2009:12:08:31 +1000] "GET / HTTP/1.1" 403 256 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12) Gecko/2009070811 Ubuntu/9.04 (jaunty) Firefox/3.0.12"
127.0.0.1 - - [27/Jul/2009:12:10:42 +1000] "GET / HTTP/1.1" 403 256 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12) Gecko/2009070811 Ubuntu/9.04 (jaunty) Firefox/3.0.12"
127.0.0.1 - - [27/Jul/2009:12:10:52 +1000] "GET / HTTP/1.1" 403 256 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12) Gecko/2009070811 Ubuntu/9.04 (jaunty) Firefox/3.0.12"
I tried to chmod 777 index.html also tried to rename it to index.htm, but none of them works, can anyone helps me out or point me to the right direction?
Thanks!
https://help.ubuntu.com/community/ApacheMySQLPHP
Everything is fine but when I access http://localhost it said "403 Forbidden" and "You don't have permission to access / on this server."
Everything is setup according to the above link, and here is the error.log:
[Mon Jul 27 11:49:45 2009] [notice] Apache/2.2.11 (Ubuntu) configured -- resuming normal operations
[Mon Jul 27 11:50:03 2009] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Mon Jul 27 11:50:06 2009] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Mon Jul 27 11:51:02 2009] [notice] caught SIGTERM, shutting down
[Mon Jul 27 11:51:08 2009] [notice] Apache/2.2.11 (Ubuntu) configured -- resuming normal operations
[Mon Jul 27 11:51:10 2009] [notice] Graceful restart requested, doing restart
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Mon Jul 27 11:51:10 2009] [notice] Apache/2.2.11 (Ubuntu) configured -- resuming normal operations
[Mon Jul 27 11:56:02 2009] [notice] Graceful restart requested, doing restart
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Mon Jul 27 11:56:02 2009] [notice] Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch configured -- resuming normal operations
[Mon Jul 27 11:59:09 2009] [notice] caught SIGTERM, shutting down
[Mon Jul 27 11:59:11 2009] [notice] Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch configured -- resuming normal operations
[Mon Jul 27 11:59:29 2009] [error] [client 127.0.0.1] File does not exist: /var/www/phpAdmin
[Mon Jul 27 11:59:33 2009] [error] [client 127.0.0.1] File does not exist: /var/www/phpMyAdmin
[Mon Jul 27 12:04:06 2009] [notice] caught SIGTERM, shutting down
[Mon Jul 27 12:04:07 2009] [notice] Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch configured -- resuming normal operations
[Mon Jul 27 12:04:34 2009] [error] [client 127.0.0.1] (13)Permission denied: access to / denied
[Mon Jul 27 12:08:31 2009] [error] [client 127.0.0.1] (13)Permission denied: access to / denied
[Mon Jul 27 12:10:42 2009] [error] [client 127.0.0.1] (13)Permission denied: access to / denied
[Mon Jul 27 12:10:52 2009] [error] [client 127.0.0.1] (13)Permission denied: access to / denied
and access.log:
127.0.0.1 - - [27/Jul/2009:11:50:03 +1000] "GET / HTTP/1.1" 200 56 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12) Gecko/2009070811 Ubuntu/9.04 (jaunty) Firefox/3.0.12"
127.0.0.1 - - [27/Jul/2009:11:50:03 +1000] "GET /favicon.ico HTTP/1.1" 404 236 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12) Gecko/2009070811 Ubuntu/9.04 (jaunty) Firefox/3.0.12"
127.0.0.1 - - [27/Jul/2009:11:50:06 +1000] "GET /favicon.ico HTTP/1.1" 404 236 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12) Gecko/2009070811 Ubuntu/9.04 (jaunty) Firefox/3.0.12"
127.0.0.1 - - [27/Jul/2009:11:51:10 +1000] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.11 (Ubuntu) (internal dummy connection)"
127.0.0.1 - - [27/Jul/2009:11:51:10 +1000] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.11 (Ubuntu) (internal dummy connection)"
127.0.0.1 - - [27/Jul/2009:11:51:10 +1000] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.11 (Ubuntu) (internal dummy connection)"
127.0.0.1 - - [27/Jul/2009:11:51:10 +1000] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.11 (Ubuntu) (internal dummy connection)"
127.0.0.1 - - [27/Jul/2009:11:51:10 +1000] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.11 (Ubuntu) (internal dummy connection)"
127.0.0.1 - - [27/Jul/2009:11:56:02 +1000] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.11 (Ubuntu) (internal dummy connection)"
127.0.0.1 - - [27/Jul/2009:11:56:02 +1000] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.11 (Ubuntu) (internal dummy connection)"
127.0.0.1 - - [27/Jul/2009:11:56:02 +1000] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.11 (Ubuntu) (internal dummy connection)"
127.0.0.1 - - [27/Jul/2009:11:56:02 +1000] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.11 (Ubuntu) (internal dummy connection)"
127.0.0.1 - - [27/Jul/2009:11:56:02 +1000] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.11 (Ubuntu) (internal dummy connection)"
127.0.0.1 - - [27/Jul/2009:11:59:25 +1000] "GET / HTTP/1.1" 200 56 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12) Gecko/2009070811 Ubuntu/9.04 (jaunty) Firefox/3.0.12"
127.0.0.1 - - [27/Jul/2009:11:59:29 +1000] "GET /phpAdmin HTTP/1.1" 404 259 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12) Gecko/2009070811 Ubuntu/9.04 (jaunty) Firefox/3.0.12"
127.0.0.1 - - [27/Jul/2009:11:59:33 +1000] "GET /phpMyAdmin HTTP/1.1" 404 261 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12) Gecko/2009070811 Ubuntu/9.04 (jaunty) Firefox/3.0.12"
127.0.0.1 - - [27/Jul/2009:12:04:34 +1000] "GET / HTTP/1.1" 403 256 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12) Gecko/2009070811 Ubuntu/9.04 (jaunty) Firefox/3.0.12"
127.0.0.1 - - [27/Jul/2009:12:08:31 +1000] "GET / HTTP/1.1" 403 256 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12) Gecko/2009070811 Ubuntu/9.04 (jaunty) Firefox/3.0.12"
127.0.0.1 - - [27/Jul/2009:12:10:42 +1000] "GET / HTTP/1.1" 403 256 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12) Gecko/2009070811 Ubuntu/9.04 (jaunty) Firefox/3.0.12"
127.0.0.1 - - [27/Jul/2009:12:10:52 +1000] "GET / HTTP/1.1" 403 256 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12) Gecko/2009070811 Ubuntu/9.04 (jaunty) Firefox/3.0.12"
I tried to chmod 777 index.html also tried to rename it to index.htm, but none of them works, can anyone helps me out or point me to the right direction?
Thanks!