From 102a89505cdb1575a6cae4c0e23d571327481926 Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Wed, 6 Mar 2013 15:58:49 +0530 Subject: [PATCH] Move wp-config.php File Outside The Webroot --- setup/engine | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/setup/engine b/setup/engine index 4829ccb4..3ef67c3b 100755 --- a/setup/engine +++ b/setup/engine @@ -562,26 +562,26 @@ then # Call MYSQLINFO Function For MySQL Values MYSQLINFO - # Modify wp-config.php + # Modify wp-config.php & Move Outside The Webroot cp -v /var/www/$DOMAIN/htdocs/wp-config-sample.php \ - /var/www/$DOMAIN/htdocs/wp-config.php + /var/www/$DOMAIN/wp-config.php sed -i "s/database_name_here/$WPDBNAME/" \ - /var/www/$DOMAIN/htdocs/wp-config.php + /var/www/$DOMAIN/wp-config.php sed -i "s/username_here/$MYSQLUSER/" \ - /var/www/$DOMAIN/htdocs/wp-config.php + /var/www/$DOMAIN/wp-config.php sed -i "s/password_here/$MYSQLPASS/" \ - /var/www/$DOMAIN/htdocs/wp-config.php + /var/www/$DOMAIN/wp-config.php sed -i "s/localhost/$MYSQLHOST/" \ - /var/www/$DOMAIN/htdocs/wp-config.php + /var/www/$DOMAIN/wp-config.php printf '%s\n' "g/put your unique phrase here/d" \ a "$(curl -L https://api.wordpress.org/secret-key/1.1/salt/)" . w \ - | ed -s /var/www/$DOMAIN/htdocs/wp-config.php - + | ed -s /var/www/$DOMAIN/wp-config.php + fi # Call WEBUSERINFO Function For Web User Details