Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6120733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:42:08+00:00 2026-05-23T15:42:08+00:00

I know there are several threads on this already, but I’ve hit a brick

  • 0

I know there are several threads on this already, but I’ve hit a brick wall and can’t find any threads with the same issue I now have. In a nutshell, my problem is that PEAR’s config is still set to the C:\Windows directory, where it always (correctly) fails due to permissions. I’ve added System environment variables as follows, so I don’t know why these seem to be getting ignored:

PHP_PEAR_BIN_DIR=C:\wamp\bin\php\php5.3.4
PHP_PEAR_DATA_DIR=C:\wamp\bin\php\php5.3.4\PEAR\data
PHP_PEAR_DOC_DIR=C:\wamp\bin\php\php5.3.4\PEAR\docs
PHP_PEAR_INSTALL_DIR=C:\wamp\bin\php\php5.3.4\pear
PHP_PEAR_PHP_BIN=C:\wamp\bin\php\php5.3.4\php.exe
PHP_PEAR_SYSCONF_DIR=C:\wamp\bin\php\php5.3.4
PHP_PEAR_TEST_DIR=C:\wamp\bin\php\php5.3.4\PEAR\tests

typical error is

C:\wamp\bin\php\php5.3.4>pear channel-discover pear.phpunit.de
PEAR_Config::writeConfigFile fopen('C:\Windows\pear.ini','w') failed (fopen(C:\Windows\pear.ini): failed to open stream:
 Permission denied)

My initial install commands were as follows:

php -d phar.require_hash=0 PEAR/go-pear.phar
pear channel-discover pear.phpunit.de
pear channel-discover components.ez.no
pear channel-discover pear.symfony-project.com
pear install phpunit/PHPUnit

I’ve tried removing the install and starting from scratch, but still no dice. Anyone have any ideas on this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:42:09+00:00Added an answer on May 23, 2026 at 3:42 pm

    Try to update your PEAR installation by requesting http://pear.php.net/go-pear.phar in your browser and save the output to a local file go-pear.phar; then run php go-pear.phar from the CLI. This will let you reconfigure the paths and IIRC it will also create a reg file you can simply doubleclick to import the environment variables.

    Also make sure to relog to your account when adding environment variables.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know there are several threads and posts regarding this issue in the internet
I know there have been a few threads on this before, but I have
I know that there are several threads posted about this issue, however I believe
I know there is several threads on this topic. I see a lot of
I know there are several libraries to connect to XMPP servers, but is there
I know there are several plugins that do asynchronous processing. Which one is the
I know there are several ways to deploy a .net windows client application: There's
I know it is easy to recommend several cross platform libraries. However, are there
I know there is a registry key indicating the install directory, but I don't
I know there are a lot of positive things mod-rewrite accomplishes. But are there

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.