2012-07-22 21 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

相關問題