Add php-gd and nginx config

This commit is contained in:
= 2018-01-29 18:27:20 -07:00
parent 7bb8ea73aa
commit ea4c55aab3
1 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,7 @@ dss --user $USER init
#sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8 #sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
sudo apt-get install nginx unzip php7.0-fpm php-xml php-xmlrpc software-properties-common php7.0-mysql mysql-server zip -y sudo apt-get install nginx unzip php7.0-fpm php-xml php-xmlrpc software-properties-common php7.0-mysql mysql-server zip php-gd -y
wget https://wordpress.org/latest.zip wget https://wordpress.org/latest.zip
sudo mkdir /var/www/wordpress sudo mkdir /var/www/wordpress
unzip latest.zip unzip latest.zip
@ -24,6 +24,7 @@ echo "run: sudo certbot --authenticator webroot --installer nginx after configu
#echo "run: sudo certbot certonly --webroot --webroot-path=/var/www/wordpress -d www.youdomain.com -d yourdomain.com" #echo "run: sudo certbot certonly --webroot --webroot-path=/var/www/wordpress -d www.youdomain.com -d yourdomain.com"
echo "Update Nginx configuration in /etc/nginx/sites-enabled/ with using example configuration." echo "Update Nginx configuration in /etc/nginx/sites-enabled/ with using example configuration."
# Add this to Nginx config (/etc/nginx/nginx.conf) under the http section: client_max_body_size 100m;
# Change Table prefix if multiple sites. # Change Table prefix if multiple sites.
# For uploading: sudo chown -R www-data:www-data /var/www/dir # For uploading: sudo chown -R www-data:www-data /var/www/dir
#mysql -u root mysql -p CREATE DATABASE ideside; CREATE USER 'ideuser'@'localhost' IDENTIFIED BY 'yourpassword'; GRANT ALL PRIVILEGES ON ideside.* TO 'ideuser'@'localhost'; FLUSH PRIVILEGES; #mysql -u root mysql -p CREATE DATABASE ideside; CREATE USER 'ideuser'@'localhost' IDENTIFIED BY 'yourpassword'; GRANT ALL PRIVILEGES ON ideside.* TO 'ideuser'@'localhost'; FLUSH PRIVILEGES;