[英]xampp in window 7 cannot access files in subfolder inside C:/xampp/htdocs
[英]Error 404 . xampp htdocs issue in local access
我是PHP新手
我使用以下命令在Ubuntu 12.04 LTS上下载并安装xampp-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
在我的浏览器中,我转到本地主机地址,一切正常。 但是当我浏览到位于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
我在网上搜索了很多,但没有解决这个问题。
你chmod
添加的mysite它后htdocs文件夹? 再次运行chmod
命令,然后重新启动Apache。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.