Error when using PHP + MySQL
| From: | dssopt | Date: | Mon, 18 Mar 2002 07:33:14 +0000 |
| Subject: | Error when using PHP + MySQL | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-6391@lists.php.net to get a copy of this message | ||
Hello everybody,
I am using the Linux + apache + mysql + php at the first time. After I
install all of these, I get an error message like
"Fatal error: Call to undefined function: mysql_connect() in
/var/www/html/index.php on line 2" on browser.
The installation procedure is :
for apache 1.3.22
1. ./configure --prefix=PREFIX
2. make
3. make install
for mysql
rpm -ivh mysql_3.23.49
for php 4.1.2
1.
./configure --with-mysql --with-apache=../apache_1.3.22 --enable-track-vars
2. make
3. make install
(I tried the dynamic mode installation, but the error message "apxs cannot
not be found " shown)
Is this some steps error ?
Thank you