Results 1 to 3 of 3

Thread: PHP exec()

  1. #1
    Registered User
    Join Date
    Feb 2004
    Posts
    2

    Default PHP exec()

    For some reason, I am unable to execute any queries via PHP's exec(); I'm running WHM 8.9.0 cPanel 8.9.0-R33 ... standard build (a few tweaks here and there).

    Is there something I'm missing (Safe mode is off, btw).

    The command itself is fine; if I run the query itself directly on the command line, it works fine ... but in the PHP it doesn't even go...

  2. #2
    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,496

    Default

    Do you have the following set?

    WHM > Tweak Security > php open_basedir Protection > Enabed?

    If so, then that's likely it. You can en/disable it on a domain basis.
    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

  3. #3
    Registered User
    Join Date
    Feb 2004
    Posts
    2

    Default

    open_basedir is not enabled on the server ... so it shouldn't have an effect, correct?

Similar Threads

  1. Having issues with PHP Exec
    By ruuz in forum cPanel & WHM Discussions
    Replies: 5
    Last Post: 08-11-2009, 06:07 AM
  2. php exec() problems
    By Phillis in forum New User Questions
    Replies: 4
    Last Post: 05-07-2008, 10:22 AM
  3. PHP exec()
    By tgavin in forum cPanel & WHM Discussions
    Replies: 12
    Last Post: 09-15-2006, 12:00 PM
  4. open base dir, PHP exec and shell exec
    By tris in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 05-25-2006, 03:07 PM
  5. php (mail) exec
    By AlaskanWolf in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 11-22-2003, 10:34 AM