Description of Problem: Modules won't work with Apache, because they are not loaded automatically. Version-Release number of selected component (if applicable): php 4.1.1-4 How Reproducible: Everytime installed Steps to Reproduce: 1. Install the rpm modules php-mysql, php-ldap etc. 2. 3. Actual Results: Modules don't work with Apache Expected Results: The opposite to the above! Additional Information: The rpm contains a script to add the module into php.ini. However the search string does not occur in the php.ini file, so the script does nothing.
The script needs to do this also to php.ini. change extension_dir = ./ to extension_dir = /usr/lib/php4 so that php can find the modules. In my case, mysql.
The last comment: >The script needs to do this also to php.ini. change >extension_dir = ./ >to >extension_dir = /usr/lib/php4 >so that php can find the modules. In my case, mysql. I've actually entered as bug number 600037
*** This bug has been marked as a duplicate of 60037 ***
Whoops. Not quite closed!! The comment made by techwolf is a duplicate of 60037. But my original comment is not. The perl scripts in the postinstall script do not correct the windows pathnames for the modules because the search strings are wrong. For instance in the spec file: %post mysql %{__perl} -pi -e "s|^;extension=mysql.so|extension=mysql.so|" %{_sysconfdir}/php.ini %{__perl} -pi -e "s|^;extension=mysql.dll|extension=mysql.so|" %{_sysconfdir}/php.ini Should be: %post mysql %{__perl} -pi -e "s|^;extension=mysql.so|extension=mysql.so|" %{_sysconfdir}/php.ini %{__perl} -pi -e "s|^;extension=php_mysql.dll|extension=mysql.so|" %{_sysconfdir}/php.ini
Bugger. There's always something that I mistype... Fixed for next rawhide