Image for post
Image for post
install laravel on digitalocean by LAMP
sudo apt-get update
sudo apt-get dist-upgrade

2 - enable the Apache mod_rewrite module

sudo a2enmod rewrite

3 - to know your mysql password

cat /etc/motd.tail

4 - to change your password

mysqladmin -u root -p'password' password newpassword

5 - install Composer, run these commands:

curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer

6 - if you're using Git you can install it very easily:

sudo apt-get install git

7 - now go to /var/www to install first app

cd /var/www
composer create-project laravel/laravel your-project-name --prefer-dist

if got a error when run above command Error like this: The following exception is caused by a lack of memory and not having swap configured you can use for example, to enable the…

About

Abdullah Ghanem

web developer | love | laravel

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store