about a php apache upgrade :
I uninstall my apache 1.3.22 +php4.06.
and install apacge 1.3.23 +php 4.1.1
www:~# rpm -qa | grep php
php-4.1.1-4mdk
mod_php-4.1.1-2mdk
php-devel-4.1.1-4mdk
php-common-4.1.1-4mdk
www:~# rpm -qa | grep apache
apache-devel-1.3.23-4mdk
apache-conf-1.3.23-3mdk
apache-common-1.3.23-4mdk
apache-manual-1.3.23-4mdk
apache-source-1.3.23-4mdk
apache-1.3.23-4mdk
apache-modules-1.3.23-4mdk
while test a mysql connection :
www:~# php mysql.php
X-Powered-By: PHP/4.1.1
Content-type: text/html
<br>
<b>Fatal error</b>: Call to undefined function: mysql_connect() in
<b>/root/my
sql.php</b> on line <b>2</b><br>
www:~# php mysql.php
www:~# tail mysql.php
<?
$o=mysql_connect("localhost","root","");
mysql_select_db("mysql",$o);
//for ($x=0;$x<100;$x++) {
$row=mysql_query("select * from user limit 1");
if (!row) echo "Failed";
//}
mysql_close($o);
?>
www:~#
www:~# tail /usr/lib/php/
20010901 Cache.php DB.php HTTP.php Mail.php PEAR
Archive Console extensions Image Math PEAR.php
Benchmark Crypt File Log Net Schedule
build Date HTML Log.php Numbers System.php
Cache DB HTTP Mail Payment XML
www:~# ls /usr/lib/php/extensions/
? no external extensions
no mysql extensions ?
I see the configure of this rpm find at rpmfind.net
Configure Command './configure' '--disable-static' '--disable-debug'
'--disable-rpath' '--enable-pic' '--enable-inline-optimization'
'--prefix=/usr' '--with-zlib' '--with-config-file-path=/etc'
'--enable-magic-quotes' '--enable-debugger' '--enable-track-vars'
'--enable-safe-mode' '--with-exec-dir=/usr/bin' '--with-regex=system'
'--with-versioning' '--enable-sysvsem' '--enable-sysvshm'
'--with-mod_charset' '--enable-force-cgi-redirect'
'--enable-trans-sid' '--with-dbase' '--with-filepro' '--enable-yp'
'--enable-ftp' '--with-xml' '--with-gettext' '--with-ttf'
'--with-freetype-dir' <br>[Some modules are external: look for
packages php-pgsql,php-mysql,...]
aie :
befire I have php-mysql-4.06
I try to force the install of php-mysql
external extension
www:~# rpm -Uvh --force php-mysql-4.0.6-3mdk.i586.rpm
error: failed dependencies:
php-common = 4.0.6 is needed by php-mysql-4.0.6-3mdk
www:~# rpm -i --force php-mysql-4.0.6-3mdk.i586.rpm
error: failed dependencies:
php-common = 4.0.6 is needed by php-mysql-4.0.6-3mdk
www:~# php phpinfo.php> phpinfo.html
www:~# rpm -qa | grep php
php-4.1.1-4mdk
mod_php-4.1.1-2mdk
php-devel-4.1.1-4mdk
php-common-4.1.1-4mdk
nothing more
www:~# rpm -U --force php-mysql-4.0.6-3mdk.i586.rpm
error: failed dependencies:
php-common = 4.0.6 is needed by php-mysql-4.0.6-3mdk
I must hav a mysql.so file wich while provide me an external extentioin to
allow me to connect to mysql database.
a+.
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php