dependancy php4-mysql should be replaced by php5-mysql

Bug #102970 reported by Nevyn
6
Affects Status Importance Assigned to Milestone
torrentflux (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: torrentflux

Upon first installing this application (after manually having to create torrentflux database) browsing to <torrentfluxserver>/torrentflux you are presented with this error:

"Fatal error: Call to undefined function mysql_connect() in /var/www/html/adodb/drivers/adodb-mysql.inc.php on line 354"

Suggestions around the internet seem to be to edit /etc/php4/apache/php.ini and enable the mysql.so module.

This however didn't appear to work but running aptitude purge php4-mysql had aptitude replacing it with php5-mysql and this worked.

Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Thank you for your bug report.
It should be sufficient to simply restart apache2 by invoking /etc/init.d/apache2 restart in order to reload PHP configuration. Newer versions should to this by default.
Could you please check?

Changed in torrentflux:
assignee: nobody → dktrkranz
status: Unconfirmed → Needs Info
Revision history for this message
Nevyn (nevynh) wrote : Re: [Bug 102970] Re: dependancy php4-mysql should be replaced by php5-mysql

Apache was restarted during installation. The issue was that by
default php4 was being used which appeared not to work. The issue is a
simple dependancy error or an error in php4.

On 5/16/07, Luca Falavigna <email address hidden> wrote:
> Thank you for your bug report.
> It should be sufficient to simply restart apache2 by invoking /etc/init.d/apache2 restart in order to reload PHP configuration. Newer versions should to this by default.
> Could you please check?
>
> ** Changed in: torrentflux (Ubuntu)
> Assignee: (unassigned) => Luca Falavigna
> Status: Unconfirmed => Needs Info
>
> --
> dependancy php4-mysql should be replaced by php5-mysql
> https://bugs.launchpad.net/bugs/102970
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Luca Falavigna (dktrkranz) wrote :

This is probably due to the fact that php4 looks at /usr/share/php4, while libphp-adodb is in /usr/share/php.
A workaround could be to add "include_path = ".:/usr/share/php" to your php.ini file.

Revision history for this message
Maurizio Moriconi (bugman) wrote :

In feisty all the php4 packages are removed, then if you use an ubuntu older version (edgy or dapper) try to ask an SRU.
Read first https://wiki.ubuntu.com/MOTU/SRU.
Thanks

Changed in torrentflux:
status: Needs Info → Fix Released
Changed in torrentflux:
assignee: dktrkranz → nobody
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.