How to reset Glype admin password?

We recently explained how to install Glype, the free web-based proxy script, on your webserver or hosting space, configure it, and then secure it. In this post, let us look at how to reset Glype admin password in case you get locked out of it. Unfortunately, the Glype settings page does not allow you to set / change the username or password of your Glype web proxy. It requires a small bit of file editing. After following our installation guides, we received emails from few people who were locked out of their admin accounts. So here is how your reset Glype admin password.

Reset Glype Admin Password

To reset Glype admin password, all you have to do is find and edit the settings.php file found in the includes folder.

Reset Glype Admin Password
Settings.php File In Includes Folder

Open the file in the editor and scroll down to the bottom to find the following line:

$adminDetails['xxxxx'] = 'yyyyyyyyyyyyyyyyyyyyyyyyyyy';

xxxxx is the username you provided while installing Glype and yyyyyyyyyyyyyyyyyyyyyyyyyyy is your encrypted password that was provided at the same time. To reset Glype admin password, delete the above line complete, save the settings.php file and exit.

Now visit your Glype web proxy page. You should see the login screen where you can provide a new admin username and password.

Reset Glype Admin Password
Glype Login Screen

We recommend that you set a new admin username and password immediately after deleting it from settings.php. There you have it. Since Glype is truly a set it and forget it script, you may forget the username and password after a while. Now you know how to reset Glype admin password.

Did this post help you?
SmartHomeBeginner brings in-depth tutorials easy enough to understand even for beginners. This takes a considerable amount of work. If this post helps you, please consider supporting us as a token of appreciation:
  • Feeling generous? Become a Sponsor (discounted options) or a Patron. You will receive privileges on our Discord Server.
  • Just want to thank us? Buy us a Coffee or a Ko-Fi.
  • May be another day? Shop on Amazon using our links. Your prices won't change but we get a small commission.
  • Don't feel like spending? You can still show your support by sharing this post, linking to it in forums, or even commenting below.


Anand is a self-learned computer enthusiast, hopeless tinkerer (if it ain't broke, fix it), a part-time blogger, and a Scientist during the day. He has been blogging since 2010 on Linux, Ubuntu, Home/Media/File Servers, Smart Home Automation, and related HOW-TOs.