This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Install: can't get by step 1! (PEAR on XAMPP)

Installation and environment issues, mainly on 1.x but there's some 2.x here too.

Install: can't get by step 1! (PEAR on XAMPP)

by randallemery » Sat Nov 12, 2005 7:43 pm

I am attempting to complete step 1 of the Symphony install (pear update pear), and I keep running into a really weird problem: the update command screws up my pear config! I am working with pear for the first time, so maybe this is just inexperience, but looking at this forum, I was wondering if some of the other XAMPP/PEAR issues might be related to this, too.

When I first install PEAR (via XAMPP install), the "pear config-show" command gives the following:
Code: Select all
CONFIGURATION (CHANNEL PEAR.PHP.NET):
=====================================
Auto-discover new Channels     auto_discover    <not set>
Default Channel                default_channel  pear.php.net
HTTP Proxy Server Address      http_proxy       <not set>
PEAR server [DEPRECATED]       master_server    pear.php.net
Default Channel Mirror         preferred_mirror pear.php.net
Remote Configuration File      remote_config    <not set>
PEAR executables directory     bin_dir          C:\Program Files\xampp\php
PEAR documentation directory   doc_dir          C:\Program
                                                Files\xampp\php\pear\docs
PHP extension directory        ext_dir          C:\Program Files\xampp\php\ext
PEAR directory                 php_dir          C:\Program Files\xampp\php\pear
PEAR Installer cache directory cache_dir        C:\Program Files\xampp\tmp
PEAR data directory            data_dir         C:\Program
                                                Files\xampp\php\pear\data
PHP CLI/CGI binary             php_bin          C:\Program Files\xampp\php\php.exe
PEAR test directory            test_dir         C:\Program
                                                Files\xampp\php\pear\tests
Cache TimeToLive               cache_ttl        3600
Preferred Package State        preferred_state  stable
Unix file mask                 umask            0
Debug Log Level                verbose          1
PEAR password (for             password         <not set>
maintainers)
Signature Handling Program     sig_bin          c:\gnupg\gpg.exe
Signature Key Directory        sig_keydir       C:\Program Files\xampp\php\pearkeys
Signature Key Id               sig_keyid        <not set>
Package Signature Type         sig_type         gpg
PEAR username (for             username         <not set>
maintainers)
User Configuration File        Filename         C:\Program Files\xampp\php\pear.ini
System Configuration File      Filename         C:\Program
                                                Files\xampp\php\pearsys.ini

This is exactly how I expect it to look. I then do a "pear update-channels" command, which executes just fine, and does not affect the pear config. However, as soon as I execute the "pear update pear" command, the configuration is rewritten as follows:
Code: Select all
CONFIGURATION (CHANNEL PEAR.PHP.NET):
=====================================
Auto-discover new Channels     auto_discover    <not set>
Default Channel                default_channel  pear.php.net
HTTP Proxy Server Address      http_proxy       <not set>
PEAR server [DEPRECATED]       master_server    pear.php.net
Default Channel Mirror         preferred_mirror pear.php.net
Remote Configuration File      remote_config    <not set>
PEAR executables directory     bin_dir          C:\Program Files\xampp\php
PEAR documentation directory   doc_dir          C:\php5\pear\docs
PHP extension directory        ext_dir          C:\Program Files\xampp\php\ext\
PEAR directory                 php_dir          C:\Program Files\xampp\php\pear
PEAR Installer cache directory cache_dir        C:\WINDOWS\TEMP\pear\cache
PEAR data directory            data_dir         C:\php5\pear\data
PHP CLI/CGI binary             php_bin          C:\Program Files\xampp\php\php.exe
PEAR test directory            test_dir         C:\php5\pear\tests
Cache TimeToLive               cache_ttl        3600
Preferred Package State        preferred_state  stable
Unix file mask                 umask            0
Debug Log Level                verbose          1
PEAR password (for             password         <not set>
maintainers)
Signature Handling Program     sig_bin          c:\gnupg\gpg.exe
Signature Key Directory        sig_keydir       C:\WINDOWS\pearkeys
Signature Key Id               sig_keyid        <not set>
Package Signature Type         sig_type         gpg
PEAR username (for             username         <not set>
maintainers)
User Configuration File        Filename         C:\WINDOWS\pear.ini
System Configuration File      Filename         C:\WINDOWS\pearsys.ini

I have no idea what is going on here or how to fix it. If I try to upgrade and/or install other packages at this point, they get installed all over the place.. Can anyone help? This is really driving my nuts...
randallemery
Member
 
Posts: 35
Joined: Sat Nov 12, 2005 7:29 pm

Got by step 1! (resolution to changing PEAR configuration)

by randallemery » Tue Nov 15, 2005 4:28 pm

I was able to correct this problem with the following commands:

Code: Select all
pear config-set doc_dir “C:\Program Files\xampp\php\pear\docs”
pear config-set cache_dir “C:\Program Files\xampp\tmp”
pear config-set data_dir “C:\Program Files\xampp\php\pear\data”
pear config-set test_dir “C:\Program Files\xampp\php\pear\tests”
pear config-set sig_keydir “C:\Program Files\xampp\php\pearkeys”


I still really have no idea why this happened, but it only seemed to occur when updating the core PEAR package (a follow-up "pear upgrade-all" command worked OK). Some web searches on "pear.ini" and "pearsys.ini" shed a bit of light, but I didn't find anything that directly addressed this issue. I guess whenever you upgrade the core PEAR package, you need to check the configuration and correct it if it gets corrupted. If anyone can clear this up, please jump in.

I also found a conflict from a previous apache install with FoxServ that may have been affecting the PEAR install. Since different apache can be installed in different locations successfully, I didn't suspect this at first, but an older version of apache was running as a service.

To fix this problem, I uninstalled XAMPP, deleted the old verstions of apache and mysql, and before reinstalling XAMPP, issued the following commands in a command line window to remove the old services:

Code: Select all
sc delete apache
sc delete apache2
sc delete mysql


I hope documenting the solution helps other people who have the same problem.
randallemery
Member
 
Posts: 35
Joined: Sat Nov 12, 2005 7:29 pm