Browse Source

Add php-gd and nginx config

master
= 6 years ago
parent
commit
ea4c55aab3
  1. 3
      wordpress-setup.sh

3
wordpress-setup.sh

@ -10,7 +10,7 @@ dss --user $USER init
#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
sudo mkdir /var/www/wordpress
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 "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.
# 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;

Loading…
Cancel
Save