Hand Coded Studio Web Development Tips

View our work

Sparkpost on Ubuntu

When you use a Digital Ocean server, you may see errors in the 'mail.log' because your shared IP address is blocked.

The easier solution is to use SparkPost, which can send emails for you.


23 August 2018

Debugging WordPress

WordPress will often hide errors, however you can display them by adding these lines to the wp-config.php file:

define( 'WP_DEBUG', true );
define( 'SCRIPT_DEBUG', true );


11 May 2018

Clear broken Ubuntu dependencies using Aptitude

I found that the only thing that worked for me was using Aptitude.

Then when it opens it will usually say something about unmet dependencies on the bottom. You can hit the letter g to proceed with the suggested removal. It will take you to a page where it lists what is going to happen.


10 May 2018

Force composer to use a PHP version

If you have different versions of PHP running locally, and in production - it's advisable to fix your version of PHP. Otherwise you'll become out of sync and receive errors in production.

Add this to your 'composer.json' file, in the config 'block':


01 May 2018

Ubuntu time with ntp

If you need ntp to reset the server time on a Ubuntu server, run these commands:

sudo service ntp stop
sudo ntpd -gq
sudo service ntp start


19 February 2018