File manager - Edit - /home/newsbmcs.com/public_html/static/img/logo/add-ons.tar
Back
plesk/httpd_config.xml.debian 0000644 00000015015 15037132502 0012275 0 ustar 00 <?xml version="1.0" encoding="UTF-8"?> <httpServerConfig> <serverName>$HOSTNAME</serverName> <user>www-data</user> <group>www-data</group> <priority>0</priority> <chrootPath>/</chrootPath> <enableChroot>0</enableChroot> <inMemBufSize>60M</inMemBufSize> <swappingDir>/tmp/lshttpd/swap</swappingDir> <autoRestart>1</autoRestart> <autoFix503>0</autoFix503> <loadApacheConf>1</loadApacheConf> <autoReloadApacheConf>2</autoReloadApacheConf> <apacheBinPath>/usr/sbin/apache2</apacheBinPath> <apacheConfFile>/etc/apache2/apache2.conf</apacheConfFile> <apachePortOffset>%AP_PORT_OFFSET%</apachePortOffset> <apacheIpOffset>0</apacheIpOffset> <apacheIgnoredModules>mod_php4,mod_php5,mod_php7,sapi_apache2,python</apacheIgnoredModules> <phpSuExec>%PHP_SUEXEC%</phpSuExec> <phpSuExecMaxConn>10</phpSuExecMaxConn> <apacheEnvVars>APACHE_RUN_USER=www-data APACHE_RUN_GROUP=www-data APACHE_PID_FILE=%APACHE_PID_FILE%</apacheEnvVars> <mime>$SERVER_ROOT/conf/mime.properties</mime> <disableInitLogRotation>1</disableInitLogRotation> <showVersionNumber>0</showVersionNumber> <enableIpGeo></enableIpGeo> <useIpInProxyHeader></useIpInProxyHeader> <autoUpdateInterval>86400</autoUpdateInterval> <autoUpdateDownloadPkg>1</autoUpdateDownloadPkg> <adminEmails>%ADMIN_EMAIL%</adminEmails> <adminRoot>$SERVER_ROOT/admin/</adminRoot> <logging> <log> <fileName>/var/log/apache2/error.log</fileName> <logLevel>DEBUG</logLevel> <debugLevel>0</debugLevel> <rollingSize>2000M</rollingSize> <enableStderrLog>1</enableStderrLog> <enableAioLog>1</enableAioLog> </log> <accessLog> <fileName>$SERVER_ROOT/logs/access.log</fileName> <rollingSize>10M</rollingSize> <keepDays>30</keepDays> <compressArchive>0</compressArchive> </accessLog> </logging> <indexFiles>index.html, index.php, index.htm</indexFiles> <autoIndex></autoIndex> <autoIndexURI></autoIndexURI> <htAccess> <allowOverride>31</allowOverride> <accessFileName>.htaccess</accessFileName> </htAccess> <expires> <enableExpires>1</enableExpires> <expiresByType>image/*=A604800, text/css=A604800, application/x-javascript=A604800, application/javascript=A604800,font/*=A604800,application/x-font-ttf=A604800</expiresByType> </expires> <tuning> <maxConnections>10000</maxConnections> <maxSSLConnections>10000</maxSSLConnections> <connTimeout>120</connTimeout> <maxKeepAliveReq>10000</maxKeepAliveReq> <smartKeepAlive>0</smartKeepAlive> <keepAliveTimeout>10</keepAliveTimeout> <sndBufSize>0</sndBufSize> <rcvBufSize>0</rcvBufSize> <eventDispatcher>best</eventDispatcher> <maxCachedFileSize>4096</maxCachedFileSize> <totalInMemCacheSize>20M</totalInMemCacheSize> <maxMMapFileSize>256K</maxMMapFileSize> <totalMMapCacheSize>40M</totalMMapCacheSize> <useSendfile>1</useSendfile> <useAIO>1</useAIO> <AIOBlockSize>4</AIOBlockSize> <etagNoInode>1</etagNoInode> <SSLCryptoDevice>null</SSLCryptoDevice> <maxReqURLLen>8192</maxReqURLLen> <maxReqHeaderSize>16380</maxReqHeaderSize> <maxReqBodySize>500M</maxReqBodySize> <maxDynRespHeaderSize>8K</maxDynRespHeaderSize> <maxDynRespSize>500M</maxDynRespSize> <enableGzipCompress>1</enableGzipCompress> <enableDynGzipCompress>1</enableDynGzipCompress> <compressibleTypes>default</compressibleTypes> <gzipAutoUpdateStatic>1</gzipAutoUpdateStatic> <gzipCacheDir></gzipCacheDir> </tuning> <security> <fileAccessControl> <followSymbolLink>1</followSymbolLink> <checkSymbolLink>0</checkSymbolLink> <forceStrictOwnership>1</forceStrictOwnership> <requiredPermissionMask>000</requiredPermissionMask> <restrictedPermissionMask>000</restrictedPermissionMask> <restrictedScriptPermissionMask>000</restrictedScriptPermissionMask> <restrictedDirPermissionMask>000</restrictedDirPermissionMask> </fileAccessControl> <perClientConnLimit> <staticReqPerSec>0</staticReqPerSec> <dynReqPerSec>0</dynReqPerSec> <outBandwidth>0</outBandwidth> <inBandwidth>0</inBandwidth> <softLimit>10000</softLimit> <hardLimit>10000</hardLimit> <gracePeriod>15</gracePeriod> <banPeriod>300</banPeriod> </perClientConnLimit> <CGIRLimit> <maxCGIInstances>200</maxCGIInstances> <minUID>11</minUID> <minGID>10</minGID> <priority>0</priority> <CPUSoftLimit>60</CPUSoftLimit> <CPUHardLimit>120</CPUHardLimit> <memSoftLimit>1450M</memSoftLimit> <memHardLimit>1500M</memHardLimit> <procSoftLimit>1400</procSoftLimit> <procHardLimit>1450</procHardLimit> </CGIRLimit> <censorshipControl> <enableCensorship>0</enableCensorship> <logLevel>0</logLevel> <defaultAction>deny,log,status:403</defaultAction> <scanPOST>1</scanPOST> </censorshipControl> <accessDenyDir> <dir>/</dir> <dir>/etc/*</dir> <dir>/dev/*</dir> <dir>$SERVER_ROOT/conf/*</dir> <dir>$SERVER_ROOT/admin/conf/*</dir> </accessDenyDir> <accessControl> <allow>ALL</allow> <deny></deny> </accessControl> </security> <extProcessorList> <extProcessor> <type>logger</type> <name>/usr/local/psa/admin/sbin/pipelog</name> <note>Added for Plesk Pipe logger setup.</note> <maxConns>1</maxConns> <path>/usr/local/psa/admin/sbin/pipelog</path> <instances>1</instances> <priority>10</priority> </extProcessor> </extProcessorList> <scriptHandlerList> </scriptHandlerList> <phpConfig> <maxConns>35</maxConns> <env>PHP_LSAPI_CHILDREN=35</env> <initTimeout>60</initTimeout> <retryTimeout>0</retryTimeout> <pcKeepAliveTimeout>1</pcKeepAliveTimeout> <respBuffer>0</respBuffer> <extMaxIdleTime>60</extMaxIdleTime> <memSoftLimit></memSoftLimit> <memHardLimit></memHardLimit> <procSoftLimit>1400</procSoftLimit> <procHardLimit>1500</procHardLimit> </phpConfig> <railsDefaults> <rubyBin></rubyBin> <railsEnv>1</railsEnv> <maxConns>5</maxConns> <env>LSAPI_MAX_IDLE=60</env> <initTimeout>60</initTimeout> <retryTimeout>0</retryTimeout> <pcKeepAliveTimeout>60</pcKeepAliveTimeout> <respBuffer>0</respBuffer> <backlog>50</backlog> <runOnStartUp>1</runOnStartUp> <extMaxIdleTime>300</extMaxIdleTime> <priority>3</priority> <memSoftLimit></memSoftLimit> <memHardLimit></memHardLimit> <procSoftLimit>400</procSoftLimit> <procHardLimit>500</procHardLimit> </railsDefaults> </httpServerConfig> plesk/httpd_config.xml 0000644 00000014620 15037132502 0011055 0 ustar 00 <?xml version="1.0" encoding="UTF-8"?> <httpServerConfig> <serverName>$HOSTNAME</serverName> <user>apache</user> <group>apache</group> <priority>0</priority> <chrootPath>/</chrootPath> <enableChroot>0</enableChroot> <inMemBufSize>60M</inMemBufSize> <swappingDir>/tmp/lshttpd/swap</swappingDir> <autoRestart>1</autoRestart> <autoFix503>0</autoFix503> <loadApacheConf>1</loadApacheConf> <autoReloadApacheConf>2</autoReloadApacheConf> <apacheBinPath>/usr/sbin/httpd</apacheBinPath> <apacheConfFile>/etc/httpd/conf/httpd.conf</apacheConfFile> <apachePortOffset>%AP_PORT_OFFSET%</apachePortOffset> <apacheIpOffset>0</apacheIpOffset> <apacheIgnoredModules>mod_php4,mod_php5,mod_php7,sapi_apache2,python</apacheIgnoredModules> <phpSuExec>%PHP_SUEXEC%</phpSuExec> <phpSuExecMaxConn>10</phpSuExecMaxConn> <mime>$SERVER_ROOT/conf/mime.properties</mime> <disableInitLogRotation>1</disableInitLogRotation> <showVersionNumber>0</showVersionNumber> <enableIpGeo></enableIpGeo> <useIpInProxyHeader></useIpInProxyHeader> <autoUpdateInterval>86400</autoUpdateInterval> <autoUpdateDownloadPkg>1</autoUpdateDownloadPkg> <adminEmails>%ADMIN_EMAIL%</adminEmails> <adminRoot>$SERVER_ROOT/admin/</adminRoot> <logging> <log> <fileName>/var/log/httpd/error_log</fileName> <logLevel>DEBUG</logLevel> <debugLevel>0</debugLevel> <rollingSize>2000M</rollingSize> <enableStderrLog>1</enableStderrLog> <enableAioLog>1</enableAioLog> </log> <accessLog> <fileName>$SERVER_ROOT/logs/access.log</fileName> <rollingSize>10M</rollingSize> <keepDays>30</keepDays> <compressArchive>0</compressArchive> </accessLog> </logging> <indexFiles>index.html, index.php, index.htm</indexFiles> <autoIndex></autoIndex> <autoIndexURI></autoIndexURI> <htAccess> <allowOverride>31</allowOverride> <accessFileName>.htaccess</accessFileName> </htAccess> <expires> <enableExpires>1</enableExpires> <expiresByType>image/*=A604800, text/css=A604800, application/x-javascript=A604800, application/javascript=A604800,font/*=A604800,application/x-font-ttf=A604800</expiresByType> </expires> <tuning> <maxConnections>10000</maxConnections> <maxSSLConnections>10000</maxSSLConnections> <connTimeout>120</connTimeout> <maxKeepAliveReq>10000</maxKeepAliveReq> <smartKeepAlive>0</smartKeepAlive> <keepAliveTimeout>10</keepAliveTimeout> <sndBufSize>0</sndBufSize> <rcvBufSize>0</rcvBufSize> <eventDispatcher>best</eventDispatcher> <maxCachedFileSize>4096</maxCachedFileSize> <totalInMemCacheSize>20M</totalInMemCacheSize> <maxMMapFileSize>256K</maxMMapFileSize> <totalMMapCacheSize>40M</totalMMapCacheSize> <useSendfile>1</useSendfile> <useAIO>1</useAIO> <AIOBlockSize>4</AIOBlockSize> <etagNoInode>1</etagNoInode> <SSLCryptoDevice>null</SSLCryptoDevice> <maxReqURLLen>8192</maxReqURLLen> <maxReqHeaderSize>16380</maxReqHeaderSize> <maxReqBodySize>500M</maxReqBodySize> <maxDynRespHeaderSize>8K</maxDynRespHeaderSize> <maxDynRespSize>500M</maxDynRespSize> <enableGzipCompress>1</enableGzipCompress> <enableDynGzipCompress>1</enableDynGzipCompress> <compressibleTypes>default</compressibleTypes> <gzipAutoUpdateStatic>1</gzipAutoUpdateStatic> <gzipCacheDir></gzipCacheDir> </tuning> <security> <fileAccessControl> <followSymbolLink>1</followSymbolLink> <checkSymbolLink>0</checkSymbolLink> <forceStrictOwnership>1</forceStrictOwnership> <requiredPermissionMask>000</requiredPermissionMask> <restrictedPermissionMask>000</restrictedPermissionMask> <restrictedScriptPermissionMask>000</restrictedScriptPermissionMask> <restrictedDirPermissionMask>000</restrictedDirPermissionMask> </fileAccessControl> <perClientConnLimit> <staticReqPerSec>0</staticReqPerSec> <dynReqPerSec>0</dynReqPerSec> <outBandwidth>0</outBandwidth> <inBandwidth>0</inBandwidth> <softLimit>10000</softLimit> <hardLimit>10000</hardLimit> <gracePeriod>15</gracePeriod> <banPeriod>300</banPeriod> </perClientConnLimit> <CGIRLimit> <maxCGIInstances>200</maxCGIInstances> <minUID>11</minUID> <minGID>10</minGID> <priority>0</priority> <CPUSoftLimit>60</CPUSoftLimit> <CPUHardLimit>120</CPUHardLimit> <memSoftLimit>1450M</memSoftLimit> <memHardLimit>1500M</memHardLimit> <procSoftLimit>1400</procSoftLimit> <procHardLimit>1450</procHardLimit> </CGIRLimit> <censorshipControl> <enableCensorship>0</enableCensorship> <logLevel>0</logLevel> <defaultAction>deny,log,status:403</defaultAction> <scanPOST>1</scanPOST> </censorshipControl> <accessDenyDir> <dir>/</dir> <dir>/etc/*</dir> <dir>/dev/*</dir> <dir>$SERVER_ROOT/conf/*</dir> <dir>$SERVER_ROOT/admin/conf/*</dir> </accessDenyDir> <accessControl> <allow>ALL</allow> <deny></deny> </accessControl> </security> <extProcessorList> <extProcessor> <type>logger</type> <name>/usr/local/psa/admin/sbin/pipelog</name> <note>Added for Plesk Pipe logger setup.</note> <maxConns>1</maxConns> <path>/usr/local/psa/admin/sbin/pipelog</path> <instances>1</instances> <priority>10</priority> </extProcessor> </extProcessorList> <scriptHandlerList> </scriptHandlerList> <phpConfig> <maxConns>35</maxConns> <env>PHP_LSAPI_CHILDREN=35</env> <initTimeout>60</initTimeout> <retryTimeout>0</retryTimeout> <pcKeepAliveTimeout>1</pcKeepAliveTimeout> <respBuffer>0</respBuffer> <extMaxIdleTime>60</extMaxIdleTime> <memSoftLimit></memSoftLimit> <memHardLimit></memHardLimit> <procSoftLimit>1400</procSoftLimit> <procHardLimit>1500</procHardLimit> </phpConfig> <railsDefaults> <rubyBin></rubyBin> <railsEnv>1</railsEnv> <maxConns>5</maxConns> <env>LSAPI_MAX_IDLE=60</env> <initTimeout>60</initTimeout> <retryTimeout>0</retryTimeout> <pcKeepAliveTimeout>60</pcKeepAliveTimeout> <respBuffer>0</respBuffer> <backlog>50</backlog> <runOnStartUp>1</runOnStartUp> <extMaxIdleTime>300</extMaxIdleTime> <priority>3</priority> <memSoftLimit></memSoftLimit> <memHardLimit></memHardLimit> <procSoftLimit>400</procSoftLimit> <procHardLimit>500</procHardLimit> </railsDefaults> </httpServerConfig> rrdgraph/rrdgraph_install.sh 0000755 00000006311 15037132502 0012252 0 ustar 00 #!/bin/sh #1. specify destination dir #2. specify lsphp5 location #3. download from litespeedtech web server(like lsapi) cat <<EOF RRDtool PHP package for litespeed RRDtool is the OpenSource industry standard, high performance data logging and graphing system for time series data. Serverstats (http://serverstats.berlios.de/) is a simple tool(in PHP) for creating graphs using rrdtool This PHP package is Serverstats configured for litespeed. it can save years' real-time stats data in litespeed and disply them in graph at any time. Note: Before you install this php package, to be sure you've installed rrdtool. in Redhat/CentOS, you can do this through yum install rrdtool.i386 (for 32-bit x86) or yum install rrdtool.x86_64 (for 64-bit x86_64) EOF printf "%s" "Have you installed rrdtool [y/N]? " read PHPACC echo if [ "x$PHPACC" = "x" ]; then PHPACC=n fi if [ `expr "$PHPACC" : '[Yy]'` -eq 0 ]; then echo "then install rrdtool first !" exit 1 fi SUCC=0 DEST_RECOM="/usr/local/lsws/DEFAULT/html" while [ $SUCC -eq "0" ]; do cat <<EOF Please specify the destination directory. You must have permissions to create and manage the directory. It is recommended to install the rrd php package under document root of a virtual host. EOF printf "%s" "Destination [$DEST_RECOM]: " read DEST_DIR echo "" if [ "x$DEST_DIR" = "x" ]; then DEST_DIR=$DEST_RECOM fi SUCC=1 if [ ! -d "$DEST_DIR" ]; then mkdir -p "$DEST_DIR" if [ ! $? -eq 0 ]; then SUCC=0 echo "Failed to create the directory, try again" fi fi done SUCC=0 PHP_RECOM="/usr/local/lsws/fcgi-bin/lsphp5" while [ $SUCC -eq "0" ]; do cat <<EOF Please specify the full path of lsphp5 binary. It is used to update rrd database in cron job. php version must be 5.0 or above. EOF printf "%s" "lsphp5 location: [$PHP_RECOM]" read PHP_BIN echo "" if [ "x$PHP_BIN" = "x" ]; then PHP_BIN=$PHP_RECOM fi SUCC=1 if [ ! -f "$PHP_BIN" ]; then SUCC=0 echo "$PHP_BIN not exist, please specify again" fi done cd $DEST_DIR RRDPKG=ls_stats.tar.gz if [ -f $DEST_DIR/ls_stats/graph.php ]; then echo "[INFO] Found rrd php package at $DEST_DIR/ls_stats/" else if [ ! -f $DEST_DIR/$RRDPKG ]; then wget --timeout=5 -O $RRDPKG "http://www.litespeedtech.com/packages/rrdtool/$RRDPKG" if [ $? -ne 0 ]; then echo "WGET failed, try curl" curl -L "http://www.litespeedtech.com/packages/rrdtool/$RRDPKG" -o $RRDPKG if [ $? -ne 0 ]; then cat <<EOF [ERROR] Failed to download rrd php package, please download it manually from http://www.litespeedtech.com/packages/rrdtool/$RRDPKG to '$DEST_DIR' directory, then expand the package there. EOF exit 1 fi fi fi gunzip -c $RRDPKG | tar xf - if [ $? -ne 0 ]; then cat <<EOF [ERROR] Failed to expand $DEST_DIR/$RRDPKG Please expand it manually. EOF exit 1 fi fi cat <<EOF final step: create a cron job to update web server stats 1 time / per minute. run "crontab -e", add following line: * * * * * $PHP_BIN $DEST_DIR/ls_stats/update.php to view the rrd graph at any time later, access http://virtual-host-domain/ls_stats/index.php [OK] rrd php package for litespeed has been successfully installed. EOF frontpage/conf/srm.conf 0000644 00000000000 15037132502 0011112 0 ustar 00 frontpage/conf/access.conf 0000644 00000000000 15037132502 0011552 0 ustar 00 frontpage/conf/httpd.conf 0000644 00000000000 15037132502 0011434 0 ustar 00 interworx/httpd_config.xml 0000644 00000013542 15037132502 0012002 0 ustar 00 <?xml version="1.0" encoding="UTF-8"?> <httpServerConfig> <serverName>$HOSTNAME</serverName> <user>apache</user> <group>apache</group> <priority>0</priority> <chrootPath>/</chrootPath> <enableChroot>0</enableChroot> <inMemBufSize>60M</inMemBufSize> <swappingDir>/tmp/lshttpd/swap</swappingDir> <autoRestart>1</autoRestart> <autoFix503>0</autoFix503> <loadApacheConf>1</loadApacheConf> <autoReloadApacheConf>1</autoReloadApacheConf> <apacheConfFile>/etc/httpd/conf/httpd.conf</apacheConfFile> <apachePortOffset>%AP_PORT_OFFSET%</apachePortOffset> <apacheIpOffset>0</apacheIpOffset> <phpSuExec>%PHP_SUEXEC%</phpSuExec> <phpSuExecMaxConn>10</phpSuExecMaxConn> <mime>$SERVER_ROOT/conf/mime.properties</mime> <disableInitLogRotation></disableInitLogRotation> <showVersionNumber>0</showVersionNumber> <enableIpGeo></enableIpGeo> <useIpInProxyHeader></useIpInProxyHeader> <autoUpdateInterval>86400</autoUpdateInterval> <autoUpdateDownloadPkg>1</autoUpdateDownloadPkg> <adminEmails>%ADMIN_EMAIL%</adminEmails> <adminRoot>$SERVER_ROOT/admin/</adminRoot> <logging> <log> <fileName>$SERVER_ROOT/logs/error.log</fileName> <logLevel>DEBUG</logLevel> <debugLevel>0</debugLevel> <rollingSize>10M</rollingSize> <enableStderrLog>1</enableStderrLog> </log> <accessLog> <fileName>$SERVER_ROOT/logs/access.log</fileName> <rollingSize>10M</rollingSize> <keepDays>30</keepDays> <compressArchive>0</compressArchive> </accessLog> </logging> <indexFiles>index.html, index.php, index.htm</indexFiles> <autoIndex></autoIndex> <autoIndexURI></autoIndexURI> <htAccess> <allowOverride>31</allowOverride> <accessFileName>.htaccess</accessFileName> </htAccess> <expires> <enableExpires>1</enableExpires> <expiresByType>image/*=A604800, text/css=A604800, application/x-javascript=A604800, application/javascript=A604800</expiresByType> </expires> <tuning> <maxConnections>10000</maxConnections> <maxSSLConnections>10000</maxSSLConnections> <connTimeout>120</connTimeout> <maxKeepAliveReq>10000</maxKeepAliveReq> <smartKeepAlive>0</smartKeepAlive> <keepAliveTimeout>10</keepAliveTimeout> <sndBufSize>0</sndBufSize> <rcvBufSize>0</rcvBufSize> <eventDispatcher>best</eventDispatcher> <maxCachedFileSize>4096</maxCachedFileSize> <totalInMemCacheSize>20M</totalInMemCacheSize> <maxMMapFileSize>256K</maxMMapFileSize> <totalMMapCacheSize>40M</totalMMapCacheSize> <useSendfile>1</useSendfile> <useAIO>1</useAIO> <AIOBlockSize>4</AIOBlockSize> <etagNoInode>1</etagNoInode> <SSLCryptoDevice>null</SSLCryptoDevice> <maxReqURLLen>8192</maxReqURLLen> <maxReqHeaderSize>16380</maxReqHeaderSize> <maxReqBodySize>500M</maxReqBodySize> <maxDynRespHeaderSize>4K</maxDynRespHeaderSize> <maxDynRespSize>500M</maxDynRespSize> <enableGzipCompress>1</enableGzipCompress> <enableDynGzipCompress>1</enableDynGzipCompress> <compressibleTypes>default</compressibleTypes> <gzipAutoUpdateStatic>1</gzipAutoUpdateStatic> <gzipCacheDir></gzipCacheDir> </tuning> <security> <fileAccessControl> <followSymbolLink>1</followSymbolLink> <checkSymbolLink>0</checkSymbolLink> <forceStrictOwnership>1</forceStrictOwnership> <requiredPermissionMask>000</requiredPermissionMask> <restrictedPermissionMask>000</restrictedPermissionMask> <restrictedScriptPermissionMask>002</restrictedScriptPermissionMask> <restrictedDirPermissionMask>002</restrictedDirPermissionMask> </fileAccessControl> <perClientConnLimit> <staticReqPerSec>0</staticReqPerSec> <dynReqPerSec>0</dynReqPerSec> <outBandwidth>0</outBandwidth> <inBandwidth>0</inBandwidth> <softLimit>10000</softLimit> <hardLimit>10000</hardLimit> <gracePeriod>15</gracePeriod> <banPeriod>300</banPeriod> </perClientConnLimit> <CGIRLimit> <maxCGIInstances>20</maxCGIInstances> <minUID>11</minUID> <minGID>10</minGID> <priority>0</priority> <CPUSoftLimit>60</CPUSoftLimit> <CPUHardLimit>120</CPUHardLimit> <memSoftLimit>1250M</memSoftLimit> <memHardLimit>1300M</memHardLimit> <procSoftLimit>400</procSoftLimit> <procHardLimit>450</procHardLimit> </CGIRLimit> <censorshipControl> <enableCensorship>0</enableCensorship> <logLevel>0</logLevel> <defaultAction>deny,log,status:403</defaultAction> <scanPOST>1</scanPOST> </censorshipControl> <accessDenyDir> <dir>/</dir> <dir>/etc/*</dir> <dir>/dev/*</dir> <dir>$SERVER_ROOT/conf/*</dir> <dir>$SERVER_ROOT/admin/conf/*</dir> </accessDenyDir> <accessControl> <allow>ALL</allow> <deny></deny> </accessControl> </security> <extProcessorList> </extProcessorList> <scriptHandlerList> </scriptHandlerList> <phpConfig> <maxConns>35</maxConns> <env>PHP_LSAPI_CHILDREN=35</env> <initTimeout>60</initTimeout> <retryTimeout>0</retryTimeout> <pcKeepAliveTimeout>1</pcKeepAliveTimeout> <respBuffer>0</respBuffer> <extMaxIdleTime>60</extMaxIdleTime> <memSoftLimit></memSoftLimit> <memHardLimit></memHardLimit> <procSoftLimit>1400</procSoftLimit> <procHardLimit>1500</procHardLimit> </phpConfig> <railsDefaults> <rubyBin></rubyBin> <railsEnv>1</railsEnv> <maxConns>5</maxConns> <env>LSAPI_MAX_IDLE=60</env> <initTimeout>60</initTimeout> <retryTimeout>0</retryTimeout> <pcKeepAliveTimeout>60</pcKeepAliveTimeout> <respBuffer>0</respBuffer> <backlog>50</backlog> <runOnStartUp>1</runOnStartUp> <extMaxIdleTime>300</extMaxIdleTime> <priority>3</priority> <memSoftLimit></memSoftLimit> <memHardLimit></memHardLimit> <procSoftLimit>200</procSoftLimit> <procHardLimit>300</procHardLimit> </railsDefaults> </httpServerConfig> ispmanager/httpd_config.xml 0000644 00000013726 15037132502 0012073 0 ustar 00 <?xml version="1.0" encoding="UTF-8"?> <httpServerConfig> <serverName>$HOSTNAME</serverName> <user>apache</user> <group>apache</group> <priority>0</priority> <chrootPath>/</chrootPath> <enableChroot>0</enableChroot> <inMemBufSize>60M</inMemBufSize> <swappingDir>/tmp/lshttpd/swap</swappingDir> <autoRestart>1</autoRestart> <autoFix503>0</autoFix503> <loadApacheConf>1</loadApacheConf> <autoReloadApacheConf>1</autoReloadApacheConf> <apacheBinPath>/usr/sbin/httpd</apacheBinPath> <apacheConfFile>/etc/httpd/conf/httpd.conf</apacheConfFile> <apachePortOffset>%AP_PORT_OFFSET%</apachePortOffset> <apacheIpOffset></apacheIpOffset> <apacheHandledContent>/manager/,/mancgi/</apacheHandledContent> <phpSuExec>%PHP_SUEXEC%</phpSuExec> <phpSuExecMaxConn>10</phpSuExecMaxConn> <mime>$SERVER_ROOT/conf/mime.properties</mime> <disableInitLogRotation></disableInitLogRotation> <showVersionNumber>0</showVersionNumber> <enableIpGeo></enableIpGeo> <useIpInProxyHeader></useIpInProxyHeader> <autoUpdateInterval>86400</autoUpdateInterval> <autoUpdateDownloadPkg>1</autoUpdateDownloadPkg> <adminEmails>%ADMIN_EMAIL%</adminEmails> <adminRoot>$SERVER_ROOT/admin/</adminRoot> <logging> <log> <fileName>$SERVER_ROOT/logs/error.log</fileName> <logLevel>DEBUG</logLevel> <debugLevel>0</debugLevel> <rollingSize>2000M</rollingSize> <enableStderrLog>1</enableStderrLog> </log> <accessLog> <fileName>$SERVER_ROOT/logs/access.log</fileName> <rollingSize>10M</rollingSize> <keepDays>30</keepDays> <compressArchive>0</compressArchive> </accessLog> </logging> <indexFiles>index.html, index.php, index.htm</indexFiles> <autoIndex></autoIndex> <autoIndexURI></autoIndexURI> <htAccess> <allowOverride>31</allowOverride> <accessFileName>.htaccess</accessFileName> </htAccess> <expires> <enableExpires>1</enableExpires> <expiresByType>image/*=A604800, text/css=A604800, application/x-javascript=A604800, application/javascript=A604800</expiresByType> </expires> <tuning> <maxConnections>10000</maxConnections> <maxSSLConnections>10000</maxSSLConnections> <connTimeout>120</connTimeout> <maxKeepAliveReq>10000</maxKeepAliveReq> <smartKeepAlive>0</smartKeepAlive> <keepAliveTimeout>10</keepAliveTimeout> <sndBufSize>0</sndBufSize> <rcvBufSize>0</rcvBufSize> <eventDispatcher>best</eventDispatcher> <maxCachedFileSize>4096</maxCachedFileSize> <totalInMemCacheSize>20M</totalInMemCacheSize> <maxMMapFileSize>256K</maxMMapFileSize> <totalMMapCacheSize>40M</totalMMapCacheSize> <useSendfile>1</useSendfile> <useAIO>1</useAIO> <AIOBlockSize>4</AIOBlockSize> <etagNoInode>1</etagNoInode> <SSLCryptoDevice>null</SSLCryptoDevice> <maxReqURLLen>8192</maxReqURLLen> <maxReqHeaderSize>16380</maxReqHeaderSize> <maxReqBodySize>500M</maxReqBodySize> <maxDynRespHeaderSize>4K</maxDynRespHeaderSize> <maxDynRespSize>500M</maxDynRespSize> <enableGzipCompress>1</enableGzipCompress> <enableDynGzipCompress>1</enableDynGzipCompress> <compressibleTypes>default</compressibleTypes> <gzipAutoUpdateStatic>1</gzipAutoUpdateStatic> <gzipCacheDir></gzipCacheDir> </tuning> <security> <fileAccessControl> <followSymbolLink>1</followSymbolLink> <checkSymbolLink>0</checkSymbolLink> <forceStrictOwnership>1</forceStrictOwnership> <requiredPermissionMask>000</requiredPermissionMask> <restrictedPermissionMask>000</restrictedPermissionMask> <restrictedScriptPermissionMask>002</restrictedScriptPermissionMask> <restrictedDirPermissionMask>002</restrictedDirPermissionMask> </fileAccessControl> <perClientConnLimit> <staticReqPerSec>0</staticReqPerSec> <dynReqPerSec>0</dynReqPerSec> <outBandwidth>0</outBandwidth> <inBandwidth>0</inBandwidth> <softLimit>10000</softLimit> <hardLimit>10000</hardLimit> <gracePeriod>15</gracePeriod> <banPeriod>300</banPeriod> </perClientConnLimit> <CGIRLimit> <maxCGIInstances>20</maxCGIInstances> <minUID>11</minUID> <minGID>10</minGID> <priority>0</priority> <CPUSoftLimit>60</CPUSoftLimit> <CPUHardLimit>120</CPUHardLimit> <memSoftLimit>1250M</memSoftLimit> <memHardLimit>1300M</memHardLimit> <procSoftLimit>400</procSoftLimit> <procHardLimit>450</procHardLimit> </CGIRLimit> <censorshipControl> <enableCensorship>0</enableCensorship> <logLevel>0</logLevel> <defaultAction>deny,log,status:403</defaultAction> <scanPOST>1</scanPOST> </censorshipControl> <accessDenyDir> <dir>/</dir> <dir>/etc/*</dir> <dir>/dev/*</dir> <dir>$SERVER_ROOT/conf/*</dir> <dir>$SERVER_ROOT/admin/conf/*</dir> </accessDenyDir> <accessControl> <allow>ALL</allow> <deny></deny> </accessControl> </security> <extProcessorList> </extProcessorList> <scriptHandlerList> </scriptHandlerList> <phpConfig> <maxConns>35</maxConns> <env>PHP_LSAPI_CHILDREN=35</env> <initTimeout>60</initTimeout> <retryTimeout>0</retryTimeout> <pcKeepAliveTimeout>1</pcKeepAliveTimeout> <respBuffer>0</respBuffer> <extMaxIdleTime>60</extMaxIdleTime> <memSoftLimit></memSoftLimit> <memHardLimit></memHardLimit> <procSoftLimit>1400</procSoftLimit> <procHardLimit>1500</procHardLimit> </phpConfig> <railsDefaults> <rubyBin></rubyBin> <railsEnv>1</railsEnv> <maxConns>5</maxConns> <env>LSAPI_MAX_IDLE=60</env> <initTimeout>60</initTimeout> <retryTimeout>0</retryTimeout> <pcKeepAliveTimeout>60</pcKeepAliveTimeout> <respBuffer>0</respBuffer> <backlog>50</backlog> <runOnStartUp>1</runOnStartUp> <extMaxIdleTime>300</extMaxIdleTime> <priority>3</priority> <memSoftLimit></memSoftLimit> <memHardLimit></memHardLimit> <procSoftLimit>400</procSoftLimit> <procHardLimit>500</procHardLimit> </railsDefaults> </httpServerConfig> hsphere/httpd_config.xml 0000644 00000013247 15037132502 0011401 0 ustar 00 <?xml version="1.0" encoding="UTF-8"?> <httpServerConfig> <serverName>$HOSTNAME</serverName> <user>httpd</user> <group>httpd</group> <priority>0</priority> <chrootPath>/</chrootPath> <enableChroot>0</enableChroot> <inMemBufSize>60M</inMemBufSize> <swappingDir>/tmp/lshttpd/swap</swappingDir> <autoRestart>1</autoRestart> <autoFix503>0</autoFix503> <loadApacheConf>1</loadApacheConf> <autoReloadApacheConf>1</autoReloadApacheConf> <apacheConfFile>/hsphere/local/config/httpd/httpd.conf</apacheConfFile> <apachePortOffset>%AP_PORT_OFFSET%</apachePortOffset> <apacheIpOffset>0</apacheIpOffset> <phpSuExec>%PHP_SUEXEC%</phpSuExec> <phpSuExecMaxConn>10</phpSuExecMaxConn> <mime>$SERVER_ROOT/conf/mime.properties</mime> <disableInitLogRotation></disableInitLogRotation> <showVersionNumber>0</showVersionNumber> <enableIpGeo></enableIpGeo> <useIpInProxyHeader></useIpInProxyHeader> <autoUpdateInterval>86400</autoUpdateInterval> <autoUpdateDownloadPkg>1</autoUpdateDownloadPkg> <adminEmails>%ADMIN_EMAIL%</adminEmails> <adminRoot>$SERVER_ROOT/admin/</adminRoot> <logging> <log> <fileName>$SERVER_ROOT/logs/error.log</fileName> <logLevel>DEBUG</logLevel> <debugLevel>0</debugLevel> <rollingSize>10M</rollingSize> <enableStderrLog>1</enableStderrLog> </log> <accessLog> <fileName>$SERVER_ROOT/logs/access.log</fileName> <rollingSize>10M</rollingSize> <keepDays>30</keepDays> <compressArchive>0</compressArchive> </accessLog> </logging> <indexFiles>index.html, index.php, index.htm</indexFiles> <autoIndex></autoIndex> <autoIndexURI></autoIndexURI> <htAccess> <allowOverride>31</allowOverride> <accessFileName>.htaccess</accessFileName> </htAccess> <expires> <enableExpires>1</enableExpires> <expiresByType>image/*=A604800, text/css=A604800, application/x-javascript=A604800, application/javascript=A604800</expiresByType> </expires> <tuning> <maxConnections>10000</maxConnections> <maxSSLConnections>10000</maxSSLConnections> <connTimeout>120</connTimeout> <maxKeepAliveReq>10000</maxKeepAliveReq> <smartKeepAlive>0</smartKeepAlive> <keepAliveTimeout>10</keepAliveTimeout> <sndBufSize>0</sndBufSize> <rcvBufSize>0</rcvBufSize> <eventDispatcher>best</eventDispatcher> <maxCachedFileSize>4096</maxCachedFileSize> <totalInMemCacheSize>20M</totalInMemCacheSize> <maxMMapFileSize>256K</maxMMapFileSize> <totalMMapCacheSize>40M</totalMMapCacheSize> <useSendfile>1</useSendfile> <useAIO>1</useAIO> <AIOBlockSize>4</AIOBlockSize> <etagNoInode>1</etagNoInode> <SSLCryptoDevice>null</SSLCryptoDevice> <maxReqURLLen>8192</maxReqURLLen> <maxReqHeaderSize>16380</maxReqHeaderSize> <maxReqBodySize>500M</maxReqBodySize> <maxDynRespHeaderSize>4K</maxDynRespHeaderSize> <maxDynRespSize>500M</maxDynRespSize> <enableGzipCompress>1</enableGzipCompress> <enableDynGzipCompress>1</enableDynGzipCompress> <compressibleTypes>default</compressibleTypes> <gzipAutoUpdateStatic>1</gzipAutoUpdateStatic> <gzipCacheDir></gzipCacheDir> </tuning> <security> <fileAccessControl> <followSymbolLink>1</followSymbolLink> <checkSymbolLink>0</checkSymbolLink> <requiredPermissionMask>000</requiredPermissionMask> <restrictedPermissionMask>000</restrictedPermissionMask> </fileAccessControl> <perClientConnLimit> <staticReqPerSec>0</staticReqPerSec> <dynReqPerSec>0</dynReqPerSec> <outBandwidth>0</outBandwidth> <inBandwidth>0</inBandwidth> <softLimit>10000</softLimit> <hardLimit>10000</hardLimit> <gracePeriod>15</gracePeriod> <banPeriod>300</banPeriod> </perClientConnLimit> <CGIRLimit> <maxCGIInstances>20</maxCGIInstances> <minUID>11</minUID> <minGID>10</minGID> <priority>0</priority> <CPUSoftLimit>60</CPUSoftLimit> <CPUHardLimit>120</CPUHardLimit> <memSoftLimit>1250M</memSoftLimit> <memHardLimit>1300M</memHardLimit> <procSoftLimit>400</procSoftLimit> <procHardLimit>450</procHardLimit> </CGIRLimit> <censorshipControl> <enableCensorship>0</enableCensorship> <logLevel>0</logLevel> <defaultAction>deny,log,status:403</defaultAction> <scanPOST>1</scanPOST> </censorshipControl> <accessDenyDir> <dir>/</dir> <dir>/etc/*</dir> <dir>/dev/*</dir> <dir>$SERVER_ROOT/conf/*</dir> <dir>$SERVER_ROOT/admin/conf/*</dir> </accessDenyDir> <accessControl> <allow>ALL</allow> <deny></deny> </accessControl> </security> <extProcessorList> </extProcessorList> <scriptHandlerList> </scriptHandlerList> <phpConfig> <maxConns>35</maxConns> <env>PHP_LSAPI_CHILDREN=35</env> <initTimeout>60</initTimeout> <retryTimeout>0</retryTimeout> <pcKeepAliveTimeout>1</pcKeepAliveTimeout> <respBuffer>0</respBuffer> <extMaxIdleTime>60</extMaxIdleTime> <memSoftLimit></memSoftLimit> <memHardLimit></memHardLimit> <procSoftLimit>1400</procSoftLimit> <procHardLimit>1500</procHardLimit> </phpConfig> <railsDefaults> <rubyBin></rubyBin> <railsEnv>1</railsEnv> <maxConns>5</maxConns> <env>LSAPI_MAX_IDLE=60</env> <initTimeout>60</initTimeout> <retryTimeout>0</retryTimeout> <pcKeepAliveTimeout>60</pcKeepAliveTimeout> <respBuffer>0</respBuffer> <backlog>50</backlog> <runOnStartUp>1</runOnStartUp> <extMaxIdleTime>300</extMaxIdleTime> <priority>3</priority> <memSoftLimit></memSoftLimit> <memHardLimit></memHardLimit> <procSoftLimit>200</procSoftLimit> <procHardLimit>300</procHardLimit> </railsDefaults> </httpServerConfig> cpanel/httpd_config.xml.ea4 0000644 00000014076 15037132502 0011656 0 ustar 00 <?xml version="1.0" encoding="UTF-8"?> <httpServerConfig> <serverName>$HOSTNAME</serverName> <user>nobody</user> <group>nobody</group> <priority>0</priority> <chrootPath>/</chrootPath> <enableChroot>0</enableChroot> <inMemBufSize>60M</inMemBufSize> <swappingDir>/tmp/lshttpd/swap</swappingDir> <autoRestart>1</autoRestart> <autoFix503>0</autoFix503> <loadApacheConf>1</loadApacheConf> <autoReloadApacheConf>2</autoReloadApacheConf> <apacheBinPath>/usr/sbin/httpd</apacheBinPath> <apacheConfFile>/etc/apache2/conf/httpd.conf</apacheConfFile> <apachePortOffset>%AP_PORT_OFFSET%</apachePortOffset> <apacheIpOffset>0</apacheIpOffset> <apacheIgnoredModules></apacheIgnoredModules> <phpSuExec>%PHP_SUEXEC%</phpSuExec> <phpSuExecMaxConn>10</phpSuExecMaxConn> <mime>$SERVER_ROOT/conf/mime.properties</mime> <disableInitLogRotation>1</disableInitLogRotation> <showVersionNumber>0</showVersionNumber> <enableIpGeo></enableIpGeo> <useIpInProxyHeader></useIpInProxyHeader> <autoUpdateInterval>86400</autoUpdateInterval> <autoUpdateDownloadPkg>1</autoUpdateDownloadPkg> <adminEmails>%ADMIN_EMAIL%</adminEmails> <adminRoot>$SERVER_ROOT/admin/</adminRoot> <logging> <log> <fileName>/var/log/apache2/error_log</fileName> <logLevel>DEBUG</logLevel> <debugLevel>0</debugLevel> <rollingSize>2000M</rollingSize> <enableStderrLog>1</enableStderrLog> <enableAioLog>1</enableAioLog> </log> <accessLog> <fileName>$SERVER_ROOT/logs/access.log</fileName> <rollingSize>2000M</rollingSize> <keepDays>30</keepDays> <compressArchive>0</compressArchive> </accessLog> </logging> <indexFiles>index.html, index.php, index.htm</indexFiles> <autoIndex></autoIndex> <autoIndexURI></autoIndexURI> <htAccess> <allowOverride>31</allowOverride> <accessFileName>.htaccess</accessFileName> </htAccess> <expires> <enableExpires>1</enableExpires> <expiresByType>image/*=A604800,text/css=A604800,application/x-javascript=A604800,application/javascript=A604800,font/*=A604800,application/x-font-ttf=A604800</expiresByType> </expires> <tuning> <maxConnections>10000</maxConnections> <maxSSLConnections>10000</maxSSLConnections> <connTimeout>120</connTimeout> <maxKeepAliveReq>10000</maxKeepAliveReq> <smartKeepAlive>0</smartKeepAlive> <keepAliveTimeout>10</keepAliveTimeout> <sndBufSize>0</sndBufSize> <rcvBufSize>0</rcvBufSize> <eventDispatcher>best</eventDispatcher> <maxCachedFileSize>4096</maxCachedFileSize> <totalInMemCacheSize>20M</totalInMemCacheSize> <maxMMapFileSize>256K</maxMMapFileSize> <totalMMapCacheSize>40M</totalMMapCacheSize> <useSendfile>1</useSendfile> <useAIO>1</useAIO> <AIOBlockSize>4</AIOBlockSize> <etagNoInode>1</etagNoInode> <SSLCryptoDevice>null</SSLCryptoDevice> <maxReqURLLen>8192</maxReqURLLen> <maxReqHeaderSize>16380</maxReqHeaderSize> <maxReqBodySize>500M</maxReqBodySize> <maxDynRespHeaderSize>8K</maxDynRespHeaderSize> <maxDynRespSize>500M</maxDynRespSize> <enableGzipCompress>1</enableGzipCompress> <enableDynGzipCompress>1</enableDynGzipCompress> <compressibleTypes>default</compressibleTypes> <gzipAutoUpdateStatic>1</gzipAutoUpdateStatic> <gzipCacheDir></gzipCacheDir> </tuning> <security> <fileAccessControl> <followSymbolLink>1</followSymbolLink> <checkSymbolLink>0</checkSymbolLink> <forceStrictOwnership>1</forceStrictOwnership> <requiredPermissionMask>000</requiredPermissionMask> <restrictedPermissionMask>000</restrictedPermissionMask> <restrictedScriptPermissionMask>000</restrictedScriptPermissionMask> <restrictedDirPermissionMask>000</restrictedDirPermissionMask> </fileAccessControl> <perClientConnLimit> <staticReqPerSec>0</staticReqPerSec> <dynReqPerSec>0</dynReqPerSec> <outBandwidth>0</outBandwidth> <inBandwidth>0</inBandwidth> <softLimit>10000</softLimit> <hardLimit>10000</hardLimit> <gracePeriod>15</gracePeriod> <banPeriod>300</banPeriod> </perClientConnLimit> <CGIRLimit> <maxCGIInstances>200</maxCGIInstances> <minUID>11</minUID> <minGID>10</minGID> <priority>0</priority> <CPUSoftLimit>60</CPUSoftLimit> <CPUHardLimit>120</CPUHardLimit> <memSoftLimit>1450M</memSoftLimit> <memHardLimit>1500M</memHardLimit> <procSoftLimit>1400</procSoftLimit> <procHardLimit>1450</procHardLimit> </CGIRLimit> <censorshipControl> <enableCensorship>0</enableCensorship> <logLevel>0</logLevel> <defaultAction>deny,log,status:403</defaultAction> <scanPOST>1</scanPOST> </censorshipControl> <accessDenyDir> <dir>/</dir> <dir>/etc/*</dir> <dir>/dev/*</dir> <dir>$SERVER_ROOT/conf/*</dir> <dir>$SERVER_ROOT/admin/conf/*</dir> </accessDenyDir> <accessControl> <allow>ALL</allow> <deny></deny> </accessControl> </security> <extProcessorList> </extProcessorList> <scriptHandlerList> </scriptHandlerList> <phpConfig> <maxConns>35</maxConns> <env>PHP_LSAPI_CHILDREN=35</env> <initTimeout>60</initTimeout> <retryTimeout>0</retryTimeout> <pcKeepAliveTimeout>1</pcKeepAliveTimeout> <respBuffer>0</respBuffer> <extMaxIdleTime>60</extMaxIdleTime> <memSoftLimit></memSoftLimit> <memHardLimit></memHardLimit> <procSoftLimit>1400</procSoftLimit> <procHardLimit>1500</procHardLimit> </phpConfig> <railsDefaults> <rubyBin>/usr/local/lsws/fcgi-bin/ea-ruby27</rubyBin> <railsEnv>1</railsEnv> <maxConns>5</maxConns> <env>LSAPI_MAX_IDLE=60</env> <initTimeout>60</initTimeout> <retryTimeout>0</retryTimeout> <pcKeepAliveTimeout>60</pcKeepAliveTimeout> <respBuffer>0</respBuffer> <backlog>50</backlog> <runOnStartUp>0</runOnStartUp> <extMaxIdleTime>300</extMaxIdleTime> <priority>3</priority> <memSoftLimit></memSoftLimit> <memHardLimit></memHardLimit> <procSoftLimit>400</procSoftLimit> <procHardLimit>500</procHardLimit> </railsDefaults> </httpServerConfig> cpanel/lsws_whm_plugin/lsws_whm_plugin_install.sh 0000755 00000030505 15037132502 0016536 0 ustar 00 #!/bin/sh # /******************************************** # LiteSpeed Web Server Plugin for WHM # # @author LiteSpeed Technologies, Inc. (https://www.litespeedtech.com) # @copyright (c) 2008-2021 # *********************************************/ # # If from lsws install, 3 params # WHM_PLUGIN_SRCDIR=$1 # LSWS_HOME=$2 # CPANEL_PLUGIN_AUTOINSTALL=$3 # WHM_PLUGIN_TEMPDIR="/usr/src/lsws_whm" WHM_DOCROOT="/usr/local/cpanel/whostmgr/docroot" WHM_PLUGIN_CGIDIR="${WHM_DOCROOT}/cgi" WHM_PLUGIN_ICONDIR="${WHM_DOCROOT}/addon_plugins" WHM_PLUGIN_INSDIR="${WHM_PLUGIN_CGIDIR}/lsws" WHM_PLUGIN_TMPL_INSDIR="${WHM_DOCROOT}/templates/lsws" WHM_PLUGIN_LSCWP_SRC_DIR="/usr/src/litespeed-wp-plugin" WHM_PLUGIN_HTTPDIR="http://www.litespeedtech.com/packages/cpanel" THEME_JUPITER_PLUGIN_DIR="/usr/local/cpanel/base/frontend/jupiter/ls_web_cache_manager" THEME_PAPER_LANTERN_PLUGIN_DIR="/usr/local/cpanel/base/frontend/paper_lantern/ls_web_cache_manager" CPANEL_PLUGIN_CAPABLE=0 if [ ! -d "${WHM_PLUGIN_CGIDIR}" ] ; then exit fi WHM_PLUGIN_INST_USER=$(id) WHM_PLUGIN_INST_USER=$(expr "${WHM_PLUGIN_INST_USER}" : 'uid=.*(\(.*\)) gid=.*') if [ "${WHM_PLUGIN_INST_USER}" != "root" ] ; then echo "Require root permission to install this plugin. Abort!" exit fi if [ "x${2}" = "x" ] ; then LSWS_HOME="/usr/local/lsws" else LSWS_HOME="${2}" fi WEBCACHE_MGR_DATA_DIR="${LSWS_HOME}/admin/lscdata" CPANEL_PLUGIN_AUTOINSTALL_DISABLE_FLAG="${WHM_PLUGIN_INSDIR}/cpanel_autoinstall_off" TMP_CPANEL_PLUGIN_AUTOINSTALL_DISABLE_FLAG="/tmp/cpanel_autoinstall_off" WHM_PLUGIN_DATA_DIR="${WHM_PLUGIN_INSDIR}/data" TMP_WHM_PLUGIN_DATA_DIR="/tmp/lsws_whm_plugin_data_tmp" WHM_PLUGIN_LSWS_HOME_FILE="${WHM_PLUGIN_INSDIR}/LSWS_HOME.config" TMP_WHM_PLUGIN_LSWS_HOME_FILE="/tmp/LSWS_HOME.config" whmPluginNeedsUpdate() { CURR_WHM_VER="${1}" if ! LATEST_WHM_VER=$(wget -qO- "${WHM_PLUGIN_HTTPDIR}/WHM_LATEST_VER"); then echo "Failed to query latest WHM plugin version. Abort!" exit; fi CURR_MAJOR=$(echo "${CURR_WHM_VER}" | awk -F"." '{print $1}') LATEST_MAJOR=$(echo "${LATEST_WHM_VER}" | awk -F"." '{print $1}') if [ "${CURR_MAJOR}" -lt "${LATEST_MAJOR}" ] ; then return 0 elif [ "${CURR_MAJOR}" -gt "${LATEST_MAJOR}" ] ; then return 1 fi CURR_MINOR=$(echo "${CURR_WHM_VER}" | awk -F"." '{print $2}') LATEST_MINOR=$(echo "${LATEST_WHM_VER}" | awk -F"." '{print $2}') if [ "${CURR_MINOR}" -lt "${LATEST_MINOR}" ] ; then return 0 elif [ "${CURR_MINOR}" -gt "${LATEST_MINOR}" ] ; then return 1 fi CURR_IMPROVEMENT=$(echo "${CURR_WHM_VER}" | awk -F"." '{print match($3, /[^ ]/) ? $3 : 0}') LATEST_IMPROVEMENT=$(echo "${LATEST_WHM_VER}" | awk -F"." '{print match($3, /[^ ]/) ? $3 : 0}') if [ "${CURR_IMPROVEMENT}" -lt "${LATEST_IMPROVEMENT}" ] ; then return 0 elif [ "${CURR_IMPROVEMENT}" -gt "${LATEST_IMPROVEMENT}" ] ; then return 1 fi CURR_PATCH=$(echo "${CURR_WHM_VER}" | awk -F"." '{print match($4, /[^ ]/) ? $4 : 0}') LATEST_PATCH=$(echo "${LATEST_WHM_VER}" | awk -F"." '{print match($4, /[^ ]/) ? $4 : 0}') if [ "${CURR_PATCH}" -lt "${LATEST_PATCH}" ] ; then return 0 elif [ "${CURR_PATCH}" -gt "${LATEST_PATCH}" ] ; then return 1 fi return 1 } echo "" echo " Install LiteSpeed Web Server Plugin for WHM" echo "==============================================" echo "" CURR_WHM_VER_FILE="${WHM_PLUGIN_INSDIR}/VERSION" if [ -e "${CURR_WHM_VER_FILE}" ] ; then CURR_WHM_VER=$(cat "${CURR_WHM_VER_FILE}") if ! whmPluginNeedsUpdate "${CURR_WHM_VER}" ; then echo "Installed WHM Plugin version already up-to-date. Abort!" exit; fi fi if [ "x${1}" = "x" ] ; then echo "... creating directories ..." # Create temp directory to install if [ ! -e "${WHM_PLUGIN_TEMPDIR}" ] ; then mkdir -v -p "${WHM_PLUGIN_TEMPDIR}" echo " Temp directory created" fi cd "${WHM_PLUGIN_TEMPDIR}" echo "... downloading latest version of the plugin ..." if ! wget \ "--output-document=${WHM_PLUGIN_TEMPDIR}/lsws_whm_plugin.tar.gz" \ "${WHM_PLUGIN_HTTPDIR}/lsws_whm_plugin.tar.gz" then /bin/rm -rf "${WHM_PLUGIN_TEMPDIR}" echo "" echo "Failed to download lsws_whm_plugin.tar.gz. Abort!" exit; fi echo "Done downloading." echo "" echo "... extracting ..." if ! tar -zxf lsws_whm_plugin.tar.gz; then /bin/rm -rf "${WHM_PLUGIN_TEMPDIR}" echo "" echo "Failed to to extract lsws_whm_plugin.tar.gz. Abort!" exit; fi echo "" fi # Create working directories for WHM PHP files and backup any existing data if [ -e "${WHM_PLUGIN_INSDIR}" ] ; then if [ -e "${WHM_PLUGIN_CGIDIR}/addon_lsws.cgi" ] ; then echo " Removing old entry script addon_lsws.cgi" /bin/rm -f "${WHM_PLUGIN_CGIDIR}/addon_lsws.cgi" fi if [ ! -e "${WEBCACHE_MGR_DATA_DIR}" ] ; then if [ -e "${LSWS_HOME}/admin" ] ; then mkdir "${WEBCACHE_MGR_DATA_DIR}" fi fi if [ -e "${CPANEL_PLUGIN_AUTOINSTALL_DISABLE_FLAG}" ] ; then /bin/mv "${CPANEL_PLUGIN_AUTOINSTALL_DISABLE_FLAG}" "${TMP_CPANEL_PLUGIN_AUTOINSTALL_DISABLE_FLAG}" fi if [ -e "${WHM_PLUGIN_DATA_DIR}" ] ; then /bin/mv "${WHM_PLUGIN_DATA_DIR}" "${TMP_WHM_PLUGIN_DATA_DIR}" fi if [ -e "${WHM_PLUGIN_LSWS_HOME_FILE}" ] ; then /bin/mv "${WHM_PLUGIN_LSWS_HOME_FILE}" "${TMP_WHM_PLUGIN_LSWS_HOME_FILE}" fi echo " Removing old working directory ${WHM_PLUGIN_INSDIR}" /bin/rm -rf "${WHM_PLUGIN_INSDIR}" fi if [ -e "${WHM_PLUGIN_TMPL_INSDIR}" ] ; then echo " Removing old template directory ${WHM_PLUGIN_TMPL_INSDIR}" /bin/rm -rf "${WHM_PLUGIN_TMPL_INSDIR}" fi #Cleanup old lsc data from installs < 2.1.12 if [ -e "${LSWS_HOME}/add-ons/webcachemgr/shared/lsc_versions_data" ] ; then /bin/rm -f "${LSWS_HOME}/add-ons/webcachemgr/shared/lsc_versions_data" fi if [ -e "${LSWS_HOME}/add-ons/webcachemgr/shared/lsc_manager_data" ] ; then /bin/rm -f "${LSWS_HOME}/add-ons/webcachemgr/shared/lsc_manager_data" fi #cleanup old lsc data/files from installs < 3.0.0 if [ -e "${WEBCACHE_MGR_DATA_DIR}/lsc_manager_data" ] ; then /bin/rm -f "${WEBCACHE_MGR_DATA_DIR}/lsc_manager_data" fi if [ -e "${WEBCACHE_MGR_DATA_DIR}/lsc_versions_data" ] ; then /bin/rm -f "${WEBCACHE_MGR_DATA_DIR}/lsc_versions_data" fi #force new data files permissions if [ -e "${WEBCACHE_MGR_DATA_DIR}/lscm.data" ] ; then chmod 600 "${WEBCACHE_MGR_DATA_DIR}/lscm.data" fi if [ -e "${WEBCACHE_MGR_DATA_DIR}/lscm.data.cust" ] ; then chmod 600 "${WEBCACHE_MGR_DATA_DIR}/lscm.data.cust" fi mkdir -v "${WHM_PLUGIN_INSDIR}" mkdir -v "${WHM_PLUGIN_TMPL_INSDIR}" if [ -e "${TMP_CPANEL_PLUGIN_AUTOINSTALL_DISABLE_FLAG}" ] ; then /bin/mv "${TMP_CPANEL_PLUGIN_AUTOINSTALL_DISABLE_FLAG}" "${CPANEL_PLUGIN_AUTOINSTALL_DISABLE_FLAG}" echo " Retained disable cPanel plugin auto install flag file" fi if [ -e "${TMP_WHM_PLUGIN_DATA_DIR}" ] ; then /bin/mv "${TMP_WHM_PLUGIN_DATA_DIR}" "${WHM_PLUGIN_DATA_DIR}" echo " Retained WHM plugin data dir files" fi if [ -e "${TMP_WHM_PLUGIN_LSWS_HOME_FILE}" ] ; then /bin/mv "${TMP_WHM_PLUGIN_LSWS_HOME_FILE}" "${WHM_PLUGIN_LSWS_HOME_FILE}" echo " Retained LSWS_HOME.config file" fi echo "" if [ "x${1}" = "x" ] ; then WHM_PLUGIN_SRCDIR="${WHM_PLUGIN_TEMPDIR}/lsws_whm_plugin" /bin/cp -r "${WHM_PLUGIN_SRCDIR}"/* "${WHM_PLUGIN_INSDIR}/" cd "${WHM_PLUGIN_INSDIR}" # # Removes install files /bin/rm -rf "${WHM_PLUGIN_TEMPDIR}" else # install from lsws addon WHM_PLUGIN_SRCDIR="${1}" /bin/cp -r "${WHM_PLUGIN_SRCDIR}"/* "${WHM_PLUGIN_INSDIR}/" echo "LSWS_HOME=${LSWS_HOME}" > "${WHM_PLUGIN_LSWS_HOME_FILE}" fi echo "... moving files ..." if [ ! -e "${WHM_PLUGIN_ICONDIR}" ] ; then mkdir -v "${WHM_PLUGIN_ICONDIR}" fi /bin/cp -f "${WHM_PLUGIN_INSDIR}/lsws_icon.png" "${WHM_PLUGIN_ICONDIR}/" /bin/mv -f "${WHM_PLUGIN_INSDIR}/lsws.html.tt" "${WHM_PLUGIN_TMPL_INSDIR}/" echo "... setting permission to files ..." chmod -R 600 "${WHM_PLUGIN_INSDIR}" chmod 700 "${WHM_PLUGIN_INSDIR}"/*.cgi chmod 700 "${WHM_PLUGIN_INSDIR}"/*.sh chmod 700 "${WHM_PLUGIN_INSDIR}/bin" chmod 700 "${WHM_PLUGIN_INSDIR}"/bin/*.sh if [ -e "${WHM_PLUGIN_INSDIR}/res/ls_web_cache_mgr" ] ; then chmod 700 "${WHM_PLUGIN_INSDIR}"/res/ls_web_cache_mgr/*.sh CPANEL_PLUGIN_CAPABLE=1; fi # update easyapache hooks "${WHM_PLUGIN_INSDIR}/bin/whm_eahook.sh" REFRESH sed -i 's/target=mainFrame/target=_self/' "${WHM_PLUGIN_INSDIR}/lsws.conf" if [ -e "/usr/local/cpanel/bin/register_appconfig" ] ; then REGISTERED=$(/usr/local/cpanel/bin/is_registered_with_appconfig whostmgr lsws) if [ "x${REGISTERED}" != "x1" ] ; then echo "Register LSWS Plugin ..." if [ ! -e "/var/cpanel/apps" ] ; then mkdir -v "/var/cpanel/apps" echo " apps registration directory created" fi else # check if config changed CHANGED=$(diff /var/cpanel/apps/lsws.conf "${WHM_PLUGIN_INSDIR}/lsws.conf") if [ "${CHANGED}" != "" ] ; then REGISTERED=0 fi fi if [ "x${REGISTERED}" != "x1" ] ; then /usr/local/cpanel/bin/register_appconfig "${WHM_PLUGIN_INSDIR}/lsws.conf" fi /bin/rm -f "${WHM_PLUGIN_INSDIR}/addon_lsws.cgi" else echo "old version no AppConfig, place entry at parent dir" /bin/mv -f "${WHM_PLUGIN_INSDIR}/addon_lsws.cgi" "${WHM_PLUGIN_CGIDIR}/" /bin/rm -f "${WHM_PLUGIN_INSDIR}/lsws.cgi" fi #Create and add needed LSCWP source directory if [ ! -e "${WHM_PLUGIN_LSCWP_SRC_DIR}" ] ; then mkdir -m 755 "${WHM_PLUGIN_LSCWP_SRC_DIR}" fi #CageFs remount for $WHM_PLUGIN_LSCWP_SRC_DIR handled in fix_cagefs.sh if [ -f "/etc/cagefs/cagefs.mp" ] ; then FORCE_REMOUNT=0 if ! grep -v 'deleted' /proc/mounts | grep -q 'litespeed-wp-plugin' ; then FORCE_REMOUNT=1 if ! grep -Eq "^${WHM_PLUGIN_LSCWP_SRC_DIR}$" /etc/cagefs/cagefs.mp; then # shellcheck disable=SC1003 sed -i -e '$a\' /etc/cagefs/cagefs.mp echo "${WHM_PLUGIN_LSCWP_SRC_DIR}" >> /etc/cagefs/cagefs.mp fi fi THIS_DIR=$( cd "$( dirname "${0}" )" && pwd ) if [ -f "${LSWS_HOME}/admin/misc/fix_cagefs.sh" ] ; then #If CageFS, add LSWS to cage if missing. "${LSWS_HOME}/admin/misc/fix_cagefs.sh" "${FORCE_REMOUNT}" elif [ -f "${THIS_DIR}/../../../admin/misc/fix_cagefs.sh" ] ; then #LSWS not installed yet, run package relative script. "${THIS_DIR}/../../../admin/misc/fix_cagefs.sh" "${FORCE_REMOUNT}" else echo "Could not find fix_cagefs.sh! Script was not executed." fi fi #Exclude LSCache files from backup CP_BACKUP_EXCLUDE_MASTER=/usr/local/cpanel/etc/cpbackup-exclude.conf CP_BACKUP_EXCLUDE_GLOBAL=/etc/cpbackup-exclude.conf if [ ! -f "${CP_BACKUP_EXCLUDE_GLOBAL}" ] && [ -f "${CP_BACKUP_EXCLUDE_MASTER}" ] ; then cp "${CP_BACKUP_EXCLUDE_MASTER}" "${CP_BACKUP_EXCLUDE_GLOBAL}" fi if [ -f "${CP_BACKUP_EXCLUDE_GLOBAL}" ] ; then grep -Fxq "lscache/" "${CP_BACKUP_EXCLUDE_GLOBAL}" FOUND="${?}" fi if [ ! -f "${CP_BACKUP_EXCLUDE_GLOBAL}" ] || [ "${FOUND}" -ne 0 ] ; then echo "lscache/" >> "${CP_BACKUP_EXCLUDE_GLOBAL}" fi ## # Install/Update cPanel Plugin if found ## if [ "${CPANEL_PLUGIN_CAPABLE}" -eq 1 ] ; then CPANEL_PLUGIN_AUTOINSTALL=1 if [ "x${3}" = "x" ] ; then if [ -e "${CPANEL_PLUGIN_AUTOINSTALL_DISABLE_FLAG}" ] ; then CPANEL_PLUGIN_AUTOINSTALL=0 fi else CPANEL_PLUGIN_AUTOINSTALL="${3}" if [ "${CPANEL_PLUGIN_AUTOINSTALL}" -eq 1 ] ; then if [ -e "${CPANEL_PLUGIN_AUTOINSTALL_DISABLE_FLAG}" ] ; then /bin/rm -f "${CPANEL_PLUGIN_AUTOINSTALL_DISABLE_FLAG}" fi else touch "${CPANEL_PLUGIN_AUTOINSTALL_DISABLE_FLAG}" fi fi LSCMCTL_SCRIPT="${LSWS_HOME}/admin/misc/lscmctl" if [ -e "${LSCMCTL_SCRIPT}" ] ; then if "${LSCMCTL_SCRIPT}" --help | grep -q 'cpanelplugin' \ && [ "${CPANEL_PLUGIN_AUTOINSTALL}" -eq 1 ] \ || [ -e "${THEME_JUPITER_PLUGIN_DIR}" ] \ || [ -e "${THEME_PAPER_LANTERN_PLUGIN_DIR}" ] then "${LSCMCTL_SCRIPT}" cpanelplugin --install fi fi fi echo "" echo " LiteSpeed WHM Plugin Installed Successfully." echo "==============================================" cpanel/httpd_config.xml 0000644 00000013657 15037132502 0011212 0 ustar 00 <?xml version="1.0" encoding="UTF-8"?> <httpServerConfig> <serverName>$HOSTNAME</serverName> <user>nobody</user> <group>nobody</group> <priority>0</priority> <chrootPath>/</chrootPath> <enableChroot>0</enableChroot> <inMemBufSize>60M</inMemBufSize> <swappingDir>/tmp/lshttpd/swap</swappingDir> <autoRestart>1</autoRestart> <autoFix503>0</autoFix503> <loadApacheConf>1</loadApacheConf> <autoReloadApacheConf>2</autoReloadApacheConf> <apacheBinPath>/usr/local/apache/bin/httpd</apacheBinPath> <apacheConfFile>/usr/local/apache/conf/httpd.conf</apacheConfFile> <apachePortOffset>%AP_PORT_OFFSET%</apachePortOffset> <apacheIpOffset>0</apacheIpOffset> <apacheIgnoredModules></apacheIgnoredModules> <phpSuExec>%PHP_SUEXEC%</phpSuExec> <phpSuExecMaxConn>10</phpSuExecMaxConn> <mime>$SERVER_ROOT/conf/mime.properties</mime> <disableInitLogRotation>1</disableInitLogRotation> <showVersionNumber>0</showVersionNumber> <enableIpGeo></enableIpGeo> <useIpInProxyHeader></useIpInProxyHeader> <autoUpdateInterval>86400</autoUpdateInterval> <autoUpdateDownloadPkg>1</autoUpdateDownloadPkg> <adminEmails>%ADMIN_EMAIL%</adminEmails> <adminRoot>$SERVER_ROOT/admin/</adminRoot> <logging> <log> <fileName>/usr/local/apache/logs/error_log</fileName> <logLevel>DEBUG</logLevel> <debugLevel>0</debugLevel> <rollingSize>2000M</rollingSize> <enableStderrLog>1</enableStderrLog> <enableAioLog>1</enableAioLog> </log> <accessLog> <fileName>$SERVER_ROOT/logs/access.log</fileName> <rollingSize>2000M</rollingSize> <keepDays>30</keepDays> <compressArchive>0</compressArchive> </accessLog> </logging> <indexFiles>index.html, index.php, index.htm</indexFiles> <autoIndex></autoIndex> <autoIndexURI></autoIndexURI> <htAccess> <allowOverride>31</allowOverride> <accessFileName>.htaccess</accessFileName> </htAccess> <expires> <enableExpires>1</enableExpires> <expiresByType>image/*=A604800, text/css=A604800, application/x-javascript=A604800, application/javascript=A604800</expiresByType> </expires> <tuning> <maxConnections>10000</maxConnections> <maxSSLConnections>10000</maxSSLConnections> <connTimeout>120</connTimeout> <maxKeepAliveReq>10000</maxKeepAliveReq> <smartKeepAlive>0</smartKeepAlive> <keepAliveTimeout>10</keepAliveTimeout> <sndBufSize>0</sndBufSize> <rcvBufSize>0</rcvBufSize> <eventDispatcher>best</eventDispatcher> <maxCachedFileSize>4096</maxCachedFileSize> <totalInMemCacheSize>20M</totalInMemCacheSize> <maxMMapFileSize>256K</maxMMapFileSize> <totalMMapCacheSize>40M</totalMMapCacheSize> <useSendfile>1</useSendfile> <useAIO>1</useAIO> <AIOBlockSize>4</AIOBlockSize> <etagNoInode>1</etagNoInode> <SSLCryptoDevice>null</SSLCryptoDevice> <maxReqURLLen>8192</maxReqURLLen> <maxReqHeaderSize>16380</maxReqHeaderSize> <maxReqBodySize>500M</maxReqBodySize> <maxDynRespHeaderSize>8K</maxDynRespHeaderSize> <maxDynRespSize>500M</maxDynRespSize> <enableGzipCompress>1</enableGzipCompress> <enableDynGzipCompress>1</enableDynGzipCompress> <compressibleTypes>default</compressibleTypes> <gzipAutoUpdateStatic>1</gzipAutoUpdateStatic> <gzipCacheDir></gzipCacheDir> </tuning> <security> <fileAccessControl> <followSymbolLink>1</followSymbolLink> <checkSymbolLink>0</checkSymbolLink> <forceStrictOwnership>1</forceStrictOwnership> <requiredPermissionMask>000</requiredPermissionMask> <restrictedPermissionMask>000</restrictedPermissionMask> <restrictedScriptPermissionMask>000</restrictedScriptPermissionMask> <restrictedDirPermissionMask>000</restrictedDirPermissionMask> </fileAccessControl> <perClientConnLimit> <staticReqPerSec>0</staticReqPerSec> <dynReqPerSec>0</dynReqPerSec> <outBandwidth>0</outBandwidth> <inBandwidth>0</inBandwidth> <softLimit>10000</softLimit> <hardLimit>10000</hardLimit> <gracePeriod>15</gracePeriod> <banPeriod>300</banPeriod> </perClientConnLimit> <CGIRLimit> <maxCGIInstances>200</maxCGIInstances> <minUID>11</minUID> <minGID>10</minGID> <priority>0</priority> <CPUSoftLimit>60</CPUSoftLimit> <CPUHardLimit>120</CPUHardLimit> <memSoftLimit>1450M</memSoftLimit> <memHardLimit>1500M</memHardLimit> <procSoftLimit>400</procSoftLimit> <procHardLimit>450</procHardLimit> </CGIRLimit> <censorshipControl> <enableCensorship>0</enableCensorship> <logLevel>0</logLevel> <defaultAction>deny,log,status:403</defaultAction> <scanPOST>1</scanPOST> </censorshipControl> <accessDenyDir> <dir>/</dir> <dir>/etc/*</dir> <dir>/dev/*</dir> <dir>$SERVER_ROOT/conf/*</dir> <dir>$SERVER_ROOT/admin/conf/*</dir> </accessDenyDir> <accessControl> <allow>ALL</allow> <deny></deny> </accessControl> </security> <phpConfig> <maxConns>35</maxConns> <env>PHP_LSAPI_CHILDREN=35</env> <initTimeout>60</initTimeout> <retryTimeout>0</retryTimeout> <pcKeepAliveTimeout>1</pcKeepAliveTimeout> <respBuffer>0</respBuffer> <extMaxIdleTime>60</extMaxIdleTime> <memSoftLimit></memSoftLimit> <memHardLimit></memHardLimit> <procSoftLimit>1400</procSoftLimit> <procHardLimit>1500</procHardLimit> </phpConfig> <railsDefaults> <rubyBin></rubyBin> <railsEnv>1</railsEnv> <maxConns>5</maxConns> <env>LSAPI_MAX_IDLE=60</env> <initTimeout>60</initTimeout> <retryTimeout>0</retryTimeout> <pcKeepAliveTimeout>60</pcKeepAliveTimeout> <respBuffer>0</respBuffer> <backlog>50</backlog> <runOnStartUp>1</runOnStartUp> <extMaxIdleTime>300</extMaxIdleTime> <priority>3</priority> <memSoftLimit></memSoftLimit> <memHardLimit></memHardLimit> <procSoftLimit>400</procSoftLimit> <procHardLimit>500</procHardLimit> </railsDefaults> </httpServerConfig> cwp/httpd_config.xml 0000644 00000013572 15037132502 0010535 0 ustar 00 <?xml version="1.0" encoding="UTF-8"?> <httpServerConfig> <serverName>$HOSTNAME</serverName> <user>nobody</user> <group>nobody</group> <priority>0</priority> <chrootPath>/</chrootPath> <enableChroot>0</enableChroot> <inMemBufSize>60M</inMemBufSize> <swappingDir>/tmp/lshttpd/swap</swappingDir> <autoRestart>1</autoRestart> <autoFix503>0</autoFix503> <loadApacheConf>1</loadApacheConf> <autoReloadApacheConf>2</autoReloadApacheConf> <apacheBinPath>/usr/local/apache/bin/httpd</apacheBinPath> <apacheConfFile>/usr/local/apache/conf/httpd.conf</apacheConfFile> <apachePortOffset>0</apachePortOffset> <apacheIpOffset>0</apacheIpOffset> <apacheIgnoredModules></apacheIgnoredModules> <phpSuExec>%PHP_SUEXEC%</phpSuExec> <phpSuExecMaxConn>10</phpSuExecMaxConn> <mime>$SERVER_ROOT/conf/mime.properties</mime> <disableInitLogRotation>1</disableInitLogRotation> <showVersionNumber>0</showVersionNumber> <enableIpGeo></enableIpGeo> <useIpInProxyHeader></useIpInProxyHeader> <autoUpdateInterval>86400</autoUpdateInterval> <autoUpdateDownloadPkg>1</autoUpdateDownloadPkg> <adminEmails>%ADMIN_EMAIL%</adminEmails> <adminRoot>$SERVER_ROOT/admin/</adminRoot> <logging> <log> <fileName>/usr/local/apache/logs/error_log</fileName> <logLevel>DEBUG</logLevel> <debugLevel>0</debugLevel> <rollingSize>2000M</rollingSize> <enableStderrLog>1</enableStderrLog> </log> <accessLog> <fileName>$SERVER_ROOT/logs/access.log</fileName> <rollingSize>2000M</rollingSize> <keepDays>30</keepDays> <compressArchive>0</compressArchive> </accessLog> </logging> <indexFiles>index.html, index.php, index.htm</indexFiles> <autoIndex></autoIndex> <autoIndexURI></autoIndexURI> <htAccess> <allowOverride>31</allowOverride> <accessFileName>.htaccess</accessFileName> </htAccess> <expires> <enableExpires>1</enableExpires> <expiresByType>image/*=A604800, text/css=A604800, application/x-javascript=A604800, application/javascript=A604800</expiresByType> </expires> <tuning> <maxConnections>10000</maxConnections> <maxSSLConnections>10000</maxSSLConnections> <connTimeout>120</connTimeout> <maxKeepAliveReq>10000</maxKeepAliveReq> <smartKeepAlive>0</smartKeepAlive> <keepAliveTimeout>10</keepAliveTimeout> <sndBufSize>0</sndBufSize> <rcvBufSize>0</rcvBufSize> <eventDispatcher>best</eventDispatcher> <maxCachedFileSize>4096</maxCachedFileSize> <totalInMemCacheSize>20M</totalInMemCacheSize> <maxMMapFileSize>256K</maxMMapFileSize> <totalMMapCacheSize>40M</totalMMapCacheSize> <useSendfile>1</useSendfile> <useAIO>1</useAIO> <AIOBlockSize>4</AIOBlockSize> <etagNoInode>1</etagNoInode> <SSLCryptoDevice>null</SSLCryptoDevice> <maxReqURLLen>8192</maxReqURLLen> <maxReqHeaderSize>16380</maxReqHeaderSize> <maxReqBodySize>500M</maxReqBodySize> <maxDynRespHeaderSize>8K</maxDynRespHeaderSize> <maxDynRespSize>500M</maxDynRespSize> <enableGzipCompress>1</enableGzipCompress> <enableDynGzipCompress>1</enableDynGzipCompress> <compressibleTypes>default</compressibleTypes> <gzipAutoUpdateStatic>1</gzipAutoUpdateStatic> <gzipCacheDir></gzipCacheDir> </tuning> <security> <fileAccessControl> <followSymbolLink>1</followSymbolLink> <checkSymbolLink>0</checkSymbolLink> <forceStrictOwnership>1</forceStrictOwnership> <requiredPermissionMask>000</requiredPermissionMask> <restrictedPermissionMask>000</restrictedPermissionMask> <restrictedScriptPermissionMask>000</restrictedScriptPermissionMask> <restrictedDirPermissionMask>000</restrictedDirPermissionMask> </fileAccessControl> <perClientConnLimit> <staticReqPerSec>0</staticReqPerSec> <dynReqPerSec>0</dynReqPerSec> <outBandwidth>0</outBandwidth> <inBandwidth>0</inBandwidth> <softLimit>10000</softLimit> <hardLimit>10000</hardLimit> <gracePeriod>15</gracePeriod> <banPeriod>300</banPeriod> </perClientConnLimit> <CGIRLimit> <maxCGIInstances>200</maxCGIInstances> <minUID>11</minUID> <minGID>10</minGID> <priority>0</priority> <CPUSoftLimit>60</CPUSoftLimit> <CPUHardLimit>120</CPUHardLimit> <memSoftLimit>1450M</memSoftLimit> <memHardLimit>1500M</memHardLimit> <procSoftLimit>400</procSoftLimit> <procHardLimit>450</procHardLimit> </CGIRLimit> <censorshipControl> <enableCensorship>0</enableCensorship> <logLevel>0</logLevel> <defaultAction>deny,log,status:403</defaultAction> <scanPOST>1</scanPOST> </censorshipControl> <accessDenyDir> <dir>/</dir> <dir>/etc/*</dir> <dir>/dev/*</dir> <dir>$SERVER_ROOT/conf/*</dir> <dir>$SERVER_ROOT/admin/conf/*</dir> </accessDenyDir> <accessControl> <allow>ALL</allow> <deny></deny> </accessControl> </security> <phpConfig> <maxConns>35</maxConns> <env>PHP_LSAPI_CHILDREN=35</env> <initTimeout>60</initTimeout> <retryTimeout>0</retryTimeout> <pcKeepAliveTimeout>1</pcKeepAliveTimeout> <respBuffer>0</respBuffer> <extMaxIdleTime>60</extMaxIdleTime> <memSoftLimit></memSoftLimit> <memHardLimit></memHardLimit> <procSoftLimit>1400</procSoftLimit> <procHardLimit>1500</procHardLimit> </phpConfig> <railsDefaults> <rubyBin></rubyBin> <railsEnv>1</railsEnv> <maxConns>5</maxConns> <env>LSAPI_MAX_IDLE=60</env> <initTimeout>60</initTimeout> <retryTimeout>0</retryTimeout> <pcKeepAliveTimeout>60</pcKeepAliveTimeout> <respBuffer>0</respBuffer> <backlog>50</backlog> <runOnStartUp>1</runOnStartUp> <extMaxIdleTime>300</extMaxIdleTime> <priority>3</priority> <memSoftLimit></memSoftLimit> <memHardLimit></memHardLimit> <procSoftLimit>400</procSoftLimit> <procHardLimit>500</procHardLimit> </railsDefaults> </httpServerConfig> snmp_monitoring/sample.php 0000644 00000001742 15037132502 0011762 0 ustar 00 <?php /*-------------------------------- assuming following entry in /etc/snmp/snmpd.conf pass .1.3.6.1.4.1.22253 /usr/bin/php smaple.php if you change the default parent oid node: .1.3.6.1.4.1.22253, you must also modify the OID entries .xml files. --------------------------------*/ error_reporting(E_ALL); require_once("class.litespeed_snmp_bridge.php"); $processes = 1; //<-- value of > 1 only valid LiteSpeed Enterprise (num of cpus licensed) $report_path = "/tmp/lshttpd/"; //<-- path to .rtreport folder. Default is /tmp/lshttpd/ $cache_time = 0; //<-- seconds to cache parsed data $cache_file = "/tmp/_lsws_sampe_cache.txt"; //<-- cache file..full path. //get params from snmpd pass mechanism if(array_key_exists(1,$_SERVER["argv"]) && array_key_exists(2,$_SERVER["argv"])) { $type = trim($_SERVER["argv"][1]); $oid = trim($_SERVER["argv"][2]); $bridge = new litespeed_snmp_bridge($processes, $report_path, $cache_time, $cache_file); $bridge->process($type, $oid); } ?> snmp_monitoring/README 0000644 00000000503 15037132502 0010642 0 ustar 00 LiteSpeed SNMPD Bridge + Cacti Templates ---------------------------------------- For the most up-to-date installation documentation, please refer to our online "SNMP Monitoring" wiki: http://www.litespeedtech.com/support/wiki/doku.php?id=litespeed_wiki:snmp_cacti_monitoring Release Log: ----------- 1.0 08-23-2006 snmp_monitoring/litespeed_extapp.xml 0000644 00000007755 15037132502 0014063 0 ustar 00 <interface> <name>Get LiteSpeed External Applications</name> <oid_index>.1.3.6.1.4.1.22253.300</oid_index> <index_order>ExtApp:Type:Vhost:Index</index_order> <index_order_type>numeric</index_order_type> <index_title_format>|chosen_order_field|</index_title_format> <fields> <Index> <name>Index</name> <method>walk</method> <source>value</source> <direction>input</direction> <oid>.1.3.6.1.4.1.22253.300</oid> </Index> <Vhost> <name>Vhost Name</name> <method>walk</method> <source>value</source> <direction>input</direction> <oid>.1.3.6.1.4.1.22253.301</oid> </Vhost> <Type> <name>Type</name> <method>walk</method> <source>value</source> <direction>input</direction> <oid>.1.3.6.1.4.1.22253.302</oid> </Type> <ExtApp> <name>Ext App</name> <method>walk</method> <source>value</source> <direction>input</direction> <oid>.1.3.6.1.4.1.22253.303</oid> </ExtApp> <ConfMaxConn> <name>Config Max Conn</name> <method>walk</method> <source>value</source> <direction>output</direction> <oid>.1.3.6.1.4.1.22253.304</oid> </ConfMaxConn> <EffMaxConn> <name>Effective Max Conn</name> <method>walk</method> <source>value</source> <direction>output</direction> <oid>.1.3.6.1.4.1.22253.305</oid> </EffMaxConn> <PoolSize> <name>Pool Size</name> <method>walk</method> <source>value</source> <direction>output</direction> <oid>.1.3.6.1.4.1.22253.306</oid> </PoolSize> <InuseConn> <name>InUse Conn</name> <method>walk</method> <source>value</source> <direction>output</direction> <oid>.1.3.6.1.4.1.22253.307</oid> </InuseConn> <IdleConn> <name>Idle Conn</name> <method>walk</method> <source>value</source> <direction>output</direction> <oid>.1.3.6.1.4.1.22253.308</oid> </IdleConn> <WaitQueueDepth> <name>Wait-Queue Depth</name> <method>walk</method> <source>value</source> <direction>output</direction> <oid>.1.3.6.1.4.1.22253.309</oid> </WaitQueueDepth> <Req_Second> <name>Requests Per Second</name> <method>walk</method> <source>value</source> <direction>output</direction> <oid>.1.3.6.1.4.1.22253.310</oid> </Req_Second> <Req_Total> <name>Requests Total</name> <method>walk</method> <source>value</source> <direction>output</direction> <oid>.1.3.6.1.4.1.22253.311</oid> </Req_Total> </fields> </interface>