PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
install as root on ubunut, but normal users cannot use?

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Installation, Upgrading & Configuration
View previous topic :: View next topic  
Author Message
jezjones



Joined: 04 Aug 2009
Posts: 2

PostPosted: Tue Aug 04, 2009 10:33 am    Post subject: install as root on ubunut, but normal users cannot use? Reply with quote

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
View user's profile Send private message
jezjones



Joined: 04 Aug 2009
Posts: 2

PostPosted: Tue Aug 04, 2009 1:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Installation, Upgrading & Configuration All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement

'Actiemonitor' online projectmanagement software