icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » Did PHP.ini deny exec() after PASS61's move?

PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >>

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old March 5th, 2008, 1:16 AM   #1 (permalink)
Registered User
Comfy Contributor
 
robinson.jason's Avatar
 
Joined in Jun 2006
Lives in Idaho
Hosted on PASS61
198 posts
Gave thanks: 16
Thanked 2 times
Did PHP.ini deny exec() after PASS61's move?

I'm attempting to install a Gallery since the move to the new hardware for PASS61 killed my previous install (thankfully the gallery was mostly dispensable or else I'd be beating down support's door with new tickets).

In the middle of the install I noticed that Gallery is complaining that exec() has been disabled in the global php.ini

Unfortunately this means that ImageMagick, NetPBM, and a lot fo other very handy utilities (some essential) will not function.

Is there a local work around, or are all Gallery installs now broken on PASS61?


Any idea if an install via Fantastico will skirt that issue (not likely)?

Last edited by robinson.jason; March 5th, 2008 at 1:18 AM.. Reason: changed title
robinson.jason is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 5th, 2008, 2:04 AM   #2 (permalink)
Surpass Abuse Admin
Super #1
 
removed's Avatar
 
Joined in Mar 2005
Lives in Houston, TX
Hosted on NONE
7,797 posts
Gave thanks: 11
Thanked 278 times
Please try again now -- exec should work for you.
__________________
Unofficial IRC Channel: #surpass EFNet
Unofficial = No official support. Support requests can be submitted to our helpdesk.
removed is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 27th, 2008, 2:29 AM   #3 (permalink)
Registered User
Fresh Surpasser
 
Styx's Avatar
 
Joined in Mar 2008
6 posts
Gave thanks: 0
Thanked 0 times
Question exec() needed for Gallery 2.2.4

I am experiencing similar difficulty on sh138. I have installed Gallery 2.2.4 via Fantastico, and then again via the install/ directory of the original gallery installation. I got a warning that the exec() function is disabled, and that applications like NetPBM or ImageMagick would not work. Gallery is not much good without thumbnail support...
Hopefully the NetPBM binaries are present and the exec() function will be enabled on sh138 so that I can get my photo gallery underway. Is there anything that I am able to do to resolve this issue?
-Styx Allum
Styx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 27th, 2008, 3:03 AM   #4 (permalink)
Registered User
Comfy Contributor
 
robinson.jason's Avatar
 
Joined in Jun 2006
Lives in Idaho
Hosted on PASS61
198 posts
Gave thanks: 16
Thanked 2 times
file a support ticket and it will get fixed for you. That happened for me, although they gave me some real convoluted work around (make a local copy of php.ini and use it to override server wide settings, etc)..... but before I had a chance to put that work around into effect, things just "poof" worked again. I don't know if another admin came in and changed things or not. I don't care either because now it is working. :-)
robinson.jason is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 28th, 2008, 2:41 AM   #5 (permalink)
Registered User
Fresh Surpasser
 
Styx's Avatar
 
Joined in Mar 2008
6 posts
Gave thanks: 0
Thanked 0 times
Thanks, Jason. I just submitted a support ticket. Hopefully, exec() will be made available soon so that Gallery can call up NetPBM and/or ImageMagick properly.
Styx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 29th, 2008, 1:50 AM   #6 (permalink)
Registered User
Fresh Surpasser
 
Styx's Avatar
 
Joined in Mar 2008
6 posts
Gave thanks: 0
Thanked 0 times
Unhappy Batteries not included

I am saddened to have received the following response, after having fully expected to receive the features that were advertised in the plan that I purchased:

***
Hello Styx,

The exec function is disabled in the server. It is disabled for security reasons. If we enable it, intruders can easily hack the server by uploading scripts. Even if we enable it for a single account, the intruder can upload scripts to the server through that account.

Therefore I am afraid, I will not be able to proceed with your request. Sorry for the inconvenience caused.
Nithya
Unix Admin
SurpassHosting.com
***

The reply was cordial enough, but it doesn't address the fact that the plan I purchased claims to have Image Gallery support, and includes both Gallery and Coppermine in the Fantastico installer.
[ref: DETAILS: Shared Hosting ]
Listing those features for installation, knowing that they won't be able to run without exec()... is a bit like selling someone a car without any keys. You have it, you can look at it all you want, but it can't function. Now if only there were a way to "hotwire" Gallery to get it to run anyway, I could get what I paid for. My enthusiasm has rapidly turned to disappointment.
Styx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 29th, 2008, 4:07 PM   #7 (permalink)
Race Surpass
Super #1
 
MarkRH's Avatar
 
Joined in Jul 2006
Lives in Oklahoma City, OK
Hosted on sh102
1,222 posts
Gave thanks: 18
Thanked 86 times
You can use the GD library for image manipulation in Gallery, it's part of PHP and doesn't require exec() for it to work.
MarkRH is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 30th, 2008, 6:40 PM   #8 (permalink)
DemonicAngel
Super #1
 
twirp's Avatar
 
Joined in Aug 2004
Lives in Wherever The World Takes Me
Hosted on Pass76
1,847 posts
Gave thanks: 28
Thanked 35 times
You could put a custom php.ini in the directory of the script that needs it I believe...
But as they said, exec() can cause problems, and using the GD Library in PHP should be safer.
__________________
You wear Vans so high school kids will think that you can skate. He wears Vans because he can skate. TwiRp wears Vans because they were on sale. Pass76 wants Vans.
twirp is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 31st, 2008, 12:54 PM   #9 (permalink)
eye
Lost in code...
Fresh Surpasser
 
Joined in Mar 2007
Lives in UK
Hosted on Sh120
20 posts
Gave thanks: 0
Thanked 2 times
And here I was thinking of returning and getting a Reseller to host my sites (including a Gallery2 install), although I actually prefer to use the GD Library not everyone does and plenty of other hosts don't seem to have a problem with using NetPBM or ImageMagick (are you saying they are not secure ?).

You shouldn't have to start installing custom php files to get something that's supposed to work out of the box, maybe it should say 'Gallery2 works but with restrictions' !

Does this apply to shared as well as last year my testing Gallery install worked fine ?

Regards
__________________
http://www.opcp.co.uk
Sh120
eye is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On