Posts Tagged ‘ php ’

Speeding up PHP with APC (NOT eAccelerator) in Debian Squeeze running php 5 and apache 2

Jul 27th, 2012 | By

Well today my server was being killed by something or other and after 30 minutes of trying to track down what it was I decided to spend my time optimizing my server and implementing a proper caching mechanism (finally!).  I come from a BSD background and we ran eAccelerator on all of our servers so
[continue reading…]



Can’t login to wordpress – wp-admin just shows “The base configurations of the WordPress.”

Feb 21st, 2012 | By

Well after 3 days of trying to track down why the sites on this shared account we’re taking up 100% of the cpu usage of a pretty beefy server I narrowed it down to one of my wordpress installs being compromised (Update your WP installs kids!).  Before I knew it was because of this I
[continue reading…]



Error 101 upload (net::ERR_CONNECTION_RESET) when Uploading large files on Drupal

Nov 8th, 2011 | By

Wow, now this was one of those problems that really makes you want to put your head through a wall. Soo, I was uploading a large file to my CMS through drupal and at about 35%(of a 40MB file) I would get booted to an error page with the following message.  I looked high and
[continue reading…]



ATTN FreeBSD users – Throw Zend in the trash as that shit won’t work at all in 3 months

Nov 8th, 2011 | By

Well as some of you may or may not know php 5.2 is going to be going the way of the dinosaur come March, it’s already been depreciated and no longer being supported but in March it’s being removed from the port tree all together from what I understand.  This brings me to the topic
[continue reading…]



How to have wordpress load plugins in a specific order

Apr 19th, 2011 | By

Or more specifically in this example how to get wordpress to load a specific  plugin before all others.  By default wordpress will load your plugins in alphabetical order as for the most part 99.99% of people could care less and are unaffected by plugin execution order.  However for that .01% of us(don’t you feel special
[continue reading…]



How to do a global search and replace within a DB across all Tables

Apr 19th, 2011 | By

As part of my take over the world campaign I’ve run into the need to automatically do a global Search and replace within a Mysql Database covering all tables.  For this you need a little php magic and luckily enough I found just that magic right here. I’ll save you the looking up time and
[continue reading…]



Not all Javascript popup boxes are created equal

Mar 21st, 2011 | By

I was implementing a feature onto one of my networks today and needed to use a javascript popup box to bring up a booking table.  You know those cool boxes that darken the rest of the screen and popup a slick looking window?  Well I needed one and apparently they all such except the one
[continue reading…]



FreeBSD 8.1, Zend Optimizer, php52-extensions and the dreaded Segmentation Fault (Core Dumped)

Jan 29th, 2011 | By

So I haven’t slept in 43 hours, it’s been at least 10 years since I’ve pulled this kind of stunt before but as you know from my last blog post here my server blew up and then my lappy blew up, so lots and lots to keep me busy with.. Part of that fun was
[continue reading…]



Getting wordpress to print the post date in a title of a post

Jan 13th, 2011 | By

Wow, getting wordpress to print a few bloody words in the title of a post turned out to be a massive ordeal here.  For one of my projects I have a post that uses php (thanks to php-exec for allowing php be to be run inside of a WP post) to pull rss feeds and
[continue reading…]



Nginx 502 errors, php problems, wordpress, oh my!

Aug 10th, 2010 | By

Well today is a glorious day as I finally managed to fix a problem that had been haunting my server for a month or so.  In the end it was a solution that I’ve been taught countless times as something I should be doing by default when upgrading php but alas my mind is not
[continue reading…]