Category Archives: Server

nginx subdomain for WordPress Install

Add Beanstalkd to Cpanel Centos Linux

I am using cPanel and added this to chkservd so to make sure that it always stays running

Recover MySQL root password with root access

There are times when you lose root mysql password, but you still have root access to the server. You will probably get an error something like this:
mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user 'root'@'localhost' (using password: YES)'
Reset it with the following steps

Useful SSH commands for access issues and Keys

Load custom php.ini with CRON job

Live and learn. I didn’t realize that when a cron job runs, it does not load the site php.ini file, but by adding a custom directive, we can tell the the php cron job to load the file. The error I was receiving is below even though I had allow_url_fopen enabled:
Warning: simplexml_load_file(): http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/username/script.php on line 12
Adding the custom directive resolved the issue and hopefully will for you too.