Solution:
Just make a symbolic link from your mysql.sock to the directory it is looking:
ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock
ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock
/var/www:
frontController.php
/var/www/service:
FruitService.php
/var/www/domain:
Apple.php
Orange.php
require_once('../domain/Apple.php');
require_once('../domain/Orange.php');
PHP Warning: require_once(../domain/Question.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in FruitService.php on line 2It turns out that since your controller is serving the page, all the paths would have to be relative to that location of the controller. So in my example, this would work if I were to put it in FruitController.php:
PHP Warning: require_once(../domain/Question.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in FruitService.php on line 2
require_once('domain/Apple.php');
require_once('domain/Banana.php');
require_once($_SERVER['DOCUMENT_ROOT'] . '/domain/Apple.php');
require_once($_SERVER['DOCUMENT_ROOT'] . '/domain/Apple.php');
Setting up tzdata (2011g-0ubuntu0.11.04) ...
Use of uninitialized value $reply in scalar chomp at /usr/share/perl5/Debconf/FrontEnd/Passthrough.pm line 66.
Use of uninitialized value $reply in concatenation (.) or string at /usr/share/perl5/Debconf/FrontEnd/Passthrough.pm line 67.
Use of uninitialized value $reply in split at /usr/share/perl5/Debconf/FrontEnd/Passthrough.pm line 68.
Use of uninitialized value $reply in scalar chomp at /usr/share/perl5/Debconf/FrontEnd/Passthrough.pm line 66.
Use of uninitialized value $reply in concatenation (.) or string at /usr/share/perl5/Debconf/FrontEnd/Passthrough.pm line 67.
Use of uninitialized value $reply in split at /usr/share/perl5/Debconf/FrontEnd/Passthrough.pm line 68.
Use of uninitialized value $reply in scalar chomp at /usr/share/perl5/Debconf/FrontEnd/Passthrough.pm line 66.
Use of uninitialized value $reply in concatenation (.) or string at /usr/share/perl5/Debconf/FrontEnd/Passthrough.pm line 67.
Use of uninitialized value $reply in split at /usr/share/perl5/Debconf/FrontEnd/Passthrough.pm line 68.
Use of uninitialized value $ret in string eq at /usr/share/perl5/Debconf/FrontEnd/Passthrough.pm line 109.
dpkg: error processing tzdata (--configure):
sudo dpkg-reconfigure tzdata