Current File : //scripts/apachejava_to_java.sh |
# @author: Saravana
# This script helpful to change the server type as apache with java
TOMCAT_PATH=$1
CONF_PATH="conf/server.xml"
GREP_PATH="$TOMCAT_PATH$CONF_PATH"
`sed -i -e 's/Connector port="8080" protocol="HTTP/Connector port="80" protocol="HTTP/g' $GREP_PATH`
GREP_LIB=`whereis grep | awk '{print $2}'`
PHP_LIB=`whereis php | awk '{print $2}'`
`$PHP_LIB /scripts/enable_disble_apache_java_module.php 0`
`/usr/sbin/service httpd stop`
`/etc/init.d/tomcat stop`
`$PHP_LIB /etc/sentora/panel/bin/daemon.php`