2. Common Issues

Access Denied Error During Installation

SQLSTATE[28000] [1045] Access denied for user ‘root’@’localhost’ (using password: YES

if you are seeing this or similar error, it most likely means you entered your database credentials incorrect. Double check your credentials carefully to make sure you didn’t misspell anything, also check if you cleaned cache after changes in config files.

run:  php artisan config:cache from terminal in root of application

URL rewrite is not working

If you don’t have url rewrite enabled on server, application will not work. Check if:

  • You have file /public/.htaccess
  • Apache mod_rewrite is enabled on server. If you don’t have access to server configuration please contact your hosting provider.
  • Overrides via .htaccess field are enabled on server. If this is not allowed please contact your hosting provider.
  • You are using nginx or windows server insted of apache. You can find nginx rules here. Windows server has a module that allows to import .htaccess file or you can use online service that can convert .htaccess file to web.config.

Whoops, looks like something went wrong.

This is generic error and is displayed when there is issue on server side and application is in production mode (We don’t want to show our users waterfall of code, right ?).

You can change this setting to developer mode in .env file

 

ERROR: The directory [/storage/…] must be writable

If you see this error:

ERROR: The directory [/storage/app] must be writable by the web server.
ERROR: The directory [/storage/framework] must be writable by the web server.
ERROR: The directory [/storage/logs] must be writable by the web server.
ERROR: The directory [/bootstrap/cache] must be writable by the web server.

This means you have not set the right permissions to the storage and subfolders.  You need to give read and write permissions to folders recursively for all system users (755 or 777 recursively).