I have added the MySQL module to php.ini. I know that's not the problem. Like I said, the script runs fine from the command line; it's when Cherokee invokes PHP that I get MySQL errors.
I'm running Windows 2000 SP4, PHP 5, and I've tried connecting to multiple MySQL servers without luck. I've tried it with my firewall disabled without success. I duplicated the behavior on a machine running Windows XP SP2 and PHP 5.
Thanks,
Trevor
On 8/21/06, Alvaro Lopez Ortega <[EMAIL PROTECTED]> wrote:
Trevor wrote:
> I just installed Cherokee and it's working great, but it won't let
> any of my PHP scripts connect to MySQL. I always get the following
> message:
>
> Could not connect MySQLPHP Warning: mysql_connect()
> [function.mysql-connect]: Can't create TCP/IP socket (10106) in
> C:\Program Files\Cherokee\www\test.php on line 7
>
> The exact same script works fine when I run it with php.exe on the
> command line, so I'm inclined to believe it's Cherokee's fault. What
> can I do to make Cherokee let PHP connect to my MySQL server?
It isn't a Cherokee problem. You have to add the mysql module in
your php.ini configuration file. That will solve the problem.
Good luck :-)
--
Greetings, alo.
_______________________________________________ Cherokee mailing list [email protected] http://www.0x50.org/cgi-bin/mailman/listinfo/cherokee
