php5-mysql mixed with pdo and pdo_mysql causes apache to failed to load.

Apache, php, ubuntu 5 Comments »

I am running ubuntu 7.10

I had previously installed php with pdo, and added the pdo_mysql and pdo
extension into the /etc/php5/apache2/php.ini file.

Once i then tried to install php5-mysql via apt-get php segfaulted and
apache refused to restart.

With the pdo and pdo_mysql extension in php.ini i was getting the
following error from /var/log/apache2/error.log..

PHP Warning:  Module ‘PDO’ already loaded in Unknown on line 0
PHP Warning:  Module ‘pdo_mysql’ already loaded in Unknown on line 0
/usr/sbin/apache2: symbol lookup error: /usr/lib/php5/20060613
+lfs/pdo_mysql.so: undefined symbol: php_pdo_get_dbh_ce

Once i commented out the pdo extension, this got rid of the first PHP
warning, and pdo is in phpinfo but no pdo drivers..

If i comment out pdo_mysql in /etc/php5/apache2/php.ini and also
commented it out from /etc/php5/conf.d/pdo_mysql.ini and restarted
apache then it worked.

Bottom line is, if anywhere at all you have pdo_mysql.so in any
configuration, you get the error:

/usr/sbin/apache2: symbol lookup error: /usr/lib/php5/20060613
+lfs/pdo_mysql.so: undefined symbol: php_pdo_get_dbh_ce

and apache fails to load.

Server version: Apache/2.2.4 (Ubuntu)

Quality information on PHP SPL

General News, php No Comments »

I was recently browsing around looking for information about PHP SPL apart from the standard info on the php manual website.

I came across the following website: http://www.phpro.org 

This website has some really quality written articles about php and also about the php spl library.

If you a up and coming php developer, or already consider yourself a guru then still check the articles, tutorials as its definatly worth a good look as theres lots of information still to be learnt..

Wordpress is messy disgusting code

General News, php 1 Comment »

Every tried modifying wordpress code ?

After I had an inital look I have been put off. Unfortunatly today work has forced me to get into the guts of wordpress and this stuff is grotesque !

Here is a sample of some code: http://devpipe.pastebin.com/f42a541d2

Please digg / comment if you agree that wordpress is such a messy piece of work it needs a compete ground up re-write and some kind of templating engine used to cut out all this embedded inline php shit.

This thing needs binning a proper application where code is separate from content written.

We are the experts, you are the client.

General News, Nightmare Clients 2 Comments »

To Clients

Tell me, when you hire a plumber, do you tell him how to do his job ?

When you hire and electrician do you tell him to change from the red wire to a green one or let him being the expert make the right decisions ?

To Web Developers / Designers

Don’t let clients tell you how they want there website. You the one that knows the SEO, your the one that knows what designs work and what dont.

Sure, take on board the comments, but my all means, if what there saying is shit, tell them so and if they don’t want to know, tell them about the plumber and electrician (see above “To Clients”).

Flow Chart

Here is a simple flow chart i have put together to help determine projects cost and get a bit of a feel for the client.

Its by no means complete, but to plan for everything would mean always to fail and it would only take 1 mis match to screw up everything.

Please leave your thoughts and comments, rel=nofollow is disabled, but if you have a spammy name like “Web design Coventry” i will change your name to ‘Jack’ ..etc and remove your link for being a spammy bastard.

Web Dev / Client flow chart

WP Theme & Icons by N.Design Studio & Shamefully P0wered by WordPress
Entries RSS Comments RSS Log in