[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-developers] MySQL PHP problem
- Subject: RE: [cobalt-developers] MySQL PHP problem
- From: "Gavin Nelmes-Crocker" <cobalt@xxxxxxxxxxxxxxxx>
- Date: Wed Oct 23 16:34:34 2002
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
> Hi
>
> I have started to have a bit of success with MySQL and PHP
> but am struggling because I cannot get any shell access from
> home through our firewall.
>
> Attempting to list the databases via PHP I get
>
>
>
> Warning: Can't connect to local MySQL server through socket
> '/tmp/mysql.sock' (111) in (directory path snipped) on line 9
>
> Dunno if this helps but:-
>
> If I run a <?php phpinfo(); ?> line then I get
> a lovely set of details but the mysql set says the directive
> for default port and socket have no value.
are you saying that the php info doesn't give you some nice mysql stuff
in there to tell you its enabled?
its possible if that's so that you need to look at
/etc/httpd/conf/http.conf and check that extension=mysql.so has been
uncommented especially if the server is not running one of pkgmasters
wonderful php update packages (if its not then I suggest you get on over
to www.pkgmaster.com and install the latest one on there to close some
security holes left in the Cobalt version)
However noting your shell access problem from home you will find this
very difficult to check fully without it so maybe go to bed and check it
from the office on the other side of the firewall. While there buy the
IT guy a beer and get him to add a rule to your firewall for your home
ip to get access make life a hell of a lot easier.
The beer is optional but we IT people do like to be appreciated and it
gets us away from a computer screen and seeing real life once we are
reminded of what its like we are happier to return to our computers.
Regards
Gavin