Forum Moderators: coopster

Message Too Old, No Replies

Problem setting up phpMyAdmin

         

dainstructor

2:51 pm on Dec 8, 2006 (gmt 0)

10+ Year Member



I've installed phpMyAdmin on my machine and i've run into a problem that I can't figure out. Upon completing installation I attempted to view the phpMyAdmin page and recieved the error:

-------------------------------------------------------------------
Warning: session_write_close() [function.session-write-close]: open(C:WINDOWS\Temp\sess_9ea761bc720ae9625621e25bf279d8f9, O_RDWR) failed: No such file or directory (2) in C:\htdocs\phpMyAdmin\index.php on line 44

Warning: session_write_close() [function.session-write-close]: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:WINDOWS\Temp) in C:\htdocs\phpMyAdmin\index.php on line 44

Warning: Cannot modify header information - headers already sent by (output started at C:\htdocs\phpMyAdmin\index.php:44) in C:\htdocs\phpMyAdmin\index.php on line 101
---------------------------------------------------------------------

I thought about going to my WINDOWS\Temp folders and manually creating these folders\files but I feel that there is probably a larger problem here.
Any ideas?

Thanks in advance.

mikesmith76

7:13 pm on Dec 8, 2006 (gmt 0)

10+ Year Member



Does C:\Windows\Temp exist? If so does PHP have write permissions to it. Looks like it is struggling writing the session data files to that area

dainstructor

7:51 pm on Dec 8, 2006 (gmt 0)

10+ Year Member



Ummm.

There's no C:\WINDOWS\Temp but there is a C:\WINNT\Temp. I created a C:\WINDOWS\Temp and ran the URL again just to see what happens, and the admin screen comes up but I have an error on the page that says - Invalid Server Index: ""

dainstructor

3:22 pm on Dec 11, 2006 (gmt 0)

10+ Year Member



I'm currently in communication with the author of a rencent php book I purchased. He's attempting to help me out. If we manage to work out the solution I will post it here as to help anyone who may also be experiencing this problem as well.

In the meantime, if anyone has any ideas I am still very much open to suggestions.

Thanks

dainstructor

6:05 pm on Dec 11, 2006 (gmt 0)

10+ Year Member



Just in case anyone else has experienced this problem.

---------------------------------------------------------------
If phpinfo() says that the configuration file is in the correct location, you have a different problem from gabodeponce. I presume it means you get the "can't load mysqli" error.

If so, check that the following lines are in php.ini (they mustn't have a semicolon at the beginning of the line):
extension=php_mbstring.dll
extension=php_mysql.dll
extension=php_mysqli.dll
If they're there, scroll down the page displayed by phpinfo(). Are mysql and mysqli listed? If so, what is the Client API version number. If it's less than 5, do you have a MySQL graphical interface like Navicat installed? If so, copy libmysql.dll from the C:\php5 folder to C:\WINNT\system32 and restart your computer.
------------------------------------------------------------------

Doing this helped me fix the problem.

Hope this can help someone.