Re: still without-mysql after yum install php-mysql

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



I don't think phpinfo() looks at the httpd.conf file to determine which modules it has installed. I looked in the /etc/php.ini file. In the extension_dir, I have the correct directory where modules reside, and the couple of modules I installed with yum are residing there

; Directory in which the loadable extensions (modules) reside.
extension_dir = "/usr/lib/php/modules"

Then I found the Dynamic Extensions area which says:

; If you wish to have an extension loaded automatically, use the following
; syntax:
;
;   extension=modulename.extension
;
; For example:
;
;   extension=msql.so

So I put in:

extension=mysql.so
extension=mysqli.so

but no luck.

Then I read:

;;;;
; Note: packaged extension modules are now loaded via the .ini files
; found in the directory /etc/php.d; these are loaded by default.
;;;;

So I looked in /etc/php.d and see the .ini files of modules I just installed via yum. So it looks like I've done everything correctly, except PHP is not seeing the dynamic modules I loaded. What should I try next?

But if it really is the httpd.conf that I need to edit, how does that interact with PHP?

Tim

Tim McGeary '99, '06G
Senior Systems Specialist
Lehigh University
610-758-4998
tim.mcgeary@xxxxxxxxxx


Matthew Marino wrote:
If you have dynamic modules and you have DSO support compiled in Apache, one only needs to modify the httpd.conf file to load the modules like "loadmodule php(n)_module /wherever/wherever/libphp(n).so". Where (n) is the PHP version and the second argument is where the module lives. Then you need to map the doc type like "AddType application/x-http-php .php"

It might be worth acquiring the source packages so you at least have the installation notes and configure docs even if you don't plan to recompile anything.


On May 29, 2007, at 2:40 PM, Tim McGeary wrote:

There has to be a way to get PHP to know when other modules were installed without recompiling, especially since I don't have the source files to recompile. Or is there a way to recompile with yum?


Tim McGeary '99, '06G
Senior Systems Specialist
Lehigh University
610-758-4998
tim.mcgeary@xxxxxxxxxx


MHumphries@xxxxxxxxx wrote:
whenever i have done this i found that you will have to recompile.
Please note my new e-mail address
--
Michael J Humphries
(formerly Delcomp/SOFTEK)
Penstar Office Center, Suite 101
1431 N. 26th Street
Escanaba, MI 49829
Phone: 906.786.3583 ext. 139
Fax: 906.786.4300
E-Mail: mhumphries@xxxxxxxxxx
__www.dstech.us_ <http://www.dstech.us/>
*Tim McGeary <tmm8@xxxxxxxxxx>*
05/29/2007 01:04 PM
Please respond to
tim.mcgeary@xxxxxxxxxx
To
    php-install@xxxxxxxxxxxxx
cc
Subject
     still without-mysql after yum install php-mysql
Re-sending because I'm not sure it went through... I just signed up for
this list:
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


Matthew Marino
IT Manager
CSW Inc.
45 Tyburski Road
Ludlow MA 01056
(413)589-1311


[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux