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