2012-07-22 75 views
0

问题我新的PHP错误404。 XAMPP htdocs目录在本地接入

我下载并安装在Ubuntu的XAMPP-Linux的1.7.3a.tar.gz文件12.04 LTS使用此命令:

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

解决的htdocs

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

和seted密码,用这个命令::

sudo /opt/lampp/lampp security 
用这个命令的麻烦

在我的浏览器中我去localhost地址,一切都很好。但是当我眉头到我的网站,位于htdocs文件夹(newsite)出现此错误:

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  

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

+0

你试过的确切URL是什么?你想查看的htdocs文件夹中的文件名是什么? – Mark 2012-07-22 13:23:17

回答

0

对不起,您能否提供更多的上下文?

你试图命中什么URL以及你的htdocs中的文件夹结构是什么样的?

+0

htdocs => mysite => index.php 我在windows下运行这个站点,但是在ubunt和这个版本中NO 地址是http:// localhost/mysite – 2012-07-22 14:18:05

+0

你是否在加入mysite之后chmod'htdocs文件夹? – m1ket 2012-07-22 14:38:38

+0

no 我在安装xampp后使用chmod命令 – 2012-07-22 15:29:47