Jump to content


Photo

add pear to uniserver zero


  • Please log in to reply
2 replies to this topic

#1 z3phir

z3phir

    Newbie

  • Member
  • Pip
  • 1 posts
  • Main OS: Windows 7

Posted 09 July 2013 - 08:08 AM

add pear to uniserver zero

#2 Ric

Ric

    Project Manager

  • Admin
  • PipPipPipPipPip
  • 1,535 posts
  • Gender:Male
  • Location:Cambridge,UK
  • Interests:Electronics
    Internet in general
    Open source projects
  • SourceForge IDmpgcan
  • Wiki ID: Ric
  • Main OS: Windows XP

Posted 10 August 2013 - 05:41 PM

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.php
3) 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 Apache
7) Type the following into your browser: http://localhost/us_pear/go-pear.php
8) Welcome to go-pear 1.1.6 displayed. Click next, Configuration page displayed click Install
9) Wait for "Installation Completed" to be displayed. Note: Clicking "Start Web Frontend of the PEAR Installer" will produce a 404 Not Found
10) The URL http://localhost/us_pear/\index.php is incorrect change this to http://localhost/us_pear/index.php
11) The above highlights another error: Can not find config file, please specify the $pear_user_config variable in /us_pear/index.php
12) 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 link
15) 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 best
Ric

#3 Ric

Ric

    Project Manager

  • Admin
  • PipPipPipPipPip
  • 1,535 posts
  • Gender:Male
  • Location:Cambridge,UK
  • Interests:Electronics
    Internet in general
    Open source projects
  • SourceForge IDmpgcan
  • Wiki ID: Ric
  • Main OS: Windows XP

Posted 16 August 2013 - 08:57 AM

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 best
Ric




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users