I have recently upgraded my macOS to Monterey (version 12.6) and mariadb (mysql) stopped working. I tried to run brew services restart mariadb and it didn't show any error so I thought everything works fine. However, when I tried to access the mysql using either mariadb or mysql I was getting this ERROR 2002 (HY000): Can't connect to local server through socket … [Read more...] about Fix mariadb ERROR 2002 (HY000): Can’t connect to local server through socket ‘/tmp/mysql.sock’ (2) on macOS Monterey 12.6 using homebrew
Fix WordPress login redirect loop when accessing wp-admin
There are several ways you can fix a redirect loop in WordPress. However, I was facing a redirect loop problem when trying to login to wp-admin. The solution #4 was the one that helped me log in to wp-admin without any ssl redirect loop. 1. Replace .htaccess content Make a backup of your .htaccess by copying and pasting it under a different name or download it to your … [Read more...] about Fix WordPress login redirect loop when accessing wp-admin
Fix easyengine error for global-nginx-proxy
If you have your sites on easyengine and none of your sites are down, you have to check if nginx is running fine. So I refreshed the services but then I got an error: It definitely looks like something's broken with the easyengine. I've googled the similar error code and found some results that suggested to restart the ngingx-proxy itself so I did: However, that was … [Read more...] about Fix easyengine error for global-nginx-proxy
Replace WordPress Widget Title Tag
If you want to change the heading tags to a paragraph for SEO purposes then you can use the following function: To successfully add the code you have two options: Edit your theme's functions.php file and insert the code thereInstall the Code Snippets plugin https://wordpress.org/plugins/code-snippets/ In WP Admin go to Snippets -> Add New (in the left sidebar)Add a … [Read more...] about Replace WordPress Widget Title Tag