Created
October 4, 2024 18:41
Revisions
-
jamesmurdza created this gist
Oct 4, 2024 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,59 @@ 1. Update the System sudo apt update sudo apt upgrade 2. Install PHP sudo apt install php php-mbstring php-xml php-bcmath php-json php-zip php-curl php-cli php-fpm php-common php-tokenizer php-mysql 3. Install Composer curl -sS https://getcomposer.org/installer | php Step 2: Make Composer globally accessible: sudo mv composer.phar /usr/local/bin/composer sudo chmod +x /usr/local/bin/composer 4. Install Laravel composer global require laravel/installer export PATH="$HOME/.config/composer/vendor/bin:$PATH" source /.bashrc # or source /.zshrc 5. Create a New Laravel Project laravel new my_project 6. Set Up Permissions You might need to give write permissions to some directories. These include storage and bootstrap/cache: sudo chmod -R 775 storage sudo chmod -R 775 bootstrap/cache sudo chown -R $USER:www-data storage bootstrap/cache 7. Start the Laravel Development Server cd my_project php artisan serve