autoload of php modules fails

Bug #89766 reported by Brian Passavanti
2
Affects Status Importance Assigned to Milestone
php5 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: php5-common

the package installs as follows:

/usr/lib/php5/
/usr/lib/php5/20060613+lfs
/usr/lib/php5/build
/usr/lib/php5/libexec

in /etc/php5/conf.d are the ini files to load the modules

php fails on the first ini file and does not load any modules

it is my belief that the "+" in the folder name is the issue

steps to reproduce
install php5, php5-common, and php5-(modules) from apt and run a script with phpinfo()

steps to resolve
i created symbolic link /usr/lib/php5/ext -> /usr/lib/php5/20060613+lfs
i modified /etc/php5/apache2/php.ini: changed "extension_dir" from not defined to "/usr/lib/php5/ext"
restarted apache
all modules now loaded successfully

Tags: feisty herd5
Revision history for this message
Paul Dufresne (paulduf) wrote :

Sorry for long delay. I am a bug triager trying to make sure bug information is complete and still up to date.

Although /usr/lib/php5 still contains 20060613+lfs on Gutsy, making an /var/www/apache2-default with an index.php with phpinfo().
I did look through the modules, then added php5-mysql and php5-imagick, /etc/init.d/apache2 restart, then look again the web page
and observed that imagick and mysql modules was there.

I did not try your proposed changes.
So it seems to me that your bug don't exist anymore on Gutsy, but if you could try (maybe just with Tribe-2 CD), we could confirm that
Gutsy is correct.

Changed in php5:
status: New → Incomplete
Revision history for this message
Brian Passavanti (gottaloveit) wrote :

seems that they fixed the bug in the apt package, because i have since re-installed php5 on feisty and everything works without my previous fix, however, i did a ls -la on /usr/lib/php5 and noticed that a symlink DOES exist:

root@bphome:/usr/lib/php5# ls -la
total 88
drwxr-xr-x 4 root root 4096 2007-05-24 15:29 .
drwxr-xr-x 145 root root 69632 2007-06-29 00:40 ..
lrwxrwxrwx 1 root root 12 2007-05-06 11:17 20060613 -> 20060613+lfs
drwxr-xr-x 2 root root 4096 2007-05-24 15:29 20060613+lfs
drwxr-xr-x 2 root root 4096 2007-04-26 08:30 libexec
-rwxr-xr-x 1 root root 278 2007-05-22 12:06 maxlifetime

and here is output from php -i
extension_dir => /usr/lib/php5/20060613 => /usr/lib/php5/20060613

so i could have been right about the "+" in the original ini config, but they have put in a remedy i guess.

Revision history for this message
Paul Dufresne (paulduf) wrote :

In Gutsy, the symlink is gone, but paul@Arcturus:/usr/lib/php5$ php -i|grep extension_dir
extension_dir => /usr/lib/php5/20060613+lfs => /usr/lib/php5/20060613+lfs

Ok, making this bug Invalid. (I suppose the bug have been fixed on Debian and imported in Ubuntu)
That was a good bug report, please continue to fill bugs!

Changed in php5:
assignee: nobody → dufresnep
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.