Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

tani's avatar
Level 1

404 not found error showing up on web server in ubuntu ec2 instance

Hello, I had laravel project setup on /var/www/html directory. Now I have deleted the laravel project directory from /var/www/html and upload phpinfo.php file in /var/www/html folder. Now, when I go to web page it is showing 404 not found error. No file is working under /var/www/html. How will php files work in this?

0 likes
1 reply
siangboon's avatar

check the default document root setting and .htaccess is configure accordingly...

Please or to participate in this conversation.