欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

linux下配置lamp时候出现The requested URL /info.php was not found on this server问题

程序员文章站 2023-12-29 22:57:22
...
在经历修改各种配置文件和各种文件权限后,发现了怎么解决

On newer versions of Ubuntu, the document root is set to /var/www/html instead of /var/www.

You might have followed an old tutorial which was written for Ubuntu 12.04.

If /var/www/html exists, try moving info.php to it.

Moving Files

Directory: $ cd /var/www/
Command: $ mv info.php html

In the browser, enter yourip/info.php and good.

上一篇:

下一篇: