Closed Thread
Results 1 to 2 of 2

Thread: I need help from server admin. Kinldy enable shell_exec() for my account.

  1. #1
    Safwan is offline x10Hosting Member Safwan is an unknown quantity at this point
    Join Date
    Jul 2008
    Location
    Lahore
    Posts
    22

    I need help from server admin. Kinldy enable shell_exec() for my account.

    Hello. My domain name is www.pjmhs.com

    I have installed a journal CMS on the website: http://pkp.sfu.ca/ojs The CMS requires shell_exec() function. It gives me an error when i try to upload an image file through the CMS configuration screen.

    Code:
    Warning:  shell_exec() has been disabled for security reasons in /home/safwan/public_html/annals/classes/core/String.inc.php on line 288
    I searched the internet and found instructions for enabling only function for one domain:

    You can however use suhosin to enable a function for one domain only.
    How can you do that ?
    After installing suhosin, remove all functions from disable_functions in php.ini and add in php.ini suhosin.executor.func.blacklist = "exec,passthru,shell_exec" and all the functions that you whant to disable globally.
    After that for each domain in the virtual host section you can add suhosin.executor.func.blacklist again but without the function that you need to enable. And so you will enable that function only for one domain.
    Example:
    <VirtualHost 127.0.0.1>
    ...........
    ...........
    <IfModule mod_php4.c>
    php_admin_value open_basedir "/usr/lib/php"
    </IfModule>
    <IfModule mod_php5.c>
    php_admin_value open_basedir "/usr/lib/php"
    php_admin_value suhosin.executor.func.blacklist = "passthru,shell_exec"
    </IfModule>
    .......
    ......
    </VirtualHost>

    In this example exec has been enabled for the VirtualHost.
    This way it will be better as you do not neet to modify all the virtual hosts only the ones that you need to enable one or more functions.
    suhosin is already on your server. Thanks. Reply soon.
    Edit:
    Can i get Intermediate Level PHP support? Thanks. I am unable to upload the logo to be displayed as my website header. I need that function. Kindly help. Thanks.
    Last edited by Safwan; 11-23-2008 at 02:58 AM. Reason: Automerged Doublepost

  2. #2
    DeadBattery's Avatar
    DeadBattery is offline Community Support Team DeadBattery is a name known to allDeadBattery is a name known to all
    Join Date
    Mar 2008
    Location
    localhost
    Posts
    4,019

    Re: I need help from server admin. Kinldy enable shell_exec() for my account.

    shell_exec() is a very dangerous PHP function so we have not enabled it for the Intermediate PHP version.


Closed Thread

Similar Threads

  1. Replies: 4
    Last Post: 08-11-2008, 09:33 AM
  2. Admin Account Hacked
    By unitmdz4 in forum Feedback and Suggestions
    Replies: 7
    Last Post: 12-15-2007, 11:47 PM
  3. Can you move my account onto a different server?
    By ktemkin in forum Free Hosting
    Replies: 2
    Last Post: 08-31-2006, 01:56 AM
  4. vBulletin - Optimization !!!!!
    By bin_asc in forum Scripts & 3rd Party Apps
    Replies: 7
    Last Post: 08-05-2005, 04:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers