Monthly Archive: March 2020

Can’t access the website due to permission cause by SELinux

Problem: The folder permission all ready to set the appropriate one (744, etc). but still can not access some page, or some of the pages can not access due to permission denied.

Solution: use chcon -t httpd_sys_rw_content_t folder/ -R, replace folder/ with your folder

chcon -t httpd_sys_rw_content_t folder/ -R

Change localhost to correct domain path in Laravel

Problem: when resetting password or go to other routes, the path should no longer be a localhost but my new domain name. Still, the domain from URL is localhost.

Update .env file to update Laravel domain name

Solution: Update .env file, from APP_URL=http://localhost to APP_URL=https://yourdomain.com

and remember to clean config setting by enter below command:

php artisan config:clear
Close Bitnami banner
Bitnami