Webmin issue

Documenting for the future:

Upgrading Webmin sometimes doesn’t work, WHAT?!?!? Linux stuff stops working?? Ohh noes!! Yes sadly stuff breaks in Linux, additionally and more sad is that because Linux is used by less than 1% of the population, there is scant a document on how to fix it.

In this case, after I upgraded, this service stopped working, the fix? Run /usr/share/webmin/setup.sh and its fixed. Hurray!!

Fail2Ban issue

RanĀ  into an issue today where Fail2ban wasn’t working, I couldn’t for the life of me figure it out till I came across an article that said, unless your time is correct fail2ban wont work.

Ubuntu 15 uses rsyslog, so restarted it and low and behold it started to work correctly. Hurray!

VPS challenges…

OK so when I created my new VPS I had previously backed up my db but one thing I couldn’t do was restore it without f’in things up and fuck if that’s exactly what I did when I decided to take the plunge. I restored my db and fuck if I couldn’t log into it after that since I couldn’t remember the login password (cuz you know its a year later and I can barely remember 5 mins ago). So I went here:


Man I tried them all without success and I left the site up disgusted…mostly with myself for not figuring this out.

I came back to it the next day and tried the Through FTP method:

Through FTP
There is also an easy way to reset your password via FTP, if you’re using the admin user.

1. Login to your site via FTP and download your active theme’s functions.php file.
2. Edit the file and add this code to it, right at the beginning, after the first <?php:

wp_set_password( 'password', 1 );

Put in your own new password for the main admin user. The “1” is the user ID number in the wp_users table.

3. Upload the modified file back to your site.
4. After you then are able to login, make sure to go back and remove that code. It will reset your password on every page load until you do.

Well what they don’t tell you is that it will do what looks like nothing and will take you back to the login screen again without, apparently, doing anything when in reality it resets your password, you remove it and you are able to log in.

Which is good because I was seriously thinking of wiping my VPS and starting over again.