 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
jezjones
Joined: 04 Aug 2009 Posts: 2
|
Posted: Tue Aug 04, 2009 10:33 am Post subject: install as root on ubunut, but normal users cannot use? |
|
|
Ok, so i had to go through the pain of installing pear, which i'm sorry devs, is a pain as there are 10,000 ways to install and if it does not go right then you are left with pear folders all over the place.
So i am now in the position where i can run "pear" at the command line and i see it. I can do that as the web user or root.
If i do "pear list" as root then i see all the packages and the ones i managed to install (OLE and Spreadsheet writer).
Now the problem is that my web user can only see about 2 packages when i do "pear list", also when i try and install the OLE and spreadsheet writer modules it says they are not available.
So it seems that there is stuff that only root can do (like install pear) but then no-one can use it because they are not root!
I have gone through many steps of adding include_path details to the correct php.ini (as pear insists on putting it php5/cli when you do it from the command line and does not offer the opportunity to put it in the apache2 php.ini.
Anyone able to suggest any way to fix my issue as i think i am close.
As a side note, could pear be bundled with PHP the way GD is now, it would save days for me as pear is always a 2 day install (the core lamp stack takes me about an hour)!!!!!!!!!!!!!
Thanks
Jez |
|
| Back to top |
|
 |
jezjones
Joined: 04 Aug 2009 Posts: 2
|
Posted: Tue Aug 04, 2009 1:38 pm Post subject: |
|
|
SOLVED
Paths, Paths, Paths.
Set your include_path in the right php.ini (/etc/apache2/php.ini)
Set your open_basedir in your httpd.include in the right directive (for php5 on port 80, and 443 if you want it accessible from ssl.
Aside from that i do not know what i did to fix it, i have more than one PEAR folder, and a .pearrc that i do not think is used.
Started with a nice new install and now i have a mess of Pear all over the place, not liking pear much more than when i started. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|