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!
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!
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.
> --
> 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.
>
Just to confirm, you are executing this as root, right?
Good suggestion, just to be sure, you can execute this:
mkdir -p /tmp/pear/download
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.
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.