Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member sh4ka's Avatar
    Join Date
    May 2005
    Posts
    434

    Default How to enable php EXEC function for only one domain ?

    I've disabled many php functions, including system, exec, etc... Now one of my customers need the EXEC function enabled for his website, but i do not wanna enable this function for the entire server, i wanna do it only for this account, i'm using php 4.4.2 + safe_mode + cPanel.

    Thanks.

  2. #2
    Member avijit's Avatar
    Join Date
    Jul 2004
    Location
    India
    Posts
    116

    Default

    The function can not be enabled for a user as if you enable it it will be enabled for all the users.
    Stop Reymond !! A single conversation with a wise man is better than ten years of study. So....

  3. #3
    Member sh4ka's Avatar
    Join Date
    May 2005
    Posts
    434

    Default

    I thought it was possible, same as register globals or safe mode.. any other suggestions about this ??

    Thanks!

  4. #4
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    No, avijit is correct.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  5. #5
    Member
    Join Date
    Feb 2005
    Posts
    223

    Default Re: How to enable php EXEC function for only one domain ?

    I know this is an old thread, but I've just come up against the same issue. Is it still not possible to enable exec() this per-account?

    If not, just how dangerous is it to enable it for the whole server, given the fact that I run a small web host with all trusted users (I don't take signups from strangers). Just looking for realistic input here - is it paranoid for me to keep exec() disabled in this environment?

    Thanks.

  6. #6
    Member minosjl's Avatar
    Join Date
    Jun 2011
    Location
    India
    Posts
    150

    Default Re: How to enable php EXEC function for only one domain ?

    Hi,

    How about creating a custum php.ini under the user document root and enable the functions for the user.

Similar Threads & Tags
Similar threads

  1. Enable php function for single account
    By webstyler in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 10-05-2009, 02:14 AM
  2. Enable PHP exec and popen for just one account?
    By sneader in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-12-2008, 08:15 AM
  3. exec() function??
    By M@jor.P@yne in forum New User Questions
    Replies: 1
    Last Post: 10-30-2006, 06:07 AM
  4. open base dir, PHP exec and shell exec
    By tris in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-25-2006, 03:07 PM
  5. Re-enable php.ini exec for Gallery?
    By jols in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 05-30-2005, 01:14 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube