Problem with PEAR packages

Hi there,
I am a new one here and have a problem with installing PEAR packages. The problem is that I do not have shell account. My ISP does not want to install these packages for me and I have to do it myself. Without using any shell it seems to be difficult for me. As far as I know I have to use FTP to place packages into my account. That's simple, but what I have to do next ? Pls help me

This is going to be quite tricky and I’m not sure if it’ll work. However, you can download all the PEAR pacakges you need from http://pear.php.ne, unpack them and then upload them to the php_includes folder in the MySource Matrix installation directory.

Unfortunately it does not work.
That's the result:


    Warning: processaction(PEAR/Registry.php): failed to open stream: No such file or directory in /home/posredniknieruchomosci/ftp/installer/steps/versioncheck.inc on line 298
    
    Warning: processaction(): Failed opening 'PEAR/Registry.php' for inclusion (include_path='.:/home/posredniknieruchomosci/ftp/libs/PEAR') in /home/posredniknieruchomosci/ftp/installer/steps/versioncheck.inc on line 298
    
    Fatal error: Cannot instantiate non-existent class: pear_registry in /home/posredniknieruchomosci/ftp/installer/steps/versioncheck.inc on line 299


Any idea? I am quite confused and really want to install matrix stuff, help me pls

I'm pretty sure this isn't going to work with the web-based installer. Matrix is not designed to be used on a system that has no shell access – even the web-based installation system no longer works with the newer version, you have to use the command-line (i.e. shell-based) installation scripts.


I'm afraid that unless you get SSH access, you're probably not going to be able to install Matrix successfully.

[quote]I’m pretty sure this isn’t going to work with the web-based installer. Matrix is not designed to be used on a system that has no shell access – even the web-based installation system no longer works with the newer version, you have to use the command-line (i.e. shell-based) installation scripts.


I’m afraid that unless you get SSH access, you’re probably not going to be able to install Matrix successfully.

[right][post=“8972”]<{POST_SNAPBACK}>[/post][/right][/quote]



Any reason why on the off chance he could not try to write a small script which allows him to run a shell_exec in php? http://au3.php.net/shell_exec



Atleast matrix would be owned by his user, and have correct permissions… all he would need is something like http://au3.php.net/shell_exec to access the postgres DB to create it and possible add users, which he should be able to do if the ISP is using something like cpanel etc?

[quote]Any reason why on the off chance he could not try to write a small script which allows him to run a shell_exec in php? http://au3.php.net/shell_exec
[right][post=“9051”]<{POST_SNAPBACK}>[/post][/right][/quote]



My concern is that safe_mode would be enabled on a shared host, which would prevent this command from running. Also, the command line script may take longer than the default Apache/PHP timeout, which could cause the script to fail.

[quote]My concern is that safe_mode would be enabled on a shared host, which would prevent this command from running. Also, the command line script may take longer than the default Apache/PHP timeout, which could cause the script to fail.
[right][post=“9053”]<{POST_SNAPBACK}>[/post][/right][/quote]



I agree about the safe mode, and if this is enabled there is not much the user can do unless go looking for another host…



The script execution could be set by the script and increased.



If safe mode not enabled, there is also the passthru funtion which pipes the results back to the script as they happen, so you would also be returning something to the screen which also helps in script stoppage…



I use this when I run a smb copy for some automated processes I run to local mirror our current websites from one network machine to another… works a treat.

The irony is that there are plenty of functions that could take the place of direct shell access but in circumstances where shell access is not available, neither are these functions. :slight_smile: