错误404.本地访问中的examplep-htdocs问题


Error 404 . xampp htdocs issue in local access

我是PHP 的新手

我使用以下命令在Ubuntu 12.04 LTS上下载并安装examplep-linux-1.7.3a.tar.gz文件:

 tar xvfz xampp-linux-1.7.3a.tar.gz -C /opt

解决了htdocs使用此命令的问题:

 sudo chmod 777 -R /opt/lampp/htdocs/

并使用以下命令设置密码:

 sudo /opt/lampp/lampp security

在我的浏览器中,我转到localhost地址,一切都很好。但当我浏览位于htdocs文件夹(新闻网站)中的网站时,会出现以下错误:

 Object not found!  
 The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.  
 If you think this is a server error, please contact the webmaster.  
 Error 404  
 localhost  
 Sun 22 Jul 2012 11:38:05 AM IRDT  
 Apache/2.2.21 (Unix) DAV/2 mod_ssl/2.2.21 OpenSSL/1.0.0c PHP/5.3.8 mod_apreq2-20090110/2.7.1 mod_perl/2.0.5 Perl/v5.10.1    

我在网上搜索了很多,但没有解决这个问题。

添加mysite后是否chmod htdocs文件夹?再次运行chmod命令,然后重新启动Apache。