Giter VIP home page Giter VIP logo

tripflex / cpsetup Goto Github PK

View Code? Open in Web Editor NEW
46.0 10.0 38.0 810 KB

Intuitive bash/shell script to setup and harden/configure cPanel CentOS/RHEL server with ConfigServer Firewall, MailManage, MailQueue, Malware Detect, ClamAV, mod_cloudflare, CloudFlare RailGun, and many more applications and security tweaks

PHP 30.74% Perl 40.42% Shell 28.85%
cpanel cloudflare-railgun cpanel-tweak-settings installer clamav configserver-firewall configserver shell bash setup

cpsetup's People

Contributors

joejordanbrown avatar tripflex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cpsetup's Issues

Error with AfterLogic Webmail installation.

Error with AfterLogic Webmail installation.
Can't locate object method "install" via package "YAML::Syck" at -e line 1.

https://github.com/tripflex/cpsetup/blob/master/cpsetup#L689

This fails the AfterLogic Webmail installation.

Instead of perl -MCPAN -e 'install YAML::Syck' it should be cpan YAML::Syck

To fix you must uninstall AfterLogic Webmail with the following command:

cd ~/cpsetupbuild
wget http://www.afterlogic.com/download/webmail-panel-installer.tar.gz
tar -xzvf webmail-panel-installer.tar.gz
cd webmail-panel*
chmod a+x installer
bash installer -a remove

Then to install:

cpan YAML::Syck
cd ~/cpsetupbuild
wget http://www.afterlogic.com/download/webmail-panel-installer.tar.gz
tar -xzvf webmail-panel-installer.tar.gz
cd webmail-panel*
chmod a+x installer
bash installer -t lite -a install

Add railgun user to memcached group, chmod 770 memcached socket

Error starting: Error connecting to memcached server /var/run/memcached/memcached.sock: dial unix /var/run/memcached/memcached.sock: permission denied

Need to add railgun user to memcached group:

usermod -a -G memcached railgun

chmod 770 /var/run/memcached/memcached.sock

Add JetApps options

https://jetapps.com

JetApps Control panel for cPanel

yum clean all --enablerepo=jetapps*
yum -y install http://repo.jetlicense.com/centOS/jetapps-repo-latest.rpm
yum -y install jetapps-cpanel --enablerepo=jetapps

Sub-Option 1 JetBackup

Tiers - stable, beta, edge
/etc/jetapps/3rdparty/php70/bin/php-cgi -f /usr/local/cpanel/whostmgr/docroot/jetapps/api.php output=json page=package packagename=jetbackup action=install tier=$TIER

Sub-Option 1 JetMigrate

Tiers - stable, beta, edge
/etc/jetapps/3rdparty/php70/bin/php-cgi -f /usr/local/cpanel/whostmgr/docroot/jetapps/api.php output=json page=package packagename=jetmigrate action=install tier=$TIER

CentOS 7.2 Railgun Setup Incorrect Repository

If using CentOS 7.2 or RHEL 7.2, when script tries to download repo rpm, it attempts to download based on major and minor version, instead of just major version ...

IE instead of cloudflare-release-latest.el7.rpm it tries to download cloudflare-release-latest.el7.2.rpm

set SSH port issue

Starting sshd: /etc/ssh/sshd_config line 13: Badly formatted port number.

Add Check Background Process Killer option

Check Background Process Killer

You should enable each item in the WHM > Background Process Killer

https://documentation.cpanel.net/display/SDK/WHM+API+1+Functions+-+configurebackgroundprocesskiller

whmapi1 configurebackgroundprocesskiller processes_to_kill=BitchX processes_to_kill-0=bnc processes_to_kill-1=eggdrop processes_to_kill-2=generic-sniffers processes_to_kill-3=guardservices processes_to_kill-4=ircd processes_to_kill-5=psyBNC processes_to_kill-6=ptlink processes_to_kill-7=services

Add create swapfile option

Check for swap file

The server appears to have no swap file. This is usually considered a stability and performance risk. You should either add a swap partition, or create one via a normal file on an existing partition

dd if=/dev/zero of=/swapfile bs=$SWAPFILE_SIZE count=524288
chown root:root /swapfile
chmod 0600 /swapfile
mkswap /swapfile
swapon /swapfile
echo "/swapfile none swap sw 0 0" >> /etc/fstab

Error on CentOS 7


  • Securing the server with configuration tweaks, please wait... -

Redirecting to /bin/systemctl stop portreserve.service
Failed to stop portreserve.service: Unit portreserve.service not loaded.
error reading information on service portreserve: No such file or directory
cPanel Apache Local Configuration file ( /var/cpanel/conf/apache/local ) already exists, unable to update
./cpsetup: line 534: /etc/init.d/sshd: No such file or directory
Profile limits installed

CentOS 7

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.