no, no, no
Never do this. Change your web server config so that public is the document root
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I tried to deploy laravel app into linux distro Red Hat Enterprises to httpd (apache) server directory /var/www/html/ .
Versions
Red Hat Enterprises Version: 7.9
Laravel Version: 11.3
PHP Version: 8.2
Steps involved:1.Upload the project folder to server directory and config all .env2. Navigate to project folder, to public folder then moved index.php file into project root directory and edit it to locate vendor,booststrap,mantainance to start the app as shown on the code block
Please or to participate in this conversation.