Skip to content

Instantly share code, notes, and snippets.

@wiyoe
Last active March 8, 2018 08:56
Show Gist options
  • Select an option

  • Save wiyoe/cc7c96794f6f6c6934563e90e5bd8666 to your computer and use it in GitHub Desktop.

Select an option

Save wiyoe/cc7c96794f6f6c6934563e90e5bd8666 to your computer and use it in GitHub Desktop.
Ubuntu Install Laravel
lsb_release -a
sudo chmod -R 777 /var/lib
sudo chmod -R 777 /var/cache
apt update && apt upgrade
apt install php-mcrypt php-gd php-mbstring
# Install php-xml
sudo apt-get install php-xml
# Install composer
curl -sS https://getcomposer.org/installer | php
# Install laravel
composer create-project --prefer-dist laravel/laravel blog "5.5.*"
# Enable mod_rewrite
sudo a2enmod rewrite
service apache2 restart
sudo nano /etc/apache2/sites-available/000-default.conf
# Add
<Directory /var/www/html>
AllowOverride All
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment