【问题标题】:Error 404 . xampp htdocs issue in local access错误 404 。本地访问中的 xampp htdocs 问题
【发布时间】:2012-07-20 23:30:19
【问题描述】:

我是 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 文件夹(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    

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

【问题讨论】:

    标签: php apache ubuntu xampp


    【解决方案1】:

    在将 mysite 添加到 htdocs 文件夹后,您有 chmod 吗?再次运行 chmod 命令,然后重新启动 Apache。

    【讨论】:

    • tanx m1ket。首先,我在 /opt/lampp/lampp 文件中注释了一些行,但再次启用此 cmets 并安装 ia32-libs 并运行 chmod 命令并根据您的上述注释重新启动lampp。现在一切都好了。 Tanx 任何人。
    猜你喜欢
    • 2016-11-26
    • 2013-12-27
    • 2011-10-20
    • 2012-10-10
    • 2011-11-15
    • 2014-09-05
    • 2018-06-27
    • 1970-01-01
    • 2013-10-03
    相关资源
    最近更新 更多