From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 Description of problem: This references the php.spec file. Navigate to this comment line: # Generate files lists and stub .ini files for each subpackage 4 lines below this is the script line extension=${mod}.so However the modules are actually in /usr/lib/php4 and the extension line above does not point to that. The result is that none of the modules in the differing .ini files (pgsql, mysql, etc) will actually load. Error messages appear in /var/log/httpd/error_log. Version-Release number of selected component (if applicable): 4.2.2-17 How reproducible: Didn't try Expected Results: For example, /etc/sysconfig/php.d/mysql.ini should contain this extension line: extension=/usr/lib/php4/mysql.so Additional info:
Have you changed the extension_dir? /etc/php.ini has: extension_dir = /usr/lib/php4 so unless you've changed this I don't see why it shouldn't work.
Ooops! I see my extension_dir in php.ini is ./ which explains things. I apologize for not checking this more carefully. When you generate the stub .ini files in the php.spec script, consider adding a comment line to each file: ; Also see setting of extension_dir in /etc/sysconfig/php.ini Feel free to close this. Thanks Bob Cochran
OK, thanks. Changing the files would mean creating a bunch of .rpmsave's on upgrades so we'll probably not do that.