New Installation phpMySqlAdmin not working php errors

Alles, was PHP betrifft, kann hier besprochen werden.

New Installation phpMySqlAdmin not working php errors

Postby newdejavu » 20. May 2008 02:21

I just install XAMPP.

I went to http://localhost/xampp/ and clicked on phpmysqladmin. I got the following error:

phpMyAdmin - Error
Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.

It appears to not to be able to start a session.

Does anyone know what I have to do to finish configuring php?

This is what I found in the error.log file:

Code: Select all
PHP/5.2.5 configured -- resuming normal operations
[Mon May 19 20:20:18 2008] [notice] Server built: Jan 18 2008 00:37:19
[Mon May 19 20:20:18 2008] [notice] Parent: Created child process 1688
[Mon May 19 20:20:20 2008] [notice] Child 1688: Child process is running
[Mon May 19 20:20:20 2008] [notice] Child 1688: Acquired the start mutex.
[Mon May 19 20:20:20 2008] [notice] Child 1688: Starting 250 worker threads.
[Mon May 19 20:20:20 2008] [notice] Child 1688: Starting thread to listen on port 443.
[Mon May 19 20:20:20 2008] [notice] Child 1688: Starting thread to listen on port 80.
[Mon May 19 20:22:13 2008] [error] [client 127.0.0.1] PHP Warning:  Variable passed to each() is not an array or object in C:\\xampp\\htdocs\\xampp\\head.php on line 27, referer: http://localhost/xampp/
[Mon May 19 20:24:40 2008] [error] [client 127.0.0.1] PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: open(C:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\php\\session\\sess_nn0p2a10bt57q5rmb9kvi991o0, O_RDWR) failed: No such file or directory (2) in C:\\xampp\\phpMyAdmin\\libraries\\session.inc.php on line 86, referer: http://localhost/xampp/navi.php
[Mon May 19 20:24:40 2008] [error] [client 127.0.0.1] PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: open(C:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\php\\session\\sess_tt6c33rkc4oq0p3l0jq979bqt0, O_RDWR) failed: No such file or directory (2) in C:\\xampp\\phpMyAdmin\\libraries\\session.inc.php on line 86, referer: http://localhost/xampp/navi.php
[Mon May 19 20:24:41 2008] [error] [client 127.0.0.1] PHP Warning:  Unknown: open(C:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\php\\session\\sess_tt6c33rkc4oq0p3l0jq979bqt0, O_RDWR) failed: No such file or directory (2) in Unknown on line 0, referer: http://localhost/xampp/navi.php
[Mon May 19 20:24:41 2008] [error] [client 127.0.0.1] PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\php\\session) in Unknown on line 0, referer: http://localhost/xampp/navi.php
[Mon May 19 20:24:41 2008] [error] [client 127.0.0.1] PHP Warning:  Unknown: open(C:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\php\\session\\sess_nn0p2a10bt57q5rmb9kvi991o0, O_RDWR) failed: No such file or directory (2) in Unknown on line 0, referer: http://localhost/xampp/navi.php
[Mon May 19 20:24:41 2008] [error] [client 127.0.0.1] PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\php\\session) in Unknown on line 0, referer: http://localhost/xampp/navi.php
[Mon May 19 20:25:13 2008] [error] [client 127.0.0.1] PHP Notice:  Undefined index:  text in C:\\xampp\\htdocs\\xampp\\ming.php on line 18, referer: http://localhost/xampp/navi.php
[Mon May 19 20:25:13 2008] [error] [client 127.0.0.1] PHP Fatal error:  Class 'SWFFont' not found in C:\\xampp\\htdocs\\xampp\\mingswf.php on line 19, referer: http://localhost/xampp/ming.php
[Mon May 19 20:25:14 2008] [error] [client 127.0.0.1] PHP Fatal error:  Class 'SWFFont' not found in C:\\xampp\\htdocs\\xampp\\mingswf.php on line 19, referer: http://localhost/xampp/ming.php
[Mon May 19 20:25:24 2008] [error] [client 127.0.0.1] PHP Notice:  Undefined index:  text in C:\\xampp\\htdocs\\xampp\\iart.php on line 20, referer: http://localhost/xampp/navi.php
[Mon May 19 20:25:24 2008] [error] [client 127.0.0.1] PHP Notice:  Undefined index:  img in C:\\xampp\\htdocs\\xampp\\iart.php on line 22, referer: http://localhost/xampp/navi.php
[Mon May 19 20:25:24 2008] [error] [client 127.0.0.1] PHP Fatal error:  Call to undefined function ImageCreate() in C:\\xampp\\htdocs\\xampp\\iart.php on line 56, referer: http://localhost/xampp/iart.php
[Mon May 19 20:25:28 2008] [error] [client 127.0.0.1] PHP Fatal error:  Call to undefined function ImageCreate() in C:\\xampp\\htdocs\\xampp\\iart.php on line 56, referer: http://localhost/xampp/iart.php
[Mon May 19 20:25:33 2008] [error] [client 127.0.0.1] PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: open(C:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\php\\session\\sess_jbnn93bfrupute5mlahkt061q2, O_RDWR) failed: No such file or directory (2) in C:\\xampp\\phpMyAdmin\\libraries\\session.inc.php on line 86, referer: http://localhost/xampp/navi.php
[Mon May 19 20:25:33 2008] [error] [client 127.0.0.1] PHP Warning:  Unknown: open(C:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\php\\session\\sess_jbnn93bfrupute5mlahkt061q2, O_RDWR) failed: No such file or directory (2) in Unknown on line 0, referer: http://localhost/xampp/navi.php
[Mon May 19 20:25:33 2008] [error] [client 127.0.0.1] PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\php\\session) in Unknown on line 0, referer: http://localhost/xampp/navi.php
newdejavu
 
Posts: 5
Joined: 20. May 2008 01:40

Postby sari42 » 20. May 2008 09:39

in xampp\apache\bin\php.ini set

session.save_path

to a dir that is writable for everybody (like c:\windows\temp or similar) and restart apache.
sari42
 
Posts: 800
Joined: 27. November 2005 18:28

Postby newdejavu » 20. May 2008 13:13

What I found is that the temp directory it was trying to write the session to didn't even exist + I had to change the permissions.

Thank you for your reply.

Then I had to modify the apache/bin/php.ini file by adding an entry for php_mysql.dll and php_mysqli.dll.

It took a while for me to figure these out.

It's kinda disappointing the installer didn't handle this or throw an error and that the apache/bin/php.ini wasn't ready to go for phpmysqladmin since there's a link in the xampp admin.

But between my own resoursefulness, this forum and some difficult to decipher documentation, urika! I've got a testing environment on my own computer. :)
newdejavu
 
Posts: 5
Joined: 20. May 2008 01:40

Postby sari42 » 20. May 2008 16:46

well,
dunno what version you installed, but after extracting the 1.6.6a 7zip(exe) version to c:\ and running setup_xampp.bat I have in apache\bin\php.ini:

session.save_path = "C:\xampplite\tmp"
upload_tmp_dir = "C:\xampplite\tmp"
(it exists)
and
extension=php_mysql.dll
extension=php_mysqli.dll

as it should be.
sari42
 
Posts: 800
Joined: 27. November 2005 18:28

Postby newdejavu » 20. May 2008 17:19

I installed the version with the installation.

There is a php.ini in the php directory which has the modules defined, but the one in the apache directory didn't.

Reading a posting on this forum, by someone else with a multiple php.ini issue and phpmysqladmin helped me nail down the problem. I didn't check the session.save_path, I could tell from the log file which directory it was trying to write to that didn't exist and I created it.

They were minor issues, but for someone doing a first time installation figuring all this out was a little tricky.

I know more now that when I started, but it would have been nice to postpose that learning.
newdejavu
 
Posts: 5
Joined: 20. May 2008 01:40

Postby sari42 » 20. May 2008 17:41

then the installer version is buggy (I never tried), maybe a devel is reading this thread...
sari42
 
Posts: 800
Joined: 27. November 2005 18:28


Return to PHP

Who is online

Users browsing this forum: No registered users and 2 guests