How to rename the ‘admin’ folder in PHP Melody

Starting with PHP Melody v2.2 you can easily move/rename PHP Melody’s ‘admin‘ folder.

You may want to do this for several reasons all concerning the security of your website. Let’s see how you can rename the ‘admin‘ folder without breaking PHP Melody.

Step 1.

Open /config.php and find this line:

define('_ADMIN_FOLDER', 'admin');

Replace the ‘admin‘ value with your new folder name (e.g. admin2015). Edit only the underlined bit. Make sure there are no empty spaces between the single quotes.

Save and upload /config.php to your installation.

Step 2.

Rename your ‘admin‘ folder to match the new folder name (i.e. admin2015).

That’s it. Job done!