DEV Community

Justin
Justin

Posted on

2 1

Laravel on Ubuntu 20 in 9 commands

# Update 
apt update

# Install PHP and all the extensions
sudo apt-get install php7.4-{bcmath,bz2,intl,gd,mbstring,mysql,zip,dom} php -y

# Install composer
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

# Go to web root
cd /var/www/html

# Copy Laravel your laravel project here (we'll create an new example)
composer create-project laravel/laravel

# Edit the apache config
vi /etc/apache2/sites-enabled/000-default.conf

# Change doc root to laravel
- DocumentRoot /var/www/html # From this
+ DocumentRoot /var/www/html/laravel/public # To This

# Reload apache
service apache2 reload

# Set the proper file permissions
chown -R www-data:www-data /var/www/html/
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more