Last active
May 17, 2018 09:27
-
-
Save me7media/f7a11ac214e97f366f153a32b9102b21 to your computer and use it in GitHub Desktop.
This file contains 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
Pre-Requisites | |
sudo apt-get update | |
sudo apt-get upgradesudo add-apt-repository ppa:ondrej/php | |
sudo apt-get update | |
sudo apt-get install apache2 libapache2-mod-php7.2 php7.2 php7.2-xml php7.2-gd php7.2-opcache php7.2-mbstring php-mysql | |
Installing Laravel | |
cd /tmp | |
curl -sS https://getcomposer.org/installer | php | |
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer | |
sudo mv composer.phar /usr/local/bin/composercd /var/www/html | |
sudo composer create-project laravel/laravel your-project --prefer-dist | |
Configuring Apache | |
sudo chgrp -R www-data /var/www/html/your-project | |
sudo chmod -R 775 /var/www/html/your-project/storage | |
cd /etc/apache2/sites-available | |
sudo nano laravel.conf | |
<VirtualHost *:80> | |
ServerName yourdomain.tld | |
ServerAdmin webmaster@localhost | |
DocumentRoot /var/www/html/your-project/public | |
<Directory /var/www/html/your-project> | |
AllowOverride All | |
</Directory> | |
ErrorLog ${APACHE_LOG_DIR}/error.log | |
CustomLog ${APACHE_LOG_DIR}/access.log combined | |
</VirtualHost> | |
sudo a2dissite 000-default.conf | |
sudo a2ensite laravel.conf | |
sudo a2enmod rewrite | |
sudo service apache2 restart | |
=============================================== | |
sudo service apache2 stop | |
sudo service nginx start | |
sudo service apache2 start | |
sudo pon tgvpn | |
sudo apt-get install php-mysql | |
============================================== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment