[英]The requested URL /index.php was not found on this server.?
I have an online Ubuntu VPS (with Plesk already installed), I tried a very simple index.php script in the /var/www/html directory using the IP address of the server in the browser ex. 我有一个在线Ubuntu VPS(已经安装了Plesk),我使用浏览器ex中服务器的IP地址在/ var / www / html目录中尝试了一个非常简单的index.php脚本。 123.123.123.133/index.php, but the response was always (The requested URL /index.php was not found on this server.)
123.123.123.133/index.php,但是响应始终是(在此服务器上找不到请求的URL /index.php。)
the script was: 脚本是:
<?php
phpinfo();
?>
I restarted apache2 many times and I tried many of the solutions in the stack overflow but none of them worked for me. 我多次重新启动了apache2,并尝试了堆栈溢出中的许多解决方案,但没有一个对我有用。
any help with this issue?? 这个问题有帮助吗?
Check the directory where Plesk serves its files from. 检查Plesk从其提供文件的目录。 Is that really
/var/www/html
? 那真的是
/var/www/html
吗? I thought Plesk was using /var/www/vhosts/<domain_name>
. 我以为Plesk使用的是
/var/www/vhosts/<domain_name>
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.