PDA

View Full Version : Quercus and phpMyAdmin problem


andrei048
06-21-2010, 11:22 AM
Hello,

I am using Quercus with Glassfish and I am trying to install phpMyAdmin.

When I browse to the phpMyAdmin site I get the following error:

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

Can anyone tell me please how can this be fixed or where can I see the errors generated ? I tried the server.log file of the Glassfish server, but there is nothing there that can help.

Thank you.

domdorn
06-27-2010, 10:45 AM
Please provide the following informations

which version of
- quercus
- glassfish
- phpMyAdmin

do you use?

Please try the newest quercus version 4.0.7
http://caucho.com/download/quercus-4.0.7.war

andrei048
06-30-2010, 06:12 PM
Thank you for the reply.

Still no progress.

I was using quercus version 4.0.3 and now I upgraded to 4.0.7
I am using phpMyAdmin-3.3.4-all-languages and GlassFish v3 (build 74.2).

The error message is the same:

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

How can I configure quercus PHP and how can I see the php/quercus logs if there are any ?

Thanks.

dherrup
07-15-2010, 02:14 AM
Hello,

Andrei and I working together on this. I have more information:

In the glassfish server logs we see the following:

[#|2010-07-14T20:58:18.074-0400|FINEST|glassfishv3.0|com.caucho.quercus.env.E nv|_ThreadID=33;_ThreadName=Thread-1;ClassName=com.caucho.quercus.env.Env;MethodName= error;|com.caucho.quercus.QuercusException: $_SESSION is an undefined variable
com.caucho.quercus.QuercusException: $_SESSION is an undefined variable

followed by the java stack trace (let me know if that would be helpful)

Followed later by:

[#|2010-07-14T20:58:18.088-0400|FINEST|glassfishv3.0|com.caucho.quercus.env.E nv|_ThreadID=33;_ThreadName=Thread-1;ClassName=com.caucho.quercus.env.Env;MethodName= error;|com.caucho.quercus.QuercusException: cannot redefine constant SID [session_start]
com.caucho.quercus.QuercusException: cannot redefine constant SID [session_start]

<<Java Stack Trace>>

Followed later by:

[#|2010-07-14T20:58:18.152-0400|FINER|glassfishv3.0|com.caucho.quercus.env.En v|_ThreadID=33;_ThreadName=Thread-1;ClassName=com.caucho.quercus.env.Env;MethodName= warning;|com.caucho.quercus.QuercusException: function '_internal_url_rewriter' called with 2 arguments, but only expects 1 arguments
com.caucho.quercus.QuercusException: function '_internal_url_rewriter' called with 2 arguments, but only expects 1 arguments

<<Java Stack Trace>>

dherrup
07-16-2010, 05:34 PM
Looks like bug 3971. I can reproduce the bug on my install. Any word on when this will be fixed? I am running 4.0.8.

klemens
08-13-2010, 01:51 PM
Hi,
I have the same problem with phpMyAdmin and
- apache-tomcat-6.0.29
- quercus-4.0.8

I haven't found out yet where the php logs are written to in Tomcat though.

domdorn
10-07-2010, 05:43 PM
3971 isn't reproducable with 4.0.11 and php 5.3.2

Please take a look at the bug and provide an additional testcase.

tsuruno
12-20-2010, 07:31 AM
Hello, I have same problem.


Quercus 4.0.11
phpMyAdmin phpMyAdmin-3.3.8.1-all-languages
Tomcat 5.5.29
err message
"Cannot start session without errors,...."

but...below will work.
Quercus 3.2.1
phpMyAdmin phpMyAdmin-2.11.11.1-english
Tomcat 5.5.29

If possible, I want to work quercus with GAE (local test with tomcat).
do you have any information?

Thanks.

domdorn
12-23-2010, 05:41 PM
I've got a fix for most of the issues with phpmyadmin (3.3.1).
I'll try to bring them into the next release.

Merry Xmas everyone!

domdorn
12-23-2010, 07:25 PM
fixed in current trunk.

You'll have to switch to authorization type config, as there's still a problem with blowfish encryption.

the server configuration should look like this:

$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'config';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysqli if your server has it */
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['AllowNoPassword'] = false;
$cfg['Servers'][$i]['username'] = "root";
$cfg['Servers'][$i]['password'] = "somepass";


also make sure to add a security constraint in your web.xml to the directory where you deploy phpmyadmin