Update install_wordpress_vestacp
This commit is contained in:
parent
4c3692b268
commit
38b2f9d336
@ -60,11 +60,7 @@ rm latest.tar.gz
|
|||||||
cp -r wordpress/* $WP_DIR
|
cp -r wordpress/* $WP_DIR
|
||||||
rm -rf wordpress
|
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
|
# Generate .htaccess file for security
|
||||||
echo "Setting up .htaccess 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
|
# Secure wp-config.php
|
||||||
chmod 600 $WP_DIR/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
|
# Display credentials
|
||||||
echo "Installation complete. Here are your credentials:"
|
echo "Installation complete. Here are your credentials:"
|
||||||
echo "Domain Name: $DOMAIN_NAME"
|
echo "Domain Name: $DOMAIN_NAME"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user