kieranbarnes Independent PHP, WordPress & CubeCart Programmer

WordPress Auto Install Script for cPanel

Posted on December 5, 2011

Posted by kieran

I have released version one of my WordPress Auto Install Script for cPanel.

This script can be run from /scripts/postwwwacct to automatically download, install WordPress and create the required database and database username.
No 3rd party licenses, scripts, FTP sessions. No outdated versions, always grabs the latest version from WordPress.org

This script is available upon request for £50. Get in touch for details.

 

Disabling Core Dumps

Posted on August 17, 2011

Posted by kieran

I recently found a (cPanel) server was generating over 100Gb of core dumps every time a bad PHP script died or Apache died. Writing these generally useless (who actually debugs these on a live web server) to disk is a pointless waste of disk I/O, especially in a VPS environment.

Here is two methods of disabling core dumps;

Upgrading to MySQL 5.1 in cPanel/WHM

Posted on August 8, 2011

Posted by kieran

Upgrading to MySQL 5.1 in cPanel is currently not the easiest thing in the world. I've seen guides detailing disabled various cPanel updates, hacking cPanel scripts and even installing your own 5.1 RPMs, all of which will probably end in tears at some point when cPanel runs one of its update scripts.

Heres the easiest and safest method I've found.

Fixing cPanel File Permissions

Posted on July 18, 2011

Posted by kieran

Sometimes users mess with their own file permissions that they no longer work. They will probably then ring you and blame you in a loud, irritated voice. Here's a simple shell script to fun that will fix all permissions in a users home directory on a cPanel server.

Overview of PHP Handlers for cPanel

Posted on July 18, 2011

Posted by kieran

cPanel provides four different PHP Handlers, some are good, some are not so good.

Here's a simple overview of the four options you have. Original site is currently down so I can't trackback.

Filed under: cPanel/WHM, Linux, PHP No Comments

cPanel Apache Tuning

Posted on November 22, 2010

Posted by Kieran

One of the first things I do is run /scripts/easyapache and rebuild my PHP / Apache configuration.
I usually select Apache 2.2 and PHP 5.2.9. At the time of writing I stay away from the 5.3 versions as they aren't supported by programs and programmers enough yet.

Although this guide was originally inspired from a cPanel install, its Apache specific and doesn't require cPanel.

[Snippet] Update cPanel?

Posted on November 9, 2010

Posted by kieran

Easy,

/scripts/upcp
or
/scripts/upcp --force

Filed under: cPanel/WHM No Comments

[Snippet] Where are my cPanel logs at?

Posted on November 4, 2010

Posted by kieran

You've got a main error log at /etc/httpd/logs/

And cPanel's logs are in /usr/local/cpanel/logs/

Filed under: Apache, cPanel/WHM No Comments

MySQL Root Password on cPanel

Posted on November 4, 2010

Posted by Kieran

Wheres the MySQL root password in cPanel installs? Easy, look in /root/.my.cnf

Filed under: cPanel/WHM, MySQL No Comments

[Snippet] Skipping the WHM Getting Started Wizard

Posted on August 17, 2010

Posted by Kieran

WHM uses the /etc/.whostmgrft file to determine whether the Getting Started Wizard should run. You can touch the file using the following command to stop it appearing

touch /etc/.whostmgrft
Page 1 of 3123