PdV Posted June 8, 2007 Report Share Posted June 8, 2007 Hi everyone, I've always like the concept behind PEAR and have tried several times in the past to install it, but have never had any success. There has always been an error of some sort during the installation, and I've never really been interested enough to spend hours digging to find the reasons behind the failures, and what forum topics I have uncovered on the subject tend to go way over my head. So, as there is a menu option within the server to install PEAR, and spurred on by the fact that pretty much everything included with the server seems to work without any tinkering under the bonnet, I optimistically took the option and attempted to install PEAR. Well, again, the installation fell over in a big heap with the following errors: Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in W:\home\admin\www\plugins\pear\go_pear.php on line 89Starting installation ...Loading zlib: okDownloading package: PEAR-stable......okDownloading package: Archive_Tar-stable....okDownloading package: Console_Getopt-stable....Fatal error: Maximum execution time of 300 seconds exceeded in W:\home\admin\www\plugins\pear\go_pear.php on line 953 Warning: unlink(C:\DOCUME~1\valmep\LOCALS~1\Temp/gop6.tmp\Console_Getopt-stable) [function.unlink]: Permission denied in W:\home\admin\www\plugins\pear\go_pear.php on line 1085 Warning: rmdir(C:\DOCUME~1\valmep\LOCALS~1\Temp/gop6.tmp) [function.rmdir]: Directory not empty in W:\home\admin\www\plugins\pear\go_pear.php on line 1092 So, anyone ever get this darned thing to install without having to go to PHP and WebDev University? Regards,Paul. Quote Link to comment Share on other sites More sharing options...
Ric Posted June 8, 2007 Report Share Posted June 8, 2007 I am not sure if it was the intentional but I believe the go_pear.php file is an old version: Old:Welcome to go-pear 0.5.0! $Id: go-pear,v 1.77 2005/09/15 23:52:42 cellog Exp $ New:Welcome to go-pear 0.6.0! $Id: go-pear,v 1.105 2007/05/25 20:29:54 cellog Exp $ I download a new version from http://go-pear.org/ this is a text file save is as go_pear.php and place it in folder: *Uniform Server\udrive\home\admin\www\plugins\pear Run the server and plugin script; at configuration do not change any parameters just click install. You will receive the following during the install process: Starting installation ...Loading zlib: okDownloading package: PEAR-stable......okDownloading package: Archive_Tar-stable....okDownloading package: Console_Getopt-stable....okDownloading package: Structures_Graph-stable....okDownloading package: HTML_Template_IT-stable....okDownloading package: Net_UserAgent_Detect-stable....okDownloading package: PEAR_Frontend_Web-alpha....okBootstrapping: PEAR...................(remote) okBootstrapping: Archive_Tar............(remote) okBootstrapping: Console_Getopt.........(remote) okExtracting installer..................okwarning: pear/PEAR requires package "pear/Archive_Tar" (version >= 1.3.1)warning: pear/PEAR requires package "pear/Console_Getopt" (version >= 1.2)warning: pear/PEAR requires package "pear/Structures_Graph" (version >= 1.0.2)pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0)pear/PEAR can optionally use package "pear/PEAR_Frontend_Web" (version >= 0.5.0)pear/PEAR can optionally use package "pear/PEAR_Frontend_Gtk" (version >= 0.4.0)install ok: channel://pear.php.net/PEAR-1.6.0install ok: channel://pear.php.net/Archive_Tar-1.3.2install ok: channel://pear.php.net/Console_Getopt-1.2.2install ok: channel://pear.php.net/Structures_Graph-1.0.2install ok: channel://pear.php.net/HTML_Template_IT-1.2.1install ok: channel://pear.php.net/Net_UserAgent_Detect-2.3.0install ok: channel://pear.php.net/PEAR_Frontend_Web-0.6.1Writing WebFrontend file ... Note: To use PEAR without any problems you need to add yourPEAR Installation path (W:\home\admin\www\plugins\pear/PEAR)to your include_path. Using a .htaccess file or directly edit httpd.conf would be working solutionsfor Apache running servers, too. For more information about PEAR, see:PEAR FAQPEAR Manual Thanks for using go-pear! Start Web Frontend of the PEAR Installer >> Note: I found the link Start Web Frontend is incorrect: http://localhost/apanel/plugins/pear/%5Cindex.phpChange it to this:http://localhost/apanel/plugins/pear/index.php It installs I have not had time to check it out. Hope that helps you can test a few function to see if the installation works! Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted June 8, 2007 Report Share Posted June 8, 2007 Oooo.. I knew i missed one thing, Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
PdV Posted June 8, 2007 Author Report Share Posted June 8, 2007 Cheers Ric, I'll give it a go and let you know what happens! Regards,Paul. Quote Link to comment Share on other sites More sharing options...
PdV Posted June 11, 2007 Author Report Share Posted June 11, 2007 Hi Ric, I downloaded the new go-pear.php file and ran it as you suggested. I now get the following: Starting installation ...Loading zlib: okDownloading package: PEAR-stable......okDownloading package: Archive_Tar-stable....okDownloading package: Console_Getopt-stable....Fatal error: Maximum execution time of 300 seconds exceeded in W:\home\admin\www\plugins\pear\go-pear.php on line 1083 Warning: unlink(W:\home\admin\www\plugins\pear/temp/gop11.tmp\Console_Getopt-stable) [function.unlink]: Permission denied in W:\home\admin\www\plugins\pear\go-pear.php on line 1216 Warning: rmdir(W:\home\admin\www\plugins\pear/temp/gop11.tmp) [function.rmdir]: Directory not empty in W:\home\admin\www\plugins\pear\go-pear.php on line 1223 I've tried a coupd of times now and it always keels over at the smae point. I upped the timeout from 30 to 300, but it still stops. Maybe it's the time of day? i.e. perhaps the server is very busy? I'll try again this evening to see if that makes any difference. Cheers,Paul. Quote Link to comment Share on other sites More sharing options...
Ric Posted June 11, 2007 Report Share Posted June 11, 2007 Hi Paul I must confess I did not install the full version of pear I excluded MDB2 However when I installed the full version I received two errors messages.The timing error you received, after correcting this I then received a memory size error. I fixed these by doubling the time and memory size not scientific but works. Note after you make the changes restart both your browser and server then try the installation again. 1) Open the file you downloaded: go_pear.phpLocation: *\Uniform Server\udrive\home\admin\www\plugins\pear Line 264 change 300 to 600 Code snippet: if (!isset($_SESSION['go-pear']) || isset($_GET['restart'])) { $_SESSION['go-pear'] = array( 'http_proxy' => $http_proxy, 'config' => array( 'prefix' => dirname(__FILE__), 'bin_dir' => $bin_dir, 'php_bin' => $php_bin, 'php_dir' => '$prefix/PEAR', 'doc_dir' => $doc_dir, 'data_dir' => $data_dir, 'test_dir' => $test_dir, 'temp_dir' => '$prefix/temp', 'cache_dir' => '$php_dir/cache', 'cache_ttl' => 600, 'webfrontend_file' => '$prefix/index.php', ), 'install_pfc' => true, 'DHTML' => true, ); } 2) From apanel select PHP configuration Change Maximum Memory Amount (MB): from 8M to 16M 3) Restart both browser and UniServer and reinstall go-pear All the bestRic Quote Link to comment Share on other sites More sharing options...
Ric Posted June 12, 2007 Report Share Posted June 12, 2007 For completeness I thought I would mention two other points: 1) At the end of the installation our are recommended to change the path Note: To use PEAR without any problems you need to add yourPEAR Installation path (W:\home\admin\www\plugins\pear/PEAR)to your include_path. It’s not that clear hence I have included these instructions: Open file php.iniLocated *\Uniform Server\udrive\usr\local\php Navigate to line 439 and change it from: include_path = ".;/usr/local/PHP/includes;/usr/local/PHP/pear" To this: include_path = ".;/usr/local/PHP/includes;/usr/local/PHP/pear;/home/admin/www/plugins/pear/PEAR" Restart your server for the changes to take place 2) When downloading pear packages some will exceed the Maximum Script Execute Time of 30s increase this to 180s Change this from Apanel using the PHP configuration link. Restart your server for the changes to take place Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted June 12, 2007 Report Share Posted June 12, 2007 Ric can you add this to the post in the Beta Forum... for fixing. Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
Ric Posted June 12, 2007 Report Share Posted June 12, 2007 Hi OlajideYep no problem .... done. I have also added a page on UniCenter that guides users through it as an interim solution: http://center.uniformserver.com/us_34/us34...stall_pear.html This is one page from a guide I have just published. The structure I hope will make it easy to convert to 3.5. Not intended for experts, I feel the structure looks right. Well if any one is bored with TV why not be bored even further and read this guide starts at page http://center.uniformserver.com/us_34/us34_intro_1.html Well I am off for a beer catch you latter. All the bestRic Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted June 12, 2007 Report Share Posted June 12, 2007 Thanks Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
PabloVeliz Posted June 15, 2007 Report Share Posted June 15, 2007 I have done it in a quite different approach:go to http://127.0.0.1/apanel , click on [*]changed Maximum Script Execute Time (s.): from 30 to [b]300[/b] [*]changed Maximum Memory Amount (MB): from 8M to [b]128M[/b] [*]click [save][*][b]restart[/b] the server[*]download http://go-pear.org/ and save it on [b]\udrive\home\admin\www\plugins\pear\go_pear.php[/b]I use [code]wget http://go-pear.org/ -O w:\udrive\home\admin\www\plugins\pear\go_pear.php[/code]go to http://localhost/apanel/plugins/pear/go_pear.php click on [Next>>] change Installation prefix to [b]W:\usr\local\php[/b] change php.exe path, optional to [b]W:\usr\local\php[/b] optionally check Install those too on the MDB2 checkbox click [[b]install[/b]]wait..... move [b]W:\usr\local\php\index.php[/b] to [b]W:\udrive\home\admin\www\plugins\pear\[/b]go to http://localhost/apanel/plugins/pear/There you go.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.