简体   繁体   中英

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. 123.123.123.133/index.php, but the response was always (The requested URL /index.php was not found on this server.)

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.

any help with this issue??

Check the directory where Plesk serves its files from. Is that really /var/www/html ? I thought Plesk was using /var/www/vhosts/<domain_name> .

Plesk documentation

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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