diff --git a/install_wordpress_vestacp b/install_wordpress_vestacp index 0687270..1838c79 100644 --- a/install_wordpress_vestacp +++ b/install_wordpress_vestacp @@ -60,11 +60,7 @@ rm latest.tar.gz cp -r wordpress/* $WP_DIR rm -rf wordpress -# Set file permissions for security -echo "Setting up file permissions for security..." -chown -R $USERNAME:$USERNAME $WP_DIR -find $WP_DIR -type d -exec chmod 755 {} \; -find $WP_DIR -type f -exec chmod 644 {} \; + # Generate .htaccess file for security echo "Setting up .htaccess for security..." @@ -106,6 +102,12 @@ sed -i "s/localhost/localhost/" $WP_DIR/wp-config.php # Secure wp-config.php chmod 600 $WP_DIR/wp-config.php +# Set file permissions for security +echo "Setting up file permissions for security..." +chown -R $USERNAME:$USERNAME $WP_DIR +find $WP_DIR -type d -exec chmod 755 {} \; +find $WP_DIR -type f -exec chmod 644 {} \; + # Display credentials echo "Installation complete. Here are your credentials:" echo "Domain Name: $DOMAIN_NAME"