php – Xampp – Ubuntu – 无法访问我的项目在lampp / htdocs
|
我已经将xampp安装到Ubuntu 12.04.我把我的项目放在/ opt / lampp / htdocs / project_is_的文件夹中 当我输入浏览器localhost / soap / php(soap / php在我的htdocs文件夹中)哪个是index.php我得到以下错误: Access forbidden! You don't have permission to access the requested directory. There is either no index document or the directory is read-protected. If you think this is a server error,please contact the webmaster. Error 403 localhost Apache/2.4.3 (Unix) OpenSSL/1.0.1c PHP/5.4.7 任何想法如何解决这个问题?我认为这是放置该项目的正确位置,因为我尝试过其他地方,它说位置不存在,这个错误消失在这里,我得到这个. 有任何想法吗? >在linux终端导航到你的lampp目录.cd /opt/lampp >在命令行中键入: sudo chmod 777 -R htdocs 问题应该解决. 第一编辑: 你刚做的是: 您导航到包含受保护目录的目录.你的问题是它是一个被系统访问保护的文件夹.当您命令chmod 777 -R htdocs时,您所做的是将计算机上每个人的权限设置为读/写/执行 – 允许. 现在,你知道每个数字的含义.它说的是谁的数字是关于.现在每个数字从0-7设置一个权限级别.我会为您提供一个链接. http://www.pageresource.com/cgirec/chmod.htm 我忘了添加为什么有一个’-R’. ‘-R’使命令递归并影响htdoc以及htdocs的所有子目录以及其他所有子目录. (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
