Link to home
Create AccountLog in
Web Development

Web Development

--

Questions

--

Followers

Top Experts

Avatar of bogorman
bogorman

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?

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


ASKER CERTIFIED SOLUTION
Avatar of stephencolsonstephencolson🇺🇸

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of bogormanbogorman

ASKER

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

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.

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.

Web Development

Web Development

--

Questions

--

Followers

Top Experts

Web development includes all aspects of presenting content on intranets and the Internet, including delivery development, protocols, languages and standards, server software, browser clients, databases and multimedia generation.