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

Tempestad's avatar

necesito ayudar para subir mi aplicacion de laravel inertia

some of you have uploaded laravel application with inertia to a cpanel, I have tried but I have not been able

0 likes
7 replies
ollie_123's avatar

When you say you've not been able to, please can you confirm what you mean?

If the files have uploaded but your having issues loading the page would be worth checking that your pointing your domain path to your project folders public file

1 like
Tempestad's avatar

this error appears SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO) (SQL: select * from sessions where id = eovzMJ2XTcykpknrh4HK68oObwxnjKxyAW0NlhXR limit 1) and I am placing the data in the file . env correctly.

this is my datos from file .env

APP_NAME=Nomina APP_ENV=production APP_DEBUG=false APP_URL=

LOG_CHANNEL=stack LOG_DEPRECATIONS_CHANNEL=null LOG_LEVEL=debug

DB_CONNECTION=mysql DB_HOST=localhost DB_PORT=3306 DB_DATABASE=bobfrokv_nomina2021 DB_USERNAME=bobfrokv_mario DB_PASSWORD=Tempestad0215+

Snapey's avatar

@Tempestad So, nothing to do with Inertia? You just don't have the right DB credentials.

You can see that it says accessed denied for 'root' but your username is bobfrokv_mario

Did you clear the config cache?

Tempestad's avatar

@snapey thanks for your help but before uploading the file run the command php artisan config:cache, route:cache,view:cache. thought that when using vue inertia should run the command npm run build. thank you so much

Tempestad's avatar

@snapey Please tell me what I need to do before I compress the file. It is my first time with this error and I have 2 days trying to fix it, I still do not find anything on the web that helps me

Please or to participate in this conversation.