After AWS Instance creation and putty login
sudo apt-get updatesudo apt-get upgradesudo apt-get install apache2sudo add-apt-repository ppa:ondrej/phpsudo apt-get updatesudo apt-get install php7.4sudo service apache2 restartsudo apt-get install php7.4[tab][tab]sudo apt install php7.4-common php7.4-bcmath openssl php7.4-json php7.4-mbstringsudo a2enmod rewritesudo service apache2 restartsudo apt-get install mysql-serversudo apt-get install php7.4-mysqlsudo apt-get install phpmyadmincd ~
curl -sS https://getcomposer.org/installer -o composer-setup.phpsudo php composer-setup.php --install-dir=/usr/local/bin --filename=composergit clone https://github.com/mmuhd/real.gitcd realcomposer installphp artisan key:generatecp .env.example .envAfter creating database
php artisan migratephp artisan db:seedcurl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get -y install nodejsnpm installnpm run devsudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/laravel.conf
sudo nano /etc/apache2/sites-available/laravel_project.confIn the larvel_project.conf
<VirtualHost *:80>
ServerAdmin admin@example.com
ServerName something.com
DocumentRoot /var/www/html/real/public
<Directory /var/www/html/real/public/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
Require all granted
</Directory>
LogLevel debug
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>sudo nano /etc/hosts127.0.0.1 laravel.devsudo a2ensite laravel_project.conf
sudo a2dissite 000-default.confsudo service apache2 restartIf you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via muazumusamuhd@gmail.com. All security vulnerabilities will be promptly addressed.
This software is licensed under the MIT license.