users@glassfish.java.net

RE: phpMyAdmin Glassfish V2

From: Dru Devore <ddevore_at_duckhouse.us>
Date: Wed, 30 Jul 2008 11:02:44 -0700
I am getting ready to set PHP up on my glassfish installation. What is the easiest way of doing this? I did a search but I didn't find anything that looked like a simple solution. Any help is appreciated.


-------- Original Message --------
Subject: phpMyAdmin Glassfish V2
From: glassfish@javadesktop.org
Date: Wed, July 30, 2008 12:52 pm
To: users@glassfish.dev.java.net

We have been running several php apps with GlassFish V2. It is a tremendous improvement for us to use Glassfish/Quercus instead of APC. We have one app left on Apache(APC). phpMyAdmin. I tried to get it running with no success on Glassfish, tried it on OS X and Solaris. Same error "Config file is writable". We looked at the php code for it and can't figure out how Java is getting individual write permissions for a file since there are no JNI calls in Quercus as far as we can tell. aybe they are in Resin. I don't understand why resin is a required jar. We found a bug reported 2620 and resolution in 3.2. Does anyone have phpmyadmin working on glassfish.


// Check for permissions (on platforms that support it):
$perms = @fileperms($this->getSource());
print ( $perms );
print ( $this->getSource() );
if (!($perms === false) && ($perms & 2)) {
// This check is normally done after loading configuration
$this->checkWebServerOs();
print ( " " );
print ( $this->get('PMA_IS_WINDOWS') );
if ($this->get('PMA_IS_WINDOWS') == 0) {
$this->source_mtime = 0;
die('Wrong permissions on configuration file, should not be world writable!');
}
}

The above php code fails with a new error if you ignore the incorrect conclusion about the file not being writable. The file config is not writeable.
[Message sent by forum member 'digitalrinaldo' (digitalrinaldo)]

http://forums.java.net/jive/thread.jspa?messageID=290403

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net