z3phir Posted July 9, 2013 Report Share Posted July 9, 2013 add pear to uniserver zero Quote Link to comment Share on other sites More sharing options...
Ric Posted August 10, 2013 Report Share Posted August 10, 2013 I have had several requests how to install go-pear on Uniform Server Zero. The following provides detailed instruction: Apache and PHP (modules) configuration files have been pre-configured all that is required is to run the go-pear installer. 1) Create a new folder us_pear in folder UniServerZ\home.2) Download the file from http://pear.php.net/go-pear and save it as go-pear.php3) Save this in folder UniServerZ\home\us_pear (created in step 1) Note: Running go-pear.php generates a long list of depreciated warning. These are suppressed using an htaccess file. The htaccess file will also be used for restricting access to localhost only. 4) Copy the .htacces from folder www into folder UniServerZ\home\us_pear (Windows makes it difficult to create a file named .htaccess hence the copy)5) Edit this copied file and delete all it’s content and add the following lines: Order Deny,Allow Deny from all Allow from 127.0.0.1 php_flag display_errors 22527 Note: php_flag display_errors 22527 is the same as setting Error_reporting = E_ALL & ~E_DEPRECATED in php.ini 6) Start Uniform Server Zero. Start Apache7) Type the following into your browser: http://localhost/us_pear/go-pear.php8) Welcome to go-pear 1.1.6 displayed. Click next, Configuration page displayed click Install9) Wait for "Installation Completed" to be displayed. Note: Clicking "Start Web Frontend of the PEAR Installer" will produce a 404 Not Found10) The URL http://localhost/us_pear/\index.php is incorrect change this to http://localhost/us_pear/index.php11) The above highlights another error: Can not find config file, please specify the $pear_user_config variable in /us_pear/index.php12) To resolve the above edit file UniServerZ\home\us_pear\index.php Change the following section: /** * Put this file in a web-accessible directory as index.php (or similar) * and point your webbrowser to it. */ // $pear_dir must point to a valid PEAR install (=contains PEAR.php) $pear_dir = 'C:\UniServerZ\home\us_pear/PEAR'; // default of install // OPTIONAL: If you have a config file at a non-standard location, // uncomment and supply it here: //$pear_user_config = ''; // OPTIONAL: If you have protected this webfrontend with a password in a // custom way, then uncomment to disable the 'not protected' warning: //$pear_frontweb_protected = true; To: /** * Put this file in a web-accessible directory as index.php (or similar) * and point your webbrowser to it. */ $us_path = realpath('.'); // Determine full path to this file portability // $pear_dir must point to a valid PEAR install (=contains PEAR.php) $pear_dir = $us_path.'\PEAR'; // default of install // OPTIONAL: If you have a config file at a non-standard location, // uncomment and supply it here: $pear_user_config = $us_path.'\pear.conf'; // OPTIONAL: If you have protected this webfrontend with a password in a // custom way, then uncomment to disable the 'not protected' warning: $pear_frontweb_protected = true; 13) Now re-enter the url: http://localhost/us_pear/index.php and the web-front end is displayed. 14) From the left menu click Configuration link15) Change PEAR configuration file directory: from C:\php\pear\cfg to C:\UniServerZ\home\us_pear Note: Although the above is not portable you can use the Configuration link and change paths accordingly also remember to change the PHP version selected in the apropriate path. In about two weeks will release a module to fully support Pear All the bestRic Quote Link to comment Share on other sites More sharing options...
Ric Posted August 16, 2013 Report Share Posted August 16, 2013 Starting with Zero_10_2_2 support for Pear is included via a downloadable module.Installing this module enables a menu option “View Pear FrontEnd” in the PHP drop-down menu. All the bestRic 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.