Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hostnamectl set-hostname uptime
- ip a
- reboot
- apt update && apt upgrade -y
- apt install sudo mc -y
- sudo apt install php php-common php-mysql php-gmp php-curl php-intl php-mbstring php-xmlrpc php-gd php-xml php-cli php-zip -y
- sudo apt install -y lsb-release ca-certificates apt-transport-https software-properties-common gnupg2
- echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/sury-php.list
- wget -qO - https://packages.sury.org/php/apt.gpg | sudo apt-key add -
- sudo apt update
- reboot
- sudo apt update
- sudo apt install php8.0 php8.0-common php8.0-mysql php8.0-gmp php8.0-curl php8.0-intl php8.0-mbstring php8.0-xmlrpc php8.0-gd php8.0-xml php8.0-cli php8.0-zip -y
- mcedit /etc/php/7.4/apache2/php.ini
- mcedit /etc/php/8.0/apache2/php.ini
- ******************************
- max_execution_time = 300
- upload_max_filesize = 100M
- post_max_size = 128M
- ******************************
- apt install -y mariadb-server mariadb-client -y
- systemctl start mariadb
- systemctl enable mariadb
- mysql_secure_installation
- ********************************
- .....
- Enter current password for root (enter for none): Just press Enter
- Switch to unix_socket authentication [Y/n] y
- Change the root password? [Y/n]
- New password: xxx << Enter Password
- Re-enter new password: xxx << Re-Enter Password
- .....
- Remove anonymous users? [Y/n] y
- ....
- Disallow root login remotely? [Y/n] y
- .....
- Remove test database and access to it? [Y/n] y
- .....
- Reload privilege tables now? [Y/n] y
- ....
- Thanks for using MariaDB!
- ********************************
- mysql -u root -p
- ******************************
- CREATE DATABASE wordpress;
- CREATE USER 'wp_user'@'localhost' IDENTIFIED BY 'Passw0rd';
- GRANT ALL ON wordpress.* TO 'wp_user'@'localhost' WITH GRANT OPTION;
- FLUSH PRIVILEGES;
- EXIT
- ******************************
- cd /usr/src/
- wget https://wordpress.org/latest.tar.gz
- tar -xvzf latest.tar.gz
- mv wordpress /var/www/html/wordpress
- chown -R www-data:www-data /var/www/html/wordpress/
- chmod -R 755 /var/www/html/wordpress/
- mcedit /etc/apache2/sites-available/wordpress.conf
- **********************
- <VirtualHost *:80>
- ServerName wordpress.example.com
- ServerAlias www.wordpress.example.com
- ServerAdmin [email protected]
- DocumentRoot /var/www/html/wordpress
- ErrorLog ${APACHE_LOG_DIR}/wordpress_error.log
- CustomLog ${APACHE_LOG_DIR}/wordpress_access.log combined
- <Directory /var/www/html/wordpress>
- Options FollowSymlinks
- AllowOverride All
- Require all granted
- </Directory>
- </VirtualHost>
- **********************
- a2ensite wordpress
- a2enmod rewrite ssl
- systemctl restart apache2
- history
- https://computingforgeeks.com/install-wordpress-on-debian-with-apache-and-letsencrypt/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement