Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 7 of 7

This is a discussion on Open_basedir and Upload_tmp_dir help required...please in the VPS & Dedicated forum
Hi all, I wanted to ask this here so I could learn it future reference if I decided to add more cpanel accounts to my ...

  1. #1
    JPC Member
    Join Date
    Jan 2012
    Posts
    18

    Open_basedir and Upload_tmp_dir help required...please

    Hi all,

    I wanted to ask this here so I could learn it future reference if I decided to add more cpanel accounts to my VPS.
    Currently I have 2 sites (one is almost finished and the other I have just started preparing) and have now just run into a little problem with setting the Open_basedir and Upload_tmp_dir locations.

    Before starting the second site it wasn't an issue because I could just set the location via the global php.ini, and I don't want to use local php.ini and have disallowed this anyway during setting up my VPS.

    So my question is how do I go about setting up the locations for Open_basedir and Upload_tmp_dir?

    From what I understand there is coding that needs placing in the virtual_host area of site in the httpd.conf but editing this directly will mean any changes are lost when whm is updating nightly.

    Can I use the whm includes editor and if so which one would it be (main, pre or post virtual host and want is the actually code that would need to be placed in there?

    Have looked through Google but can't find any clear and simple answers, so any help is very much appreciated

    Tom

  2. #2
    JPC Dream Team
    Join Date
    Aug 2011
    Posts
    209
    Hello Tom,

    You can set the directory bath by .htaccess like

    php_value open_basedir /path/to/temp
    php_value upload_tmp_dir /path/to/file
    Zach | Community Liason/Sales Manager
    JaguarPC.com

    Helpful Links
    Knowledge Base | Network Status

    Need a Manager?
    (pm) | (email) Jim, Customer Service Manager
    (pm) | (email) Katrina, Technical Support Manager
    (pm) | (email) Masood, Chief Technical Officer
    (pm) | (email) Les, Chief Operations Officer

  3. #3
    JPC Member
    Join Date
    Jan 2012
    Posts
    18
    Hi Zachary,

    Thanks for the reply Zachary, have tried those settings but when added to the .htaccess file I get a 500 Internal Server Error.

    Tom

  4. #4
    JPC Dream Team
    Join Date
    Aug 2011
    Posts
    209
    Hello Tom,

    Would you mind posting what you inserted into your .htaccess file? I'd like to check and see if the paths are correct. I have heard that there are issues with the upload_temp_dir value.
    Zach | Community Liason/Sales Manager
    JaguarPC.com

    Helpful Links
    Knowledge Base | Network Status

    Need a Manager?
    (pm) | (email) Jim, Customer Service Manager
    (pm) | (email) Katrina, Technical Support Manager
    (pm) | (email) Masood, Chief Technical Officer
    (pm) | (email) Les, Chief Operations Officer

  5. #5
    JPC Member
    Join Date
    Jan 2012
    Posts
    18
    Thanks for the help Zach,

    This is what I posted inside the htaccess,
    php_value open_basedir /home/mycpanelusername/public_html
    php_value upload_tmp_dir /home/mycpanelusername/public_html/tmp

    Those were the only locations that the software I am using for my site would accept when added to the global php.ini, so may have just got the actual locations wrong for use inside the htaccess but not sure.

  6. #6
    JPC Dream Team
    Join Date
    Aug 2011
    Posts
    209
    Does the /tmp directory exist? The software has horrible locations for it. Normally the /tmp we want to be below the public_html level.
    Zach | Community Liason/Sales Manager
    JaguarPC.com

    Helpful Links
    Knowledge Base | Network Status

    Need a Manager?
    (pm) | (email) Jim, Customer Service Manager
    (pm) | (email) Katrina, Technical Support Manager
    (pm) | (email) Masood, Chief Technical Officer
    (pm) | (email) Les, Chief Operations Officer

  7. #7
    JPC Member
    Join Date
    Jan 2012
    Posts
    18
    Yeah the /tmp directory is in the correct locations for both accounts/sites, I am thinking that because I setup the server for use by only one site/account since that was the plan to start with I have now locked the server down a little too much and may have to rethink the idea of a second site just for support and billing.

Bookmarks

Posting Permissions

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