Anyone know a good host for Drupal that offers exec() ?

Events happening in the community are now at Drupal community events on www.drupal.org.
nig-gdo's picture

Hi UK Drupallers

I am wanting to install the Image Enhanced Scaling module. The module developer says, "You'll find calls to exec() in both imagemagick.inc.php and image_enhanced_scaling.module."

I cannot run exec() on my existing host - it returns a "exec() has been disabled for security reasons" error. My host confirmed, "this is due to the way it works and the protection on the server. you need to change the ImageMagic to GD as this works fine with all image scripts I know."

I approached www.site5.com (a well-known Drupal host) who said they also do not allow calls to exec().

Does anyone have a good (fast) Drupal host that allows calls to exec() ?

Many thanks
Nigel
Leeds

Comments

.

niklp's picture

Hi Nigel.

Sorry, at this point I am unsure how to test for this functionality. If you can include a fairly "safe" snippet that you can assure me will be produce a reliable test result using the Devel module's php box, I will test mine out for you and let you know. If so I can put you in direct contact with the SysAdmin, who is a friend of mine (handy!).

Perhaps best to use the contact (me) form on this site.

Similar comment to NikLP

Patrick Nelson's picture

Similar comment to NikLP really - let me know how to test for it and I'll check. I own the servers and provide Drupal hosting and am happy to do this if possible.

By "possible", I mean that I can do it - I have root access to all the servers I run - but I would probably like to take steps to make sure it's secure. If you want to have a chat about the possibilities, you can skype me - patricknelson.

Regards

Patrick

Using phpinfo(); have a look

fronbow's picture

Using phpinfo(); have a look for these settings:
safe_mode
safe_mode_exec_dir
safe_mode_gid
safe_mode_include_dir
disable_functions
disable_classes
open_basedir.

If safe_mode is on, then you are restricted to running stuff that is only owned by the calling process; eg I can only execute stuff that is owned by my uid (and possibly gid).

I've noticed a few hosts sticking the exec commands in the disable_functions setting (in particular fasthosts were doing this a year ago)

Have a look at this page as it should help better: http://www.hudzilla.org/phpbook/read.php/17_2_2 or for the latest version: http://hudzilla.org/phpwiki/index.php?title=Hosting_PHP

I've just checked on one of my hosts by enabling the imagemagick toolkit, and it looks like it's the open_basedir setting that is getting in the way, if that helps. (It's enabled on evohosting and 34sp so you prolly want to give these a miss

What you might want to do is email some and ask them whether safe_mode is on and whether open_basedir is in effect, and also if they've got imagemagick installed.

Hope this helps in some small way!

(Oh, and let us know how you get on cos we could compile a list of decent uk drupal hosts?!)

cheers

flexible uk host

jbc's picture

I can't comment directly on this issue, because it's outside my experience, but I have found my host to be very flexible, allowing ssh access etc.

They will certainly confirm whether this is available via their pre-sales advice.

godsweb.co.uk

shalom!
John

shalom from wales!
John

United Kingdom

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: