WordPress Auto Install Script for cPanel
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
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
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
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
c
Panel 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.
cPanel Apache Tuning
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] Where are my cPanel logs at?
You've got a main error log at /etc/httpd/logs/
And cPanel's logs are in /usr/local/cpanel/logs/
MySQL Root Password on cPanel
Wheres the MySQL root password in cPanel installs? Easy, look in /root/.my.cnf
[Snippet] Skipping the WHM Getting Started Wizard
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



