Community Forums
Connect with us on LinkedIn
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 24
  1. #1
    Member
    Join Date
    Feb 2003
    Posts
    62

    Default [FEATURE REQUEST] open_basedir

    It would be great if there was an option to add/delete open_basedir directive from VirtualHost for each client. I have about 100 clients on server and I have to edit httpd.conf to do that.

    php_value open_basedir "/home/username/"

    That's all I need

    cPanel.net Support Ticket Number:

    cPanel.net Support Ticket Number:

  2. #2
    Member
    Join Date
    Mar 2003
    Posts
    863

    Default

    What for? I have over 403 clients on one box and never needed it.

    cPanel.net Support Ticket Number:

  3. #3
    Member
    Join Date
    Oct 2001
    Posts
    651

    Default

    Because somepeople like to secure their boxes and prevent users from using php to open or include any files NOT in their home directory. Just becuase you don't use it, doesn't mean it is not useful.

    cPanel.net Support Ticket Number:
    Marty Hoskins
    TLC Web Enterprises

  4. #4
    Member
    Join Date
    Mar 2003
    Location
    England, UK
    Posts
    103

    Default

    Originally posted by Marty
    Because somepeople like to secure their boxes and prevent users from using php to open or include any files NOT in their home directory. Just becuase you don't use it, doesn't mean it is not useful.

    cPanel.net Support Ticket Number:
    Yes it would be good.
    It's not like it would be hard to do.
    Well worth while, along with removing the default magic quotes = enabled and enable the disabling of register globals within easyapache.

    cPanel.net Support Ticket Number:
    -- I live to support clients ---

  5. #5
    Member
    Join Date
    Feb 2002
    Location
    UK
    Posts
    461

    Default Re: [FEATURE REQUEST] open_basedir

    Originally posted by www-lab
    It would be great if there was an option to add/delete open_basedir directive from VirtualHost for each client. I have about 100 clients on server and I have to edit httpd.conf to do that.

    php_value open_basedir "/home/username/"

    That's all I need

    cPanel.net Support Ticket Number:

    cPanel.net Support Ticket Number:
    Have you submitted a feature request because this shouldn't be hard to implement and would be really good

    cPanel.net Support Ticket Number:
    Apache to die or not to die, that is the question...

  6. #6
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    Submitting a feature request to the forums isn't a good way to get action, you should try the official method: http://support.cpanel.net/index.cgi?feature=1

    cPanel.net Support Ticket Number:
    Beau Henderson

  7. #7
    Member
    Join Date
    Dec 2002
    Posts
    315

    Default

    You can also edit the scripts for creation of account to add it by default. It's quite easy to do so. We did it the hardway the first time round, by manually doing it. After that, all new accounts created has that.

    cPanel.net Support Ticket Number:

  8. #8
    Member
    Join Date
    Feb 2003
    Posts
    62

    Default

    Originally posted by silversurfer
    You can also edit the scripts for creation of account to add it by default. It's quite easy to do so. We did it the hardway the first time round, by manually doing it. After that, all new accounts created has that.
    Can you share the info how you did it?

    Just submitted feature request

    cPanel.net Support Ticket Number:

  9. #9
    Member dthigpen's Avatar
    Join Date
    May 2003
    Location
    Apex, NC
    Posts
    37

    Default I agree...

    I agree that this was be an excellent feature, and one that I'd definately use.

    cPanel.net Support Ticket Number:
    Douglas Thigpen
    http://www.dthigpen.com

  10. #10
    Member cass's Avatar
    Join Date
    Jul 2002
    Location
    Argentina/USA/Mexico
    Posts
    354

    Default

    I think we need more control on what VIRTUAL HOST have ...
    not only open_basedir ... but there are maybe lots of things I want to change on every virtual host created...

    What about a "VIRTUAL HOST TEMPLATE" ...
    so we can just modify what is created on the virtual host ... (I know, it could be done modifying by hand wwwact ...)
    but when you update cpanel .... pufff... it's gone.

    I would like to have some kind of template we can modify (to add things like open_basedir) to the httpd.conf virtual hosts by default ... without the need to make changes on every update.

    Regards.

    cPanel.net Support Ticket Number:
    Carlos Ariel Sepúlveda
    CAS company :: 1997-2011, 14 Years! :: Dedicated Attitude
    http://www.cascompany.com :: Providing CPANEL/WHM Servers since 2002 !

  11. #11
    Member
    Join Date
    Feb 2002
    Location
    UK
    Posts
    461

    Default

    Originally posted by cass

    I would like to have some kind of template we can modify (to add things like open_basedir) to the httpd.conf virtual hosts by default ... without the need to make changes on every update.
    Great idea!!! Would LOVE it!!! Submit a feature request!

    cPanel.net Support Ticket Number:
    Apache to die or not to die, that is the question...

  12. #12
    Member
    Join Date
    Feb 2003
    Posts
    190

    Default

    This is a VERY Necessary feature.

    We do need more control over the vhosts in general, but open_basedir would be a great place to start. Also, considering everyone considers Cpanel 'less secure' than other control panels, this is an area that REALLY needs some attention.

    Adding all the open_basedir stuff is a real pain in the arse for us!

    cPanel.net Support Ticket Number:

  13. #13
    Member
    Join Date
    Feb 2003
    Posts
    62

    Default

    Thanks guys for your support! I'm glad I started this thread

    cPanel.net Support Ticket Number:

  14. #14
    Member
    Join Date
    Dec 2002
    Posts
    315

    Default

    Yes. The problem is that you need to edit it after every update. However since we don't do automatic updates, and only do manual updates once every while, it's not too much a hassle. Afterall, it takes all of a couple of seconds to add it. It is also possible to write a simple script to just insert it.

    In any case, for those who are adventurous:

    1. pico /scripts/wwwacct
    Remember to backup first in case you messed up, although you can easily do an upgrade and get it replaced.

    2. Look for
    <VirtualHost $ip>
    ServerAlias www.$domain $domain
    ServerAdmin webmaster\@$domain
    DocumentRoot $mnt/$user/public_html
    ServerName www.$domain
    ....

    and before

    </VirtualHost>

    Add

    php_admin_value open_basedir $mnt/$user/
    php_admin_value upload_tmp_dir $mnt/$user/tmp/
    php_admin_value session.save_path $mnt/$user/tmp/

    You need the last 2 lines, otherwise, your scripts will all fail as they can't write to the default temp directory usually /tmp

    I also edited cpanel3-skel to add a directory tmp which is chmod to 777.

    cPanel.net Support Ticket Number:

  15. #15
    Member
    Join Date
    Feb 2003
    Posts
    62

    Default

    Thanks, silversurfer!

    cPanel.net Support Ticket Number:

Page 1 of 2 1 2 LastLast
Similar Threads & Tags
Similar threads

  1. Really useful feature request
    By driverC in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 12-06-2007, 10:00 AM
  2. Feature Request
    By rs-freddo in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 05-17-2004, 10:10 PM
  3. Feature Request
    By paralard in forum Feature Requests for cPanel/WHM
    Replies: 6
    Last Post: 10-08-2003, 12:38 AM
  4. Feature Request
    By dnswho in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-12-2003, 03:42 AM
  5. [FEATURE REQUEST] open_basedir
    By www-lab in forum cPanel and WHM Discussions
    Replies: 23
    Last Post: 06-21-2003, 03:00 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube