PEAR Log Error on Dreamhost Installation

706 views
Skip to first unread message

NUCats

unread,
Sep 6, 2011, 1:13:57 PM9/6/11
to swift...@googlegroups.com
Hi!
I'm trying to install SwiftRiver on Dreamhost and ran into the PHP PEAR Logging Error:

PHP PEAR Logging

Sorry, I can't access the PEAR Logging framework, I tried 'include_once("Log.php")' but it returned false. You need to ensure that the PEAR Logging system is installed andincluded.


Any idea what I need to do to fix this?  I'm not familiar with Command Line.


Thanks!

Charl van Niekerk

unread,
Sep 6, 2011, 2:18:43 PM9/6/11
to swift...@googlegroups.com
2011/9/6 NUCats <ryan...@gmail.com>:

On the command line, you just need to do the following:

pear install Log

Step-by-step instructions for Debian/Ubuntu can be found here:

https://github.com/ushahidi/Sweeper/blob/master/deploy/debian.sh

Hope this helps!

NUCats

unread,
Sep 7, 2011, 12:45:20 AM9/7/11
to swift...@googlegroups.com
I keep getting this error:
WARNING: configuration download directory "/tmp/pear/download" is not writeable.  Change download_dir config variable to a writeable dir to avoid this warning
WARNING: channel "pear.php.net" has updated its protocols, use "pear channel-update pear.php.net" to update
Cannot install, php_dir for channel "pear.php.net" is not writeable by the current user

Any help?

Thanks!

Charl van Niekerk

unread,
Sep 7, 2011, 2:30:05 AM9/7/11
to swift...@googlegroups.com
2011/9/7 NUCats <ryan...@gmail.com>:

Which operating system are you currently setting this up on? Never had
any trouble with Debian myself, maybe you could try that instead? A
lot of distros like openSUSE, Mandriva etc have very strange
permissions problems as they are primarily aimed at the desktop
market.

NUCats

unread,
Sep 7, 2011, 11:35:07 AM9/7/11
to swift...@googlegroups.com
I'm installing it on my Dreamhost account (or trying to!)  It runs Debian Linux but I keep getting that error if I run "pear install Log"

Any tips?

THANK YOU for all your help!

megan hines

unread,
Sep 7, 2011, 11:50:04 AM9/7/11
to swift...@googlegroups.com
Have you checked to make sure the directory exists? that error
sometimes means, hey, there is not a place here I need. make sure it
exists and that it isn't read-only. I think I had the same problem
but it was fine after I created the destination it wanted.

> --
> You received this message because you are subscribed to the Google Groups
> "SwiftRiver" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/swiftriver/-/2ty4MljzqdUJ.
> To post to this group, send email to swift...@googlegroups.com.
> To unsubscribe from this group, send email to
> swiftriver+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/swiftriver?hl=en.
>

Charl van Niekerk

unread,
Sep 7, 2011, 11:50:49 AM9/7/11
to swift...@googlegroups.com
2011/9/7 NUCats <ryan...@gmail.com>:

> I'm installing it on my Dreamhost account (or trying to!)  It runs Debian
> Linux but I keep getting that error if I run "pear install Log"
> Any tips?

Just to confirm, you are executing this as root, right?

Charl van Niekerk

unread,
Sep 7, 2011, 11:52:59 AM9/7/11
to swift...@googlegroups.com
2011/9/7 megan hines <megan...@gmail.com>:

> Have you checked to make sure the directory exists?  that error
> sometimes means, hey, there is not a place here I need.  make sure it
> exists and that it isn't read-only.  I think I had the same problem
> but it was fine after I created the destination it wanted.

Good suggestion, just to be sure, you can execute this:

mkdir -p /tmp/pear/download

NUCats

unread,
Sep 7, 2011, 2:45:53 PM9/7/11
to swift...@googlegroups.com
I ran mkdir -p /tmp/pear/download and it gave me no response.
I then ran pear install Log and it gave the same set of errors.

Sorry I'm such a beginner.  How do I check that I'm executing this as root?  Also, how do I make sure that it is writable and isn't read-only?

Thank you again!

Charl van Niekerk

unread,
Sep 7, 2011, 3:09:35 PM9/7/11
to swift...@googlegroups.com
2011/9/7 NUCats <ryan...@gmail.com>:

> I ran mkdir -p /tmp/pear/download and it gave me no response.

It would do that in either case so that is probably a positive thing.

> I then ran pear install Log and it gave the same set of errors.

Definitely sounds like file permissions issues then...

> Sorry I'm such a beginner.  How do I check that I'm executing this as root?

You can just type:

echo $USER

This will print out the name of the user you are currently logged in as.

>  Also, how do I make sure that it is writable and isn't read-only?

You can do:

ls -l /tmp/pear/download

This will give you the file permissions on the left and the owner user+group.

NUCats

unread,
Sep 9, 2011, 2:57:00 AM9/9/11
to swift...@googlegroups.com
So a bit of an update...
I was able to install pear and pear logging at home/USERNAME/pear (This is on shared hosting)

But...
I still get the Pear Log error:
Sorry, I can't access the PEAR Logging framework, I tried 'include_once("Log.php")' but it returned false. You need to ensure that the PEAR Logging system is installed andincluded.

Do I need to update the SwiftRiver config file to point to this new location of Pear?  If so, what do I need to edit?  (Please use small words!)

Thanks!

Charl van Niekerk

unread,
Sep 10, 2011, 5:30:15 AM9/10/11
to swift...@googlegroups.com
2011/9/9 NUCats <ryan...@gmail.com>:

> So a bit of an update...
> I was able to install pear and pear logging at home/USERNAME/pear (This is
> on shared hosting)

Shared hosting is not recommended for running Sweeper for a variety of
reasons, but I guess it's worth giving it a shot.

> But...
> I still get the Pear Log error:
> Sorry, I can't access the PEAR Logging framework, I tried
> 'include_once("Log.php")' but it returned false. You need to ensure that the
> PEAR Logging system is installed andincluded.
>
> Do I need to update the SwiftRiver config file to point to this new location
> of Pear?  If so, what do I need to edit?  (Please use small words!)

You will need to add the path to the above directory to your PHP
include path so that PHP knows where to go look for the files:

http://www.php.net/manual/en/ini.core.php#ini.include-path

It's been a while since I've done this myself, but you should be able
to do this using a .htaccess file if you're on shared hosting.

Reply all
Reply to author
Forward
0 new messages