Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Nov 2001
    Posts
    492

    Question Possible to "turn off" php/cgi for an account?

    Is this possible?

    I know we can enable/disable CGI (perl), but is there a way to totally disable a domain from running ANY server-side scripts?

    ie: They should be able to run ONLY .html and not:

    .php
    .shtml
    .asp
    .cgi
    .pl
    ..or whatever else..

    Thanks!
    I am an eNom ETP.
    Sign up today if you want an eNom.com domain reseller account from a reliable provider.
    * We now provide support and service to over 3250 happy resellers!

  2. #2
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default

    Your httpd.conf specifies how to handle certain file types.

    Based on this, I suppose it's possible to override such directives in local .htaccess files.

    If this is possible, you'd then have to overcome the problem of users modifying such .htaccess files. They'd need to be readable by Apache and then, by association, by everyone else, however they wouldn't need to be writable by anyone - would permissions of 0444 work?

  3. #3
    Member
    Join Date
    Nov 2001
    Posts
    492

    Default

    Can this be done programmatically when creating the account?

    ie: I want to set up a basic WHM plan that does NOT allow php/cgi

    Any ideas?
    I am an eNom ETP.
    Sign up today if you want an eNom.com domain reseller account from a reliable provider.
    * We now provide support and service to over 3250 happy resellers!

  4. #4
    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,495

    Default

    It's certainly possible. You'd have to do some coding using the /scripts/postwwwacct script which you would have to create and code yourself.
    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

Similar Threads & Tags
Similar threads

  1. When I "Terminate an Account", account still showing under "List Accounts"
    By fireineyes in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 03-01-2011, 05:20 PM
  2. Replies: 3
    Last Post: 01-23-2011, 11:18 PM
  3. Replies: 0
    Last Post: 01-19-2011, 09:00 AM
  4. CPanel "default address" not accepting email for "main account"
    By nsdesign in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-08-2005, 05:48 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube