Removing Magento’s Miscellaneous HTML From a Specific Page(s)

Published by John on July 18, 2018

In Magento, one way to easily add header/footer scripts, like Facebook or Analytics tracking codes, is to use the configuration setting under Configuration->General->Design->HTML Head and Footer. Both of those sections have a Miscellaneous Scripts setting, which you can add text into, which will get printed in the header and footer of the page respectively. However, […]

Read More  |  Add Comment

Manually Generating WordPress Password Reset Links

Published by John on July 10, 2018

A local company I work with uses Wordpress to allow their customers to login and make a few changes to their company info. This week, we wanted to generate some password reset urls for them, without actually sending the default ‘Someone has requested a password reset for the following account:’ wordpress email.

This post shows how to manually generate wordpress password reset links, which you can then email separately to users, so that they can reset their passwords.

Read More  |  Add Comment

Appending Google Analytics Tracking Code When 301 Redirecting a URL

Published by John on June 26, 2018

One of my local dentist clients bought out another company recently and with it, inherited their website. We had just built and launched a snazzy looking new website for him, so decided to redirect the other website to his new site. In order to keep track of what type of traffic we were getting and also show a special message to people getting redirected, we appeneded google analytics campeign information to the URL using Apache’s Rewrite Engine.

Read More  |  Add Comment

Using Ansible to Generate a Worpdress wp-config.php file

Published by John on May 18, 2018

While I have only recently learned how to work with Ansible, I am already really enjoying the added efficiency boost I can get by automating some of my daily/recurring tasks related to website hosting.

When I first started working with Ansible, I wasn’t sure there was a big advantage to using it compared to just writing some bash scripts, but after digging in a bit, I think it is really cool and see the benefit, as it would of been incredibly time consuming for me to create a working bash script that does everything a 40 line playbook file does and it still wouldn’t of been as robust and error proof.

As some of my hello world tasks, I have been creating workbooks for managing my hosting servers and doing things like installing and configuring wordpress.

Read More  |  Add Comment

Keeping your SSH Client From Timing Out

Published by John on May 11, 2018

A company that I do web development and design fixes for on their Magento store uses a company called Magemojo for website hosting. When connecting to their server via SSH to make a database backup or preform other tasks, my session would always time out very quickly and it wasn’t possible to backup or restore their eccommerce store’s mysql database without getting disconnected.

The fix is a pretty quick change to either your local ~/.ssh/config file or the global /etc/ssh/ssh_config file, which tells your client to periodically send a signal to the host server to let it know you are still there.

Changing this allowed me to stay logged into their server remotely, so I could preform tasks that take a little bit of time, like backing up files and databases, as well as work a little more effectively.

Read More  |  Add Comment

« Previous PageNext Page »