无法执行"testphp"从本地主机


Unable to execute "testphp" from localhost

我从unixmen.com安装了LAMP,但是我无法使用localhost运行php脚本。它说:

Not Found请求的URL/html/testphp.php在此服务器上找不到。Apache/2.4.18 (Ubuntu) Server at localhost Port 80

注意!

您的lamp服务器启动了吗?终端命令

sudo/opt/lampp/lampp start

如果是安装灯的地方。

url应该是http://localhost/name_of_your_project/testphp.php

第一个问题:这个文件是第一个。php在新的服务中执行什么?

如果是,请确保服务器已启动:

sudo/opt/lampp/lampp start

验证文件中的权限。或者

try access using IP 127.0.0.1

http://127.0.0.1

你的目录html是子'var'www'html ?

try move to one level up