Forked from jack2jm/Laravel Project Deployment ON Server
Created
February 12, 2024 05:51
-
-
Save Bhavya8181/ad66ee3215a4d88a538245c7e46751fe to your computer and use it in GitHub Desktop.
Here is basic thing to deploy laravel project to server.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. Clone project to /var/www/html and respective folder. | |
| 2. Put.htaccess file to that folder - Link - https://drive.google.com/file/d/1fT-rkw9ZMJp_Hr4kKOBJ1m37rpz6XA3R/view?usp=sharing | |
| 3. If still its not working - then Server - rewrite rule is not working. needs to be updated it. | |
| 4. Go to /etc/apache2/apache2.conf file. | |
| Make it like this | |
| <Directory /var/www/> | |
| Options Indexes FollowSymLinks | |
| AllowOverride All <----------- by default its None - make it to All | |
| Require all granted <------------ denied by default | |
| </Directory> | |
| 5. Restart apache | |
| sudo service restart apache2 | |
| 6. Give basic permissions | |
| sudo chmod -R 777 storage | |
| sudo chmod -R 777 public/assets | |
| sudo chmod -R 777 bootstrap/cache | |
| php artisan storage:link (link storage to public). | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment