Add 'install.sh'
This commit is contained in:
parent
35b02d8d41
commit
9c08e5fe3e
|
@ -0,0 +1,26 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
sudo apt update -qq && sudo apt upgrade -y
|
||||||
|
sudo apt install lamp-server^ php-curl php-gd php-mbstring php-xml php-xmlrpc php-soap php-intl php-zip -y
|
||||||
|
sudo systemctl restart apache2
|
||||||
|
|
||||||
|
sudo a2enmod rewrite
|
||||||
|
cd /tmp
|
||||||
|
curl -O https://wordpress.org/latest.tar.gz
|
||||||
|
tar xzvf latest.tar.gz
|
||||||
|
touch /tmp/wordpress/.htaccess
|
||||||
|
cp /tmp/wordpress/wp-config-sample.php /tmp/wordpress/wp-config.php
|
||||||
|
mkdir /tmp/wordpress/wp-content/upgrade
|
||||||
|
sudo cp -a /tmp/wordpress/. /var/www/shop
|
||||||
|
sudo chown -R www-data:www-data /var/www/shop
|
||||||
|
sudo find /var/www/shop/ -type d -exec chmod 750 {} \;
|
||||||
|
sudo find /var/www/shop/ -type f -exec chmod 640 {} \;
|
||||||
|
|
||||||
|
curl -s https://api.wordpress.org/secret-key/1.1/salt/
|
||||||
|
sudo nano /var/www/shop/wp-config.php
|
||||||
|
define('FS_METHOD', 'direct');
|
||||||
|
|
||||||
|
cp /etc/apache2/sites-available/default-ssl.conf /etc/apache2/sites-available/shop.conf
|
||||||
|
nano /etc/apache2/sites-available/default-ssl.conf
|
||||||
|
|
Loading…
Reference in New Issue