PHP script to fix permissions of all files and folders (and sub-folders) in a directory

There are times when we come across servers where the files are not given correct permissions. Changing file permission by accessing individual files and folders is one option. However, this is not possible when you have 100’s of files and sub-folders assosciated with them. That is when this script is useful. We only need to […]

Read More »
Admin password reset through phpMyAdmin – WordPress

There are times when we forget our username password combination and the forgot password link doesn’t send you a password link on the email specified due to hosting limitations or some other reason. That is when this method is helpful. What we do here is, access the back-end of our WordPress installation and set up […]

Read More »
Unable to edit wp_options in phpMyAdmin

This fix is for issues where you’re unable to make changes to specific tables of your WordPress database (the same logic can be applied to other scripts as well). Basically, you do not see the following options while viewing your database tables through phpMyAdmin: This issue occurs due to missing PRIMARY and UNIQUE key’s in […]

Read More »
Magento – Service Temporarily Unavailable

If you’re running a magento site and you might randomly run into your website throwing this error: Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. If you do, do not panic. When Magento is performing certain tasks it temporarily creates […]

Read More »
Missing error_log

If you come across a script where error logging is turned off, you can create a new file with the below code, save it as error.php and run it by accessing http://your_domain.com/error.php File needs to be saved in the root folder of the domain in order to be accessed through http://your_domain.com/error.php Replace File_Name.php with the […]

Read More »
phpinfo();

To know the PHP configuration setup on a server, we’ll need to create a php file (Create new file in your File manager and save it as file_name.php) and save the below code snippet in the file. <?php // Show all information, defaults to INFO_ALL phpinfo(); ?> The above code Outputs all the information about […]

Read More »
Error while checking admin gateway.php

This is an error with a popular CMS called MotoCMS. In order to fix this, we’ll first needto make sure we have a working php configuration setup on the server. Once that is done, you might have to access the admin panel to update CMS in order for it to work properly. You access admin […]

Read More »
WordPress – Admin role not found

This fix is useful when you have the login credentials to WordPress dashboard, but the login page just redirects you to WordPress homepage. This usually occurs during migrations to new servers. To fix this issue, we’ll need to access the WordPress database through phpMyAdmin. Take a backup of your database before making any changes to it! […]

Read More »
Migrating Emails

Here’s couple of email migration tips for cPanel users Move emails from one domain to another domain  You’ll first need to create both the accounts. Say: example@domain.com and example@another_domain.com 1 – Access cPanel –> file manager –> mail –> mail/example.com/user (user is the username of the email address) 2 – Click on select all, then […]

Read More »
Emergency Password Reset Script

The are multiple ways to change a wordpress password. One of which is updating the password through phpMyAdmin. This method you see below is called the Emergency Password Reset Script . It is only recommended when none of the other methods to reset password works. I’ve posted below the instructions, copied as is, from https://codex.wordpress.org/ (Official wordpress link) Points […]

Read More »