There has been posted a fix to this issue now that gets around having to fall back to an older version of php. This is a clean solution and has been tested and working. So unless you have other reasons to downgrade php use the following:
In index.php, find:
$command .= ” “.escapeshellarg($cfg[“cmd_options”]).” > /dev/null &”;
and replace with
if ($cfg[“cmd_options”])$command .= ” “.escapeshellarg($cfg[“cmd_options”]);$command .= ” > /dev/null &”;
Credit goes to user djomp of the TorrentFlux Forums.
Downgrade php in Fedora 7 to fix TorrentFlux, by otheos.
After updating to php-5.2.6-2.fc7 in Fedora 7, TorrentFlux 2.3 stopped working. The problem occurs when you start a download and immediately it shows up as DONE in status and Downloading Failed! in ETA. The file’s size also changes to 0 (Zero).
The issue is solved by downgrading to the previous stable version of php (php-5.2.4-1.fc7)
How to downgrade PHP in Fedora 7 to fix TorrentFlux.
First check that indeed you have installed the new version that causes the problem with:
yum list php
This should come up with:
php.i386 5.2.6-2.fc7 installed
Now you need to check all the php packages in your system. Fire up the graphical interface (sorry, can’t figure out how to check all the php* with yum) with:
then head to “search” and type php followed by enter. You then take note of all the php packages on the same version. In my case they were:
cli common gd ldap mbstring mysql odbc pdo pgsql xml
Then head to http://koji.fedoraproject.org/koji/buildinfo?buildID=18829 and download the same packages of the previous version to a directory. Now uninstall php with
followed by the list of the packages to uninstall, in my case:
yum remove php php-cli php-common php-gd php-ldap php-mbstring php-mysql php-odbc php-pdo php-pgsql php-xml
When asked to proceed take a note of all the dependent packages that will be also removed. In my case they were:
gallery2 gallery2-classic gallery2-dcraw gallery2-matrix gallery2-tile mediawiki php-Smarty php-pecl-apc phpMyAdmin phpldapadmin tiquit
Then hit “y” and go on with the removal of php and its packages. Once done, change to the directory where you downloaded the previous version files and simply do:
rpm -ivh –force php*.rpm
After this is done, you can re-install the dependent packages that were previously removed with:
followd by the names of the packages separated by space. In my case it was
yum install gallery2 gallery2-classic gallery2-dcraw gallery2-matrix gallery2-tile mediawiki php-Smarty phpMyAdmin phpldapadmin tiquit php-pecl-apc
That’s it, you’re done. Check again with
yum list php
and you’ll be informed you are ready with something like this:
php.i386 5.2.4-1.fc7 installed
php.i386 5.2.6-2.fc7 updates
Now restart apache with
service httpd restart
and make sure next time you are updating your box, you leave out anything that has to do with php. Unless a new version comes out that is known to work with TorrentFlux.
Happy torrenting again. otheos
P.S.: This HOWTO is also available as stand alone here.