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

  • SEARCH
  • Home
  • 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 6910351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:48:12+00:00 2026-05-27T08:48:12+00:00

When trying to upgrade MAMP pear the following error is raised: Notice: unserialize(): Error

  • 0

When trying to upgrade MAMP pear the following error is raised:

Notice: unserialize(): Error at offset 276 of 1133 bytes in Config.php on line 1050
ERROR: The default config file is not a valid config file or is corrupted.

Some suggestions how to fix this?

Steps to reproduce:

  • Installed MAMP (version 2.0.5)
  • cd /Applications/MAMP/bin/php/php5.3.6/bin
  • sudo ./pear upgrade pear
  • above mentioned error is thrown

Update (1):

Based on answer 8375349/420953 I tried 2 possibilities to fix this

  • A: delete pear.conf
    • rm /Applications/MAMP/bin/php/php5.3.6/conf/pear.conf
  • B: edit pear.conf
    • change “php_dir”;s:44 to “php_dir”;s:43

both resulted in error:

Could not get contents of package "/Applications/MAMP/bin/php/php5.3.6/bin/pear". Invalid tgz file.
upgrade failed

Update (2):

running

  • which pear

results in output

  • /usr/local/bin/pear

With this, I noticed that I was using the “local” version of PEAR.

I removed it with

  • sudo pear uninstall pear

and then tried to upgrade the MAMP version of PEAR with

  • /Applications/MAMP/bin/php/php5.3.6/bin/pear upgrade pear

this results in error

Cannot install, php_dir for channel "pear.php.net" is not writeable by the current user

upgrading with

  • sudo /Applications/MAMP/bin/php/php5.3.6/bin/pear upgrade pear

installs it locally (again).

running

  • which pear

outputs

  • /usr/local/bin/pear

this brings me back to the starting point of Update (2). Seems that I am not able to upgrade PEAR under a MAMP directory.

Update (3):

I posted question

  • MAMP PEAR configuration is pointing to local directories

because my assumption is that the root of this issue is related to MAMP PEAR config.

Update (4):

I did not install a local PEAR version and this was causing quite some issues. After also installing a local version (and not only the MAMP) version, upgarding the MAMP version worked perfectly.

  • 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-27T08:48:13+00:00Added an answer on May 27, 2026 at 8:48 am

    People with the your exact problem seem to has solved it in this MAMP forum thread.

    You can either delete /Applications/MAMP/bin/php/php5.3.6/conf/pear.conf, or change a line in that file from "php_dir";s:44 to "php_dir";s:43.

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

Sidebar

Related Questions

I don't use php or mysql but I am trying to upgrade a phpbb
Basically I'm trying to upgrade my application, and to my understanding the following should
I'm trying to upgrade from jquery 1.4.2 to 1.5.1 and I'm getting the following
I'm trying to upgrade an app ( Clarke ) to provide 10.6 compatibility. My
I am trying to upgrade to cedar / asset pipeline and am stuggling with
I'm trying to upgrade from Hibernate 3.6.5 to 4.0 (and from Spring 3.0.5 to
I'm trying to upgrade the version of my birt-viewer on my Tomcat server, but
I'm trying to upgrade Joomla Version 1.5.20 to Joomla Version 2.5.4. I've upgraded other
I'm using read/write locks on Linux and I've found that trying to upgrade a
I've been trying to use smart pointers to upgrade an existing app, and I'm

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.