Cannot Set Default Paths to Imagemagick and zip.

bitslv
bitslv's picture

Joined: 2006-12-27
Posts: 9
Posted: Tue, 2013-01-29 01:13

I know that my default path to zip is /usr/bin/

I have tried /usr/bin and /usr/bin/zip with the following error every time:
The path you entered isn't valid or isn't executable

I have checked the permissions and it all is set to 755 or better. I have even tried setting everything to 777 with no change in results.

I also have the same issue with ImageMagick and FFMPG.

Any idea why this is happening?


Gallery version (2.3.2):
PHP version (5.3.3):
PHPInfo Link (see FAQ):
Webserver (Apache):
Database (MySql 5.1.66):
Activated toolkits (GD):
Operating system (Linux Centos 6):
Browser (Chrome):

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2013-01-29 01:17

its likely open_basedir restriction
link to phpinfo?
FAQ: What information is required when I ask for help in the forums?

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
bitslv
bitslv's picture

Joined: 2006-12-27
Posts: 9
Posted: Tue, 2013-01-29 06:18

Yes, I found the issue. Plesk was limiting access to the data. Once I moved the appropriate tools to the site local bin folder it started working.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2013-01-29 11:54

Yes Plesk is a PITA. It is better to create a vhost.conf for your sites
create a vhost.conf in /var/www/vhosts/yoursite.com/conf <- centos example yours may differ
set whatever php values you want to override default plesk values.

<Directory /var/www/vhosts/yoursite.com/httpdocs>
  php_admin_value open_basedir none
  php_admin_value memory_limit 128M
  php_admin_value post_max_size 320M
  php_admin_value upload_max_filesize 320M
</Directory>

I usually set directory index as well. It is a shame Plesk does not let you set this up in a skeleton either hence the PITA.

Don't forget to restart apache for the target site.

-s
________________________________
All New jQuery Minislideshow for G2/G3