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
ASKER CERTIFIED SOLUTION
Avatar of stephencolson
stephencolson
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of bogorman
bogorman

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
Avatar of stephencolson
stephencolson
Flag of United States of America image

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.
Web Development
Web Development

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.

77K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo