Xampp phpMyAdmin Problem

Sat, Feb 23, 2008

Server

I started XAMPP today and tried to open phpMyAdmin (http://localhost/phpmyadmin/) in my browser in order to do some database management. Unfortunately I was presented with the following error message :

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

After playing around a bit, managed to figure out that there was a problem with the way PHP sessions are saved. Because of new security measurements in the Mac OS Leopard operating system, there was no way for PHP to save sessions. So I edited the PHP configuration file and uncommented the line which specifies the path where sessions logs are saved. Here comes the solution. This is for Mac OS X.

Open up "/Applications/xampp/etc/php.ini" with Textedit or any other text editor for that matter. Search for the phrase "session.save_path" or simply just go immediately to line #839 where this is located. You’ll see :

;session.save_path = /tmp

Now uncomment it by making it :

session.save_path = /tmp

And that’s it! Restart XAMPP by clicking the "Restart" button. You really just need to restart PHP for that matter so that the new configuration values can be loaded. Good luck!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • LinkedIn
  • Live
  • Ping.fm
  • StumbleUpon
  • Print
  • Reddit
  • TwitThis
, , , , , ,
scriptlancebannerpng

This post was written by:

Antonie Potgieter - who has written 52 posts on Lost-In-Code.

I (Antonie Potgieter) am a software engineer/web developer located in South Africa. My full-time work is the management of Tribulant Software and the development of its software packages.

Contact the author

3 Comments For This Post

  1. Malcolm Says:

    Many thanks for the solution. Saved an anxious few moments!

  2. John Says:

    Interestingly enough, I was getting the same error

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

    with XAMPP in OSX 10.4 when trying to access phpmyadmin. Line #839 was not commented for me, and when I commented it out phpmyadmin opened successfully. Thanks for the tip, as partially inadvertent as it might have been!

  3. Application Performance Management Software Says:

    Thank you for posting the solution! I came upon the same problem and needed a fix for it.

1 Trackbacks For This Post

  1. betweenGo » phpMyAdmin not starting Says:

    [...] that I had an error message to work with I googled around and found this post, Xampp phpMyAdmin Problem, which helped me diagnose the [...]

Leave a Reply