Announcement Announcement Module
Collapse Forum Guidelines

Welcome to the Forums! The purpose of this forum is to allow you to discuss topics relating to hosting and topics of interest with other Customers. The primary focus should relate to issues not generally included in our Wiki or Control Panel, or information not provided by our Customer Support Team. Some examples include programming and coding support, web site design ideas and SEO practices.

The forum is not meant as a replacement to our Wiki or Customer Support. We highly recommend searching our Wiki before posting on the forum. Also, if you have a question for our Customer Support team, please contact them as you would normally.

We ask that if you have any complaints or questions relating specifically to your account, that you address them to our Customer Support department. Do not post personal account information such as passwords or other sensitive and private information the forum, as this type of information is best kept secret. Also, please be respectful of other users and refrain from defamatory comments or use of coarse language.

We will visit the forum from time to time, and contribute to various topics. We reserve the right to delete any posts which are deemed offensive or against the spirit of the forum. Any spamming or illegal activity will not be tolerated. We also reserve the right to block any user who violates these guidelines.

To get started, we welcome you to sign up at our User Management site. Any account created there will have access to these forums, our Wiki, our Ideas site and commenting permission on our Status Blog.
See more
See less
Trying to Install Pear Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Trying to Install Pear


    I'm trying to install Pear using these instructions:

    Manual :: Installation of a local PEAR copy on a shared host

    However, after it is installed, the PEAR Package Manager gives me the following error:

    Warning: realpath() [function.realpath]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/domains/ in /var/www/domains/ on line 474

    Are there any server restrictions that would prevent Pear from being installed? Otherwise, if anyone had some troubleshooting tips, I would appreciate it.

    I'm on the Basic Linux Hosting Plan.


  • #2
    Hi Shane. That error's occurring because something is trying to perform a filesystem operation within /tmp/ . For security reasons, shared hosting accounts aren't allowed to touch /tmp/ .

    If you search Google for "pear open_basedir /tmp", you'll get a bunch of results. These two in particular helped me solve the problem:
    All you need to do is modify index.php in your PEAR directory so that the first lines look like this:
    PHP Code:
    ('TMPDIR=' $_SERVER['DOCUMENT_ROOT'] . '/temp/');


    • #3

      Hi Nick,

      I inserted this line of code:

      PHP Code:
      putenv('TMPDIR=' ini_get("upload_tmp_dir")); 
      And the error messages went away.

      Thanks for your help. I've been working on this problem for a long time.



      • #4
        You're welcome, mate. I'm glad to hear it's working now.