Created
October 23, 2018 14:07
-
-
Save niradler/0a15f5f0a3ec323d1581e3ad6f440ffd to your computer and use it in GitHub Desktop.
install ghost
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
sudo apt-get update | |
sudo apt-get upgrade | |
usermod -aG sudo ghost | |
su - ghost | |
sudo apt-get install nginx | |
sudo ufw allow 'Nginx Full' | |
sudo apt-get install mysql-server | |
# To set a password, run | |
sudo mysql | |
# and login to your Ubuntu user again | |
su - ubuntu | |
# Add the NodeSource APT repository for Node 8 | |
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash | |
# Install Node.js | |
sudo apt-get install -y nodejs | |
sudo npm install ghost-cli@latest -g | |
# We'll name ours 'ghost' in this example; you can use whatever you want | |
sudo mkdir -p /var/www/ghost | |
# Replace <user> with the name of your user who will own this directory | |
sudo chown ghost:ghost /var/www/ghost | |
# Set the correct permissions | |
sudo chmod 775 /var/www/ghost | |
# Then navigate into it | |
cd /var/www/ghost | |
ghost install | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment