Admin Panel 2: Install Pear
Admin Panel 2 |
Install Pear
This link allows you to install Pear it opens the go-pear installer note for installation it requires an Internet connection. You can check out the installer and its recommended file structure for your installation, it will not perform an installation until you press install.
Pear has a small problem (original version) see note at the end of this page.
{28-10-2007} Known problems see end of page.
{02-04-2009} You can download the working go_pear.php content at this url
http://pear.php.net/go-pear
Just copy and replace the content of the home\admin\www\plugins\pear\go_pear.php file.
Full pear version
To install the full version of pear (includes MDB2) just follow the instructions.
You will see something similar to this:
Starting installation ... Loading zlib: ok Downloading package: PEAR-stable......ok Downloading package: Archive_Tar-stable....ok Downloading package: Console_Getopt-stable....ok Downloading package: Structures_Graph-stable....ok Downloading package: HTML_Template_IT-stable....ok Downloading package: Net_UserAgent_Detect-stable....ok Downloading package: PEAR_Frontend_Web-alpha....ok Bootstrapping: PEAR...................(remote) ok Bootstrapping: Archive_Tar............(remote) ok Bootstrapping: Console_Getopt.........(remote) ok Downloading package: MDB2.............ok Extracting installer..................ok warning: 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.1 install ok: channel://pear.php.net/Archive_Tar-1.3.2 install ok: channel://pear.php.net/Console_Getopt-1.2.3 install ok: channel://pear.php.net/Structures_Graph-1.0.2 install ok: channel://pear.php.net/HTML_Template_IT-1.2.1 install ok: channel://pear.php.net/Net_UserAgent_Detect-2.3.0 install ok: channel://pear.php.net/PEAR_Frontend_Web-0.6.1 install ok: channel://pear.php.net/MDB2-2.4.1 MDB2: Optional feature fbsql available (Frontbase SQL driver for MDB2) MDB2: Optional feature ibase available (Interbase/Firebird driver for MDB2) MDB2: Optional feature mysql available (MySQL driver for MDB2) MDB2: Optional feature mysqli available (MySQLi driver for MDB2) MDB2: Optional feature mssql available (MS SQL Server driver for MDB2) MDB2: Optional feature oci8 available (Oracle driver for MDB2) MDB2: Optional feature pgsql available (PostgreSQL driver for MDB2) MDB2: Optional feature querysim available (Querysim driver for MDB2) MDB2: Optional feature sqlite available (SQLite2 driver for MDB2) MDB2: To install optional features use "pear install pear/MDB2#featurename" Writing WebFrontend file ... Note: To use PEAR without any problems you need to add your PEAR 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 solutions for Apache running servers, too. For more information about PEAR, see: PEAR FAQ PEAR Manual Thanks for using go-pear! Start Web Frontend of the PEAR Installer >>
Frontend Problem
Note: Start Web Frontend of the PEAR Installer. When this link is clicked it incorrectly displays this:
http://localhost/apanel/plugins/pear/%5Cindex.php
Change it to:
http://localhost/apanel/plugins/pear/index.php
Known Problems {28-10-2007}
A new implementation of GoPear seems to be broken at the Pear end. This causes the original version on UniServer to hang. If you download and run the new version of GoPear this also hangs.
If you experience a problem try this workaround first:
- Install a new version of 3.5-Apollo
- From apanel click on Install Pear
- Click Next
- Remove W: from the paths (prevents Pear hanging)
The paths look like this:
1. Installation prefix: \home\admin\www\plugins\pear
11. php.exe path, optional (CLI command tools): \home\admin\www\plugins\pear\ - Click Install
The install should be relatively fast, ignore any errors and the need to change paths (no need already set-up).
Update the Channel Management system
Type the following into your browser: http://localhost/apanel/plugins/pear/index.php
This will bring up the Pear front-end allowing you to download modules.
Note: Before downloading any package update the Channel Management system
- To the left click on Channel Management
- Then click on Update All Channels
You will receive something like this:
- Updating channel "pear.php.net"
- Update of Channel "pear.php.net" succeeded
- Updating channel "pecl.php.net"
- Update of Channel "pecl.php.net" succeeded
Downloading modules
You are now ready to install packages just follow these steps for each package: For example package HTML
- Click on Package Search
- In Package name enter HTML (after a relatively long time a list will be displayed)
- Find pear.php.net HTML_Common and click on the green plus image.
- That’s it the package will be installed.
Note 1: Packages are loaded into folder: *\Uniform Server\udrive\usr\local\php\pear
Note 2: PHP.ini does not need changing the default paths are correct.
The above is the quickest workaround I could think off, it’s a shame default set of packages are not automatically downloaded. You need to install every package separately.
Final thought
GoPear is periodically updated so it is worth downloading the new version to see if the bugs have been fixed.
Check out this forum page gives you a blow-by-blow account of this problem.
Ric |