Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2009

    Question Using DirectAdmin, how can I disable PHP for certain domains?

    I see under the "Php Safe Mode Settings" section next to each domain:
    PHP = ON
    Safe Mode = ON
    Open BaseDir = ON

    So it should be possible?

  2. #2
    Is it a suphp server?

  3. #3
    Join Date
    Apr 2009
    Yes it is using suphp

  4. #4
    Comment out suphp entries from users httpd.conf file (/usr/local/directadmin/data/users/user/httpd.conf)
    <Directory /home/user/domains/>
    Options +Includes -Indexes
    # suPHP_Engine ON
    # suPHP_UserGroup user user
    # SetEnv PHP_INI_SCAN_DIR /usr/local/directadmin/data/users/user/php/
    Then restart apache server.

    This will cause Internal Server Error for php page requests [only for particular that user]
    Last edited by petergrg; 03-25-2011 at 05:30 AM.

  5. #5
    Join Date
    Sep 2009
    Geffen (NL)
    What about a special package for this users? You can disable php in packages. With PHP disabled, they can only use HTML.

Similar Threads

  1. DirectAdmin Disable DNS and Email
    By boonchuan in forum Hosting Software and Control Panels
    Replies: 1
    Last Post: 04-16-2013, 02:33 PM
  2. DirectAdmin - How to disable log function ?
    By sakibin in forum Dedicated Server
    Replies: 3
    Last Post: 09-29-2007, 03:53 PM
  3. disable php functions?
    By Calibaba in forum Hosting Security and Technology
    Replies: 2
    Last Post: 09-16-2007, 03:06 AM
  4. PHP: How to disable EXEC COMMANDS THRU PHP ?
    By AvailableHost in forum Hosting Security and Technology
    Replies: 19
    Last Post: 07-08-2005, 10:48 AM
  5. How to disable php?
    By leet_mike in forum Programming Discussion
    Replies: 16
    Last Post: 08-25-2004, 06:52 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