Archive | Server Stuff RSS feed for this section

WordPress Cron

20 Dec

A great way to take more control of your wp-cron and also slightly speed up wordpress is to disable cron and scheduled a cron job on your server to run wp-cron.php.  You just need a server that supports cron jobs. In wp-config.php add: define(‘DISABLE_WP_CRON’, true); Be careful though, sometimes this has a negative effect on [...]

Hardening WordPress

18 Dec

I’ll be updating this post as I find more and better explanations to hardening wordpress.  The more secure, the better.  Some things to keep in mind when you are trying to secure your wordpress installation. Be careful when saying a security measure is “not worth the time” to do it.  If it takes 5 minutes [...]

OSCommerce admin pages show 401

27 Nov

Problem The OSCommerce admin pages were working fine a couple months ago.  Now I go to it and it shows a 401 error. Solution The problem was that the htaccess file had a rewrite added to it to always include www to the address.  Apparently the SEO guy did this.  The solution is to update [...]

MAMP – MySQL can’t connect after OS X Crash

4 Sep

Problem I had my macbook open, it went to sleep and I couldn’t wake it up.  After holding down the powerbutton for over 10 seconds, it turned on.  Everything was fine until I tried to open the MAMP home page.  MySQL couldn’t start.  the error logs showed: InnoDB: Check that you do not already have [...]

Page Speed SEO

4 Apr

One of the metrics for Search Engine Optimization is the time it takes to load a page.  With Google’s PageSpeed tool, you can see if your page is loading optimally.  One of the ways to better your page loading is by leveraging browser cache.  The article below explains it well.  What I did was a [...]

PHP ini overriding

23 Jan

On shared hosts, overriding the php.ini file can be frustrating.  Sometimes it works, sometimes it doesn’t.  It’s up to the host provider.   This post will keep a record of what hosts need what type of requirements and will be updated from time to time.  This overriding php.ini file can be a partial override like so: [PHP] [...]

mysqldump – Using password: NO error

20 Jan

Problem I need to back up a mysql database on a shared hosting server.  I am using the cron job to run a bash file which runs a mysqlcommand.  The problem is that I can’t get MySQL to recognize the password.  I have no spaces after the “-p” however, I still get the following error: [...]

WordPress .htaccess Exclude folder from RewriteRule

8 Dec

To exclude a folder from the wordpress rewrite in .htaccess, add the following line before the other RewriteConds, replacing somedir with your folder name: RewriteCond %{REQUEST_URI} !^/(somedir|somedir/.*)$