Results 1 to 6 of 6
  1. #1

    how disable php on cpanel ?


    any one can apply php scripts under cpanel like :
    I have run phpinfo for looking for cpanel php.ini I have
    Configuration File (php.ini) Path /usr/local/cpanel/3rdparty/etc
    I renamed /usr/local/cpanel/3rdparty/etc to /usr/local/cpanel/3rdparty/etc.OLD
    then restart the server I am still get cpanel php work and phpinfo give :
    Configuration File (php.ini) Path /usr/local/cpanel/3rdparty/etc
    how to disable cpanel php to prevent some one exploit php to hacking my server ??

    thank you

  2. #2
    Join Date
    Apr 2009
    this will cause all cPanel to wipe out so maybe it will be easily to just stop cPanel process itself?

    Also why you're thinking that it is so easy to hack cPanel php?

  3. #3
    Join Date
    May 2009
    On a Speck!!!!!
    If you disable cPanel's php it may not work properly.

  4. #4
    Join Date
    Apr 2009
    Western New York
    CPanel is written in Perl mostly. Its probably not a good idea to mess with CPanel files unless you completely disable it all together.

    If you're talking about CPanel's PHP support on hosted sites, why not just recompile easy apache without PHP support?

  5. #5
    Disable expose_php for security reasons
    expose_php = Off

    Setting expose_php to Off in php.ini does not prevent or stop php_info() function from executing.

  6. #6
    Join Date
    Oct 2004
    Kerala, India
    You can disable php functions inside php.ini as follows.
    disable_functions = phpinfo
    David |
    Affordable Server Management Solutions sales AT cliffsupport DOT com
    CliffWebManager | Access WHM from iPhone and Android

Similar Threads

  1. how to disable Cpanel logs
    By FanCube in forum Hosting Security and Technology
    Replies: 8
    Last Post: 01-01-2013, 05:30 AM
  2. Disable WHM/Cpanel ?
    By map007 in forum Hosting Security and Technology
    Replies: 3
    Last Post: 07-30-2008, 11:59 AM
  3. Disable FTP in cPanel/WHM ?
    By hainam4u in forum Hosting Security and Technology
    Replies: 6
    Last Post: 04-14-2008, 09:55 AM
  4. WHM/cPanel disable FTP Accounts
    By wowed in forum Hosting Software and Control Panels
    Replies: 1
    Last Post: 02-20-2005, 03:26 PM
  5. How can I disable EximStats in WHM/Cpanel?
    By djwins in forum Hosting Security and Technology
    Replies: 1
    Last Post: 11-03-2004, 03:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts