- perl-Text-Xslate-3.1.2-8.el6
- perl-Test-Simple-0.96-1.el6
- perl-Data-MessagePack-0.48-8.el6
- perl-XML-TreePP-XMLPath-0.72-8.el6
- perl-autobox-Core-1.27-8.el6
- perl-autobox-2.82-8.el6
Also, you will need EPEL repo for the dependencies, friend.
# When http then https but no redirect for "knowledgebase" path | |
$HTTP["scheme"] == "http" { | |
$HTTP["host"] =~ "secure.site.com" { | |
url.redirect = ( "^/(?!(knowledgebase).*)" => "https://secure.site.com/$1" ) | |
server.document-root = "/site/secure" | |
} | |
} | |
#behavior for SSL | |
$HTTP["scheme"] == "https" { | |
$HTTP["host"] =~ "^secure\.site\.com" { | |
ssl.engine = "enable" | |
server.document-root = "/site/secure" | |
server.max-keep-alive-idle = 3 | |
} | |
#if "knowledgebase" is accessed from inside of the SSL site then exit to http! | |
$HTTP["url"] =~ "knowledgebase" { | |
setenv.add-environment = ( "HTTPS" => "off" ) | |
ssl.engine = "disable" | |
url.redirect = ( "^/(.*)" => "http://secure.site.com/$1" ) | |
} | |
} |
$ curl -6 "http://a00:1450:4007:805::1018/"FAIL!
curl: (3) IPv6 numerical address used in URL without brackets
$ curl -6 "http://[a00:1450:4007:805::1018]/"BINGO!
curl: (3) [globbing] bad range in column 13
$ curl -g -6 "http://[2a00:1450:4007:805::1018]/"
302 Moved
The document has moved
** (myloader:42526): CRITICAL **: cannot open file vcadminweb.message.sql.gz (24) * (myloader:46190): CRITICALIn my case, I needed to check and to change the open files:
ulimit -n 10000 ..... and solved!2) The second one looks like a problem accessing to the database.... but it is not. Message:
**: Error switching to database CMSB076 whilst restoring table multidevicevideo_playersIn my case, it was a timewait very low in the mysqld config.
wait_timeout = 300solved the issue for me.
mysql> drop database my-web;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-web' at line 1
mysql> drop database "my-web";
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"my-web"' at line 1
mysql> drop database 'my-web';The trick:
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''my-web'' at line 1
mysql> drop database `my-web`;
Query OK, 83 rows affected, 1 warning (0,02 sec)
#!/bin/bash | |
# description: Glassfish Start Stop Restart | |
# processname: glassfish | |
# chkconfig: 234 20 80 | |
JAVA_HOME=/usr/java/default | |
export JAVA_HOME | |
PATH=$JAVA_HOME/bin:$PATH | |
export PATH | |
GLASSFISH_HOME=/usr/local/glassfish4/glassfish | |
GLASSFISH_USER=glassfish | |
case $1 in | |
start) | |
su $GLASSFISH_USER -c "$GLASSFISH_HOME/bin/asadmin start-domain domain1" | |
;; | |
stop) | |
su $GLASSFISH_USER -c "$GLASSFISH_HOME/bin/asadmin stop-domain domain1" | |
;; | |
restart) | |
su $GLASSFISH_USER -c "$GLASSFISH_HOME/bin/asadmin stop-domain domain1" | |
su $GLASSFISH_USER -c "$GLASSFISH_HOME/bin/asadmin start-domain domain1" | |
;; | |
esac | |
exit 0 |
Add "umask 002" just before the "exec" line in $GLASSFISH_HOME/bin/asadmin
Change logging.properties file line to (by example):
com.sun.enterprise.server.logging.GFFileHandler.file=/var/log/glassfish/server.log