Delete updated_install1.sh

This commit is contained in:
RomanNum3ral 2025-05-29 22:02:04 +00:00
parent 72c95cac0a
commit 37b94d1122
1 changed files with 0 additions and 32 deletions

View File

@ -1,32 +0,0 @@
#!/bin/bash
DB_PASSWORD="Change-me123@!"
apt update && apt upgrade -y
apt install -y apache2
apt install -y mysql-server
mysql_secure_installation
apt install -y php libapache2-mod-php php-mysql
systemctl restart apache2
mysql <<EOF
CREATE DATABASE wordpress;
CREATE USER 'wordpressuser'@'localhost' IDENTIFIED BY '$DB_PASSWORD';
GRANT ALL PRIVILEGES ON wordpress.* TO 'wordpressuser'@'localhost';
FLUSH PRIVILEGES;
EXIT;
EOF
cd /tmp
curl -LO https://wordpress.org/latest.tar.gz
tar xzvf latest.tar.gz
cp /tmp/wordpress/wp-config-sample.php /tmp/wordpress/wp-config.php
nano /tmp/wordpress/wp-config.php