Before: apache2 + php + mysql and no fast-cgi, it's OK, mysql_connect no problem.
But i want to use nginx to replace apache2, i use this config (segment) in nginx.conf :
Code: Select all
location ~ \.php {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
yeah, it works. php was called, but mysql is not connected to.
php print the error message:
Fatal error: Call to undefined function mysql_connect() in /Users/.../...php
any guys know the problem ?
Thanks very much!!