Bug tracker

This ticket has been moved to our new tracker. Open Ticket PHPBB3-7799 now.

Implementation of check for existance of Imagemagick bad on systems with open_basedir (fix completed in vcs)

Problem:
Your implementation of the check for existence of Imagemagick on the running serversystem can cause "500 Internal server error" messages on some systems where open_basedir is in use, especially shared-webhosts. This happens in the current stable 3.0.2, RC8 and SVN as well.

Solution:
Change line 401 of install/install_install.php (in 3.0.2 => may differ in unstable versions) to:
if (@realpath($location)!=false && @is_readable($location . 'mogrify' . $exe) && @filesize($location . 'mogrify' . $exe) > 3000)

Works fine for me and should not cause any other problems.

The trick is that realpath($location) cannot cause error 500 as is_readable would do when you try to access paths outside the defined open_basedir directories.

Comments / History

Assigned ticket to user "Acyd Burn"

Action performed by Acyd Burn (Server Manager) on Nov 2nd 2008, 11:17

Changed ticket status from "New" to "Fix in progress"

Action performed by Acyd Burn (Server Manager) on Nov 2nd 2008, 11:17

Linked ticket with changeset: r9041

Action performed by Anonymous (I am too lazy to register) on Nov 2nd 2008, 11:19

Changed ticket status from "Fix in progress" to "Fix completed in SVN"

Action performed by Acyd Burn (Server Manager) on Nov 2nd 2008, 11:19

Ticket details

Related SVN changesets