try typing "locate php"
or better yet
"which php"
my current bet is.
You installed the "redhat default location" for php which will be /usr/bin/php
as this comes first in the path - typing "php myscript.php" will call /usr/bin/php and then your script
your /usr/local/bin/php cli is broken (how did it get there again ? compiled ? copied from the bsd box ?) and as such returns these errors.
Your php.ini file is probably in multiple locations as well and the standard path /usr/local/lib/php.ini may be different from the one your are editing and that /usr/bin/php is referencing (/etc/php.ini ?)
This was why I suggested you remove all packages and start again from scratch as it minimizes the confusion of having multiple config files, multiple binaries and multiple paths - which, if unexperienced in this structure - can lead to early retirement due to stress.
Try replacing the #!/usr/local/bin/php line with #!/usr/bin/php and see if that helps.
As for the rebuilding of PHP - the reason you get all the errors is that generally, the redhat PHP rpm is set to work with pretty much everything and all possible options compiled in as additional modules/rpms - as such, to rebuild you will need all those development libs wether you intend to use those modules or not.
HTH,
-- Steve.
At 13:46 14/09/2003 -0400, Kalin Mintchev wrote:
thanks.... thats way to much stuff to rebuild in one sunday....
On Sun, 14 Sep 2003, R P Herrold wrote:
> On Sat, 13 Sep 2003, Kalin Mintchev wrote: > > > are you on RH8? > > I realized my post a couple minutes ago did not really > give a roadmap on what to install. Here are several config > listings. First the config from the RH 7.3 client and server > running the example quoted. > > [EMAIL PROTECTED] log]# rpm -qa | grep sql > php-mysql-4.1.2-7.3.6 > mysql-3.23.56-1.73 > postgresql-libs-7.2.3-5.73 > mysql-devel-3.23.56-1.73 > mysqlclient9-3.23.22-8 > mysql-server-3.23.56-1.73 > postgresql-devel-7.2.3-5.73 > [EMAIL PROTECTED] log]# rpm -qa | grep php > php-mysql-4.1.2-7.3.6 > php-ldap-4.1.2-7.3.6 > asp2php-0.76.2-1 > php-4.1.2-7.3.6 > php-imap-4.1.2-7.3.6 > [EMAIL PROTECTED] log]# cat /etc/redhat-release > Red Hat Linux release 7.3 (Valhalla) > [EMAIL PROTECTED] log]# > > and the RH 7.3 server > > [EMAIL PROTECTED] herrold]$ rpm -qa | grep sql > php-mysql-4.1.2-7.3.4 > mysqlclient9-3.23.22-6 > mysql-3.23.49-3 > mysql-server-3.23.49-3 > mysql-devel-3.23.49-3 > mod_auth_mysql-1.11-1 > postgresql-libs-7.2.3-5.73 > postgresql-devel-7.2.3-5.73 > [EMAIL PROTECTED] herrold]$ cat /etc/redhat-release > Red Hat Linux release 7.3 (Valhalla) > [EMAIL PROTECTED] herrold]$ > > and a RHL 9 client (which also runs the example I posted) > > [EMAIL PROTECTED] herrold]$ rpm -qa | grep php > php-mysql-4.2.2-17.2 > php-4.2.2-17.2 > [EMAIL PROTECTED] herrold]$ rpm -qa | grep sql > php-mysql-4.2.2-17.2 > mysql-3.23.56-1.9 > [EMAIL PROTECTED] herrold]$ cat /etc/redhat-release > Red Hat Linux release 9 (Shrike) > [EMAIL PROTECTED] herrold]$ > > and a RHL 8 client and server > > bash-2.05b$ rpm -qa | grep php > php-odbc-4.2.2-8.0.8 > php-4.2.2-8.0.8 > php-mysql-4.2.2-8.0.8 > bash-2.05b$ rpm -qa | grep sql > mysql-3.23.56-1.80 > mysqlclient9-3.23.22-6 > postgresql-libs-7.2.3-5.80 > php-mysql-4.2.2-8.0.8 > mysqlcc-0.8.7-1 > mysql-server-3.23.56-1.80 > postgresql-devel-7.2.3-5.80 > mysql-devel-3.23.56-1.80 > bash-2.05b$ cat /etc/redhat-release > Red Hat Linux release 8.0 (Psyche) > bash-2.05b$ > > The examples in my presentation at: > http://www.colug.net/notes/0208mtg/ > "Command line and web PHP, MySQL and a quick run > through databases" > develop the CLI PHP environment with MySQL in a systematic > manner, and if you can use the examples, or diagnose why they > are failing if you are having problems. it should work for > you. > > There are a few small errors in the examples, which, along > with the presetation code were assembled in about two hours > for the presentation (causing them not to yield perfect > results against their design goals), later fixed in the > production code. Can you find them, as you work through them? > > -- Russ Herrold > > >
-- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
-- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list