mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-03-03 16:15:54 +00:00
@@ -16,12 +16,10 @@ update_os
|
|||||||
PHP_VERSION="8.4" PHP_FPM="YES" PHP_APACHE="YES" PHP_MODULE="snmp,imap" setup_php
|
PHP_VERSION="8.4" PHP_FPM="YES" PHP_APACHE="YES" PHP_MODULE="snmp,imap" setup_php
|
||||||
setup_mariadb
|
setup_mariadb
|
||||||
MARIADB_DB_NAME="wordpress_db" MARIADB_DB_USER="wordpress" setup_mariadb_db
|
MARIADB_DB_NAME="wordpress_db" MARIADB_DB_USER="wordpress" setup_mariadb_db
|
||||||
|
fetch_and_deploy_from_url "https://wordpress.org/latest.zip" /var/www/html/wordpress
|
||||||
|
|
||||||
msg_info "Installing Wordpress (Patience)"
|
msg_info "Installing Wordpress (Patience)"
|
||||||
cd /var/www/html
|
chown -R www-data:www-data /var/www/html/wordpress
|
||||||
curl -fsSL "https://wordpress.org/latest.zip" -o "latest.zip"
|
|
||||||
$STD unzip latest.zip
|
|
||||||
chown -R www-data:www-data wordpress/
|
|
||||||
cd /var/www/html/wordpress
|
cd /var/www/html/wordpress
|
||||||
find . -type d -exec chmod 755 {} \;
|
find . -type d -exec chmod 755 {} \;
|
||||||
find . -type f -exec chmod 644 {} \;
|
find . -type f -exec chmod 644 {} \;
|
||||||
@@ -30,7 +28,6 @@ sed -i -e "s|^define( 'DB_NAME', '.*' );|define( 'DB_NAME', '$MARIADB_DB_NAME' )
|
|||||||
-e "s|^define( 'DB_USER', '.*' );|define( 'DB_USER', '$MARIADB_DB_USER' );|" \
|
-e "s|^define( 'DB_USER', '.*' );|define( 'DB_USER', '$MARIADB_DB_USER' );|" \
|
||||||
-e "s|^define( 'DB_PASSWORD', '.*' );|define( 'DB_PASSWORD', '$MARIADB_DB_PASS' );|" \
|
-e "s|^define( 'DB_PASSWORD', '.*' );|define( 'DB_PASSWORD', '$MARIADB_DB_PASS' );|" \
|
||||||
/var/www/html/wordpress/wp-config.php
|
/var/www/html/wordpress/wp-config.php
|
||||||
rm -rf /var/www/html/latest.zip
|
|
||||||
msg_ok "Installed Wordpress"
|
msg_ok "Installed Wordpress"
|
||||||
|
|
||||||
msg_info "Setup Services"
|
msg_info "Setup Services"
|
||||||
|
|||||||
Reference in New Issue
Block a user