diff --git a/install.sh b/install.sh index e0ba5fd..853800b 100644 --- a/install.sh +++ b/install.sh @@ -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; \ No newline at end of file