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!

, , , , , ,
custom-fields-widejpg

This post was written by:

- who has written 71 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

10 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.

  4. Alexei Says:

    Thank you for the solution! I already had this line uncommented. What I did to solve the issue is that I deleted ALL files from \tmp folder and it solved the problem :)

  5. mrNewt Says:

    Alternately, you can just remove the content under the tmp/ folder.
    That will fix your problem as well – no need to modify the php.ini file if the “session.save_path” line is not a comment.

  6. bayilik Says:

    We entered to a program as Bayilik Franchise Software. This infos gave help us for improve our program. We will send our program for your recommend.

  7. Tijal Says:

    Please can you proffer solution to this error while trying to run an application “Your sessions cannot be saved to “/tmp”
    Please make sure that directory is writable by the webserver
    This can be edited in “config.php” : session_save_path
    Smarty cannot write to “/tmp”
    Please make sure that directory is writable by the webserver
    This can be edited in “config.php” : template_cache_dir”

  8. utk Says:

    The additional features for working with linked tables have been deactivated. To find out why click here.

    $cfg['Servers'][$i]['tracking'] … not OK [ Documentation ]
    Tracking: Disabled

  9. utk Says:

    The additional features for working with linked tables have been deactivated. To find out why click here.

    $cfg['Servers'][$i]['tracking'] … not OK [ Documentation ]
    Tracking: Disabled

  10. utk Says:

    problem in phpmyadmin in istalling joomla

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