Others
CategoryWordPress – How to create an admin user from database
If you want to create an admin user from the database, you can proceed with the following script:
Apache – Redirect from non www to www
If you are hosting a site, and you already setup your domain with and without www, but still having issues when accessing without www. A g..
fix “SSL certificate problem: unable to get local issuer certificate” error
When you execute PHP CURL calls to HTTPS URLs, you might get the following error:
SSL certificate problem: unable to get local issuer c..
Fix phpmyadmin start error
If you are getting the following error:
Error during session start; please check your PHP and/or webserver log file and configure your ..
Get table sizes from a database
If you need to check whether a table size changed after a process or just to monitor the table sizes of any database, the following query ..
Get rid of “Write Failed: broken pipe” on SSH connection
Sometimes you will need to run a long process within an ssh session, and you cannot do that regarding the “Write Failed: broken pipe” erro..
UBUNTU – CREATE YOUR OWN SHELL SCRIPT EXECUTABLE AS A COMMAND
If you create a shell script, and you don’t want to run it with the whole url such as /full/path/to/your/file.sh you can do the following:..
UPDATE, INSTALL, AND SWITCH BETWEEN DIFFERENT PHP VERSIONS
If you want to update your PHP version, or just get a different one, you can proceed with the corresponding PHP steps in the following lin..
INSTALL OAUTH FOR PHP 5.X
To install oauth on your system, you need to perform the following steps with your root user. Be aware that this example is for PHP 5.6, y..
SETUP A LAMP SERVER FROM SCRATCH
Many times, you will need to setup a new work environment such as staging or live, or you may need to setup your local development environ..