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 
How to install on shared hosting

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



Joined: 19 May 2008
Posts: 5

PostPosted: Mon May 19, 2008 8:18 pm    Post subject: How to install on shared hosting Reply with quote

Hi guys

I need to install PEAR on a shared hosting. I try to install it using the script go-pear.php but it don't work; the SEO of the server say me that PEAR core are installed for using on Hsphere control panel, but users is not allowed to install aditional modules.

I need install the module Spreadsheet/Excel

How I can install it with other method.

If I copy and paste the Spreadsheet folder it will works?

Please, tell me how solve this trouble.

Thanks
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1011

PostPosted: Mon May 19, 2008 9:21 pm    Post subject: Re: How to install on shared hosting Reply with quote

"don't work" is a bad description of an error. If you tell us more about the error messages that you get, we might be able to help you.

Manual installation by extracting the package file is possible, but not recommended. You'll also need the OLE package in this case. And, of course, the PEAR package itself.

You could also install PEAR on your local system, and use the remote installation procedure. Details can be found in the manual.

Another possibility is to install both PEAR and various package (like the Excel package) locally, and to transfer the files via FTP. This works in most cases without trouble, but not for every package.
Back to top
View user's profile Send private message
esteban



Joined: 19 May 2008
Posts: 5

PostPosted: Mon May 19, 2008 11:28 pm    Post subject: Re: How to install on shared hosting Reply with quote

Hi
esteban wrote:
I try to install it using the script go-pear.php but it don't work;

The script run but it block at this point:
Code:
Starting installation ...
Loading zlib: ok

Bootstrapping Installer...................
Bootstrapping PEAR.php............(remote) ok
Bootstrapping Archive/Tar.php............(remote) ok
Bootstrapping Console/Getopt.php............(remote) ok

Extracting installer..................
Downloading package: PEAR.............ok
Downloading package: Structures_Graph....


I will install PEAR and their modules on my local machine and after I'll transfer the files to my server via ftp.

Thanks
Back to top
View user's profile Send private message
esteban



Joined: 19 May 2008
Posts: 5

PostPosted: Thu May 29, 2008 10:12 pm    Post subject: Reply with quote

I did install a copy of PEAR on my local server and it work correctly, then I did transfer the folder pear to my web hosting but it seems not working. It don't display any error message or warning when I try to access to mysite.com/pear

The pear index.php file is allocated on this folder but it don't show anything.

My program now found the pear instalation folder and it seems to generate the excel file, but it only return a empty .xls file.

I need configure some file to use PEAR from this way? Can anyone help me?

PD: my hosting provider not allow me to install pear individually. They have a instalation but the module Spreadsheet/Excel is not installed.

Thanks
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1011

PostPosted: Thu May 29, 2008 11:01 pm    Post subject: Reply with quote

To get error output, you can insert the following lines at the beginning of your script(s):

Code:

error_reporting(E_ALL);
ini_set('display_errors', 1);
require_once 'PEAR.php';
PEAR::setErrorHandling(PEAR_ERROR_DIE);


If you get an empty Excel file, you most likely need to set a temporary directory via SEW's setTempDir() method.
Back to top
View user's profile Send private message
esteban



Joined: 19 May 2008
Posts: 5

PostPosted: Thu May 29, 2008 11:41 pm    Post subject: Reply with quote

Thanks for you reply,

I put the code for show errors in my script and I get this string:
Code:
Warning: realpath(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/hsphere/local/home/user_path/:/hsphere/shared/apache/libexec/php5ext/php/) in /hsphere/local/home/user_path/domain/pear/PEAR/System.php on line 459 Warning: realpath(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/hsphere/local/home/user_path/:/hsphere/shared/apache/libexec/php5ext/php/) in /hsphere/local/home/user_path/domain/pear/PEAR/System.php on line 459 Warning: realpath(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/hsphere/local/home/user_path/:/hsphere/shared/apache/libexec/php5ext/php/) in /hsphere/local/home/user_path/domain/pear/PEAR/System.php on line 459 Notice: unserialize(): Error at offset 79 of 754 bytes in /hsphere/local/home/user_path/domain/pear/PEAR/PEAR/Config.php on line 1056 Error: PEAR_Config: bad data in /hsphere/local/home/user_path/domain/pear/pear.conf


I was replace the real user path and domain with string "user_path" and "domain".

Thanks for helps
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1011

PostPosted: Fri May 30, 2008 12:16 pm    Post subject: Reply with quote

My guess was right then. You'll need to set a temp dir (needs to be a (sub)directory inside of /hsphere/local/home/user_path/).
Back to top
View user's profile Send private message
esteban



Joined: 19 May 2008
Posts: 5

PostPosted: Fri May 30, 2008 2:38 pm    Post subject: Reply with quote

Hi,

I get now the correct excel file after setting the temporary directory via setTempDir(). Very Happy

But I can yet access the pear front end interface. which is the file that I need to modify to set the temp dir? I prefer set the temp directory via conf file, I don't like to use the method setTempDir() because it may vary from one server to other.

Thanks for your help, it's very usefull.
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1011

PostPosted: Fri May 30, 2008 3:29 pm    Post subject: Reply with quote

esteban wrote:
But I can yet access the pear front end interface.


You can or you cannot? I guess "cannot". If it's your provider's installation, you cannot access it. Just think of 100 users on that server, and that everybody could install or uninstall packages ...

But there is always the possibility to install yourself, as explained in the PEAR manual.

esteban wrote:
which is the file that I need to modify to set the temp dir? I prefer set the temp directory via conf file, I don't like to use the method setTempDir() because it may vary from one server to other.


This temp dir is specific for SEW, and there is no global configuration possibility. I can only think of putting a variable (or constant) in a configuration file, and to use this variable in every script that uses SEW (and that call setTempDir()).
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