how to fix ‘error’ after hosting laravel project in cpanel?

  http-status-code-403, laravel, laravel-5, php, php-7.4

My project before it was in ‘nginx server’, now I downloaded and hosted to cpanel server. When I opened website in home page it shows error ‘This page isn’t working at the moment’ and in storage error logs shows

[2021-10-16 06:45:37] production.ERROR: SQLSTATE[HY000] [1045] Access denied for user 'cloudhost_ubcmlr'@'localhost' (using password: YES) {"exception":"[object] (DoctrineDBALDriverPDOException(code: 1045): SQLSTATE[HY000] [1045] Access denied for user 'cloudhost_ubcmlr'@'localhost' (using password: YES) at /home/myonecity/public_html/ubmlr-com/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:31, PDOException(code: 1045): SQLSTATE[HY000] [1045] Access denied for user 'cloudhost_ubcmlr'@'localhost' (using password: YES) at /home/myonecity/public_html/ubmlr-com/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:27)

but I have mentioned my database and password in .env. but I dont have any user like cloudhost_ubcmlr from where it is coming? it is because of cache? I cannot run even ‘cache-clear’ route also.

laravel version
laravel version

PHP version 7.4

and given permission to storage and bootstrap 0755.

please if anyboday know to fix it, please do help me.

Source: Laravel

Leave a Reply