Avatar of bogorman
bogorman asked on

Error when running PHPMyAdmin (MAMP)

After using MAMP for over a year, I suddenly get the error when trying to run PHPMyAdmin:

Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.

Have checked php_error.log   The last lines are:

[22-Jan-2011 18:44:26] PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/Applications/MAMP/tmp/php) in Unknown on line 0
[22-Jan-2011 18:46:57] PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: open(/Applications/MAMP/tmp/php/sess_cc05e4eafda929edae67de499df04552b6851f89, O_RDWR) failed: No such file or directory (2) in /Applications/MAMP/bin/phpMyAdmin/libraries/session.inc.php on line 87
[22-Jan-2011 18:46:57] PHP Warning:  Unknown: open(/Applications/MAMP/tmp/php/sess_cc05e4eafda929edae67de499df04552b6851f89, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
[22-Jan-2011 18:46:57] PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/Applications/MAMP/tmp/php) in Unknown on line 0
[22-Jan-2011 19:00:00] PHP Notice:  Trying to get property of non-object in /Applications/MAMP/htdocs/drupal/includes/common.inc on line 906
[22-Jan-2011 19:00:00] PHP Notice:  Trying to get property of non-object in /Applications/MAMP/htdocs/drupal/includes/common.inc on line 906
[22-Jan-2011 19:00:00] PHP Notice:  Trying to get property of non-object in /Applications/MAMP/htdocs/drupal/includes/common.inc on line 906

in the Applications/MAMP/tmp/ directory there is no php directory, only eaccelerator and mysql directories.

How can I solve this problem?
Web Development

Avatar of undefined
Last Comment
stephencolson

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
stephencolson

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
bogorman

Hi Stephen,
Works perfectly (or seems to) when I just create the new php directory. Thanks so much.
Have not created the phpcore directory. Is this necessary?
Brian
stephencolson

It is only necessary if php (not your scripts, but php itself) dies unexpectedly. Even then, missing the coredump directory will be the least of MAMPs concerns at that point. I'd recommend you add it if only because it is part of the standard MAMP install, but don't worry about it too much.
Your help has saved me hundreds of hours of internet surfing.
fblack61