How to Install Craft CMS with a LEMP Stack

Prerequisites

Install PHP7

# apt-get install php-fpm php-mysql
# apt-get install php7.0-curl php7.0-mbstring php7.0-mcrypt php-imagick php7.0-xml
# apt-get install composer git
# mkdir /var/www/example.com
# cd /var/www/example.com

Download and Prepare the CraftCMS files

# wget -O craft.zip https://buildwithcraft.com/latest.zip?accept_license=yes --no-check-certificate
# apt-get install unzip
# unzip craft.zip
# ls
# rm craft.zip
# ls -l
# chown -R www-data:www-data /var/www/example.com
# ls -l

Related Blog Posts

Related Market Products

Related Documentation

Related Products

Related Course

--

--

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