The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to disable php for some websites

Discussion in 'General Discussion' started by Danny_T, Mar 15, 2007.

  1. Danny_T

    Danny_T Well-Known Member

    Joined:
    Jul 19, 2005
    Messages:
    181
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Netherlands
    I want to disable on some websites the PHP script parsing.
    Just want only .html

    is this possible? and how?

    Would be great if that was a general option. So i can create HTML-Only hosting packages :)

    Danny
     
  2. shivinvijai

    shivinvijai Member

    Joined:
    Mar 1, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    You can disable the PHP for single particular user on server.

    Hello Danny,

    You can disable the PHP for single particular user on server.

    Put the following code in a .htaaccess file for that user as :

    php_flag engine off

    OR

    in httpd.conf file and for that particular domain you can put following code in VirtualHost entry as

    <directory>
    php_admin_flag engine off
    </directory

    Let me know if you need any further assistance.

    Thanks,
    Shivin Vijai.
    Jr.System Administrator.
    shivinvijai@yahoo.com
     
  3. Danny_T

    Danny_T Well-Known Member

    Joined:
    Jul 19, 2005
    Messages:
    181
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Netherlands
    Shivin,

    .htaccess is not the best sollution because a user can edit themself too :) But the httpd conf is a good one. I guess thats not (yet) a option in whm package manager right?

    But this is fine with me for now.
    Thank you.

    Danny.
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Feature Request Entered

    I figured since I've seen this discussed so many times on various forums already, I'd create an official feature request for this.

    Feel free to add your own recommendations or vote for this feature by visiting:

    http://bugzilla.cpanel.net/show_bug.cgi?id=5251
     
Loading...

Share This Page