kieranbarnes Independent PHP, WordPress & CubeCart Programmer

[Snippet] Where are my cPanel logs at?

Posted on November 4, 2010

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

Mini WHMCS SagePay Terminal Mod

Posted on November 4, 2010

We have a few customers that phone and pay WHMCS generated invoices over the phone - we now use the SagePay Virtual Terminal.
So I added a link on the Client Summary page with a direct link. Simple and silly I know, but kinda useful.

MySQL Root Password on cPanel

Posted on November 4, 2010

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

Filed under: cPanel/WHM, MySQL No Comments

MySQL: Can’t get hostname for your address

Posted on October 28, 2010

Can''t remotely login to your shiney, new MySQL server due “Can’t get hostname for your address” or "Can't get hostname for your address". Another random MySQL error message.

Simply put, if you look in the logs, MySQL cannot lookup your IP/hostname. Its that simple.

Is your DNS broke? Or just on a Local Area Network with no DNS anyway?
Just add skip-name-resolve option to the [mysqld] section of your my.cnf/my.ini

Imitation is flattery.

Posted on October 11, 2010

Thats all.

Filed under: General No Comments

[Snippet] Create a large file in Linux

Posted on August 21, 2010

Need to create a large file? For disk speed tests? Or space tests?

  1. dd if=/dev/zero of=your.big.file bs=1MB count=500

This will create a 500Mb file in your current directory called  your.big.file

  1. 500+0 records in
  2. 500+0 records out
  3. 500000000 bytes (500 MB) copied, 4.08855 seconds, 122 MB/s
Tagged as: , No Comments

[Snippet] Skipping the WHM Getting Started Wizard

Posted on August 17, 2010

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

Smarty Security – Stop .tpl access

Posted on August 17, 2010

WHMCS uses the Smarty template engine. Which means your .tpl files are accessible to anyone that knows the path. Quite easy in WHMCS. Whilst not really a major security risk, its bad practise to all these files to be accessed directly.

Add this code into your .htaccess file.

  1. <Files ~ "\.tpl$">
  2. Order allow,deny
  3. Deny from all
  4. </Files>
Tagged as: No Comments

New Roll Cage

Posted on August 13, 2010

Out came the dash dodging bolt in to make way for the weld in.

Theres a lot of work before it goes in. Etch primering, painting laquering and a bit of seem welding.

Filed under: Vantegra No Comments

Active Directory DHCP Authorisation Issues

Posted on August 6, 2010

So you just deleted a DHCP server in your Active Directory site and can't authorise a new one? Yeah... Stupid.

A client of mine recently deleted a Windows Server running DHCP and couldn't authorise the new server of the same name.
This is because the client did not Unauthorise the server beforehand. Possibly because the server hardware was dead.

Page 12 of 34« First...1011121314...2030...Last »