Update 'install.sh'
This commit is contained in:
parent
36125fd954
commit
aac72bdc46
|
@ -4,8 +4,8 @@
|
|||
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
|
||||
sudo a2enmod ssl
|
||||
cd /tmp
|
||||
curl -O https://wordpress.org/latest.tar.gz
|
||||
tar xzvf latest.tar.gz
|
||||
|
@ -24,3 +24,10 @@ 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
|
||||
|
||||
openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem
|
||||
mysql
|
||||
CREATE DATABASE shop DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
|
||||
CREATE USER 'sariboto'@'%' IDENTIFIED WITH mysql_native_password BY 'password';
|
||||
GRANT ALL ON shop.* TO 'sariboto'@'%';
|
||||
FLUSH PRIVILEGES;
|
||||
EXIT;
|
Loading…
Reference in New Issue