简体   繁体   English

Ubuntu 14.04.1 LTS,LAMP Server,PHP无法正常工作

[英]Ubuntu 14.04.1 LTS, LAMP Server, PHP not working

I have installed Ubuntu 14.04 on a server for local use. 我已经在本地使用的服务器上安装了Ubuntu 14.04。

Apache is working fine. Apache工作正常。 I have see the phpinfo() method in /var/www . 我在/ var / www中看到了phpinfo()方法。 I have also changed the document root to /var/www but then also I cannot see the phpinfo on the browser. 我也将文档根目录更改为/ var / www,但随后在浏览器中也看不到phpinfo。

HTTP 5000 error is thrown by the browser. 浏览器抛出HTTP 5000错误。

sudo apt-get install php5
sudo chmod -R 755 /var/www/

Try the following: 请尝试以下操作:

sudo chmod 777 -R var/www

What your doing here is allowing the read/write permission to your www folder into the var directory. 您在这里所做的就是允许将您的www文件夹的读/写权限允许进入var目录。 First cd into your root and enter the above into your terminal. 首先进入您的根目录,然后在终端中输入以上内容。

http://www.computerhope.com/unix/uchmod.htm http://www.computerhope.com/unix/uchmod.htm

Read the above link in order to get the detailed idea in chmod in terminal. 阅读以上链接,以在终端的chmod中获得详细的想法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM