Saturday, October 1, 2011

/wasted time

I've been working a project that uses CodeIgniter as the underlying framework and my partner and I felt it was ready for an alpha release on some live environment. Picked up a little bit of cloud at RackSpace and started apt-geting everything I need to get the sucker to run. Git, check... apache2, check... php5 check... Now git the code, configure apache, and configure CodeIgniter. Load the site... nothing. Check the logs... nothing. Then time passes, checking, double checking configs. Fuck fuck fuck. SOMETHING should be broken, SOMETHING should be telling me an error, SOMETHING should kick me in the balls. A grab a quick smoke and ask a friend to check it out with me and 4 hours pass...
It appears that CodeIgniter likes to suppress database errors. 

mysql_driver.php
return @mysql_pconnect($this->hostname, $this->username, $this->password);
The '@' that fucked my night. You see, I'm a bit of an idiot for not installing php5-mysql. However it's bad fucking taste to say nothing when your software requires a 3rd party lib.

Big muchas gracias to my favorite part time Denis Leary impersonator, <3 
 
 

No comments:

Post a Comment