Hey Tim,
This is what I know from my experience installing PHP/MySQL on several
machines with multiple upgrades in the last year...
1) Pear only works with CLI in PHP. Doesn't work with CGI.
So you must already be in CLI mode with PHP.
2) ***Example of proper reference to PHP and Pear in the PHP.ini file****
;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;
; UNIX: "/path1:/path2"
; include_path = ""
;
; Windows: "\path1;\path2"
include_path =".;c:\php\;c:\php\ext\;c:\php\pear\"
3) Only .dll file types work as extensions in PHP.ini
Like this
***extension=php_msql.dll*** and without the ';' right infront of the word
"extension".
any other file type doesn't work.
Make sure the php_name.dll is in the PHP\ext\ directory and placed in the
php.ini spelled correctly.
Question, is your MySQL ODBC connector installed?
Are all references to MySQL and Pear made with correct syntax and spelling,
where they are needed?
And lastly, because this happened recently to me and made me crazy for a
couple of hours...
Make sure the permissions on the MySQL, Pear and PHP directorys are open to
your server and you.
Forgive me if you already know these things.
Blessings,
Chetan
Tim McGeary wrote:
>
> I installed a new CentOS server that didn't include php-mysql or
> php-pear, so I installed both of those using yum. But php -i or
> phpinfo() still doesn't think mysql or pear are installed. How can I
> fix this without re-compiling by source? I tried that last week and
> broke everything, hence my installing a new server.
>
> Thanks,
> Tim
>
> --
> Tim McGeary
> Senior Systems Specialist
> Lehigh University
> 610-758-4998
> tim.mcgeary@xxxxxxxxxx
>
>
--
View this message in context: http://www.nabble.com/still---without-mysql-after-yum-install-php-mysql-tf3834989.html#a10919548
Sent from the Php - Install mailing list archive at Nabble.com.
[Index of Archives]
[PHP Users]
[PHP Home]
[PHP on Windows]
[Kernel Newbies]
[PHP Classes]
[Postgresql]
[PHP Books]
[PHP Databases]
[PHP SOAP]