centos 7

OVH Dedicated server

... after making partion with their (OVH) inner tools, following procedures:

passwd

yum install nano

cp ~/.bashrc ~/.bashrc.orig.$(date +%F)

nano ~/.bashrc

export PS1="{\w}\n[\[\e[31m\]\u\[\e[m\]@\[\e[34;40m\]\H\[\e[m\] \W\[$(tput sgr0)\]]\\$ "
export HISTTIMEFORMAT="%h %d %H:%M:%S "
export HISTSIZE=100000
export HISTFILESIZE=100000
export HISTCONTROL=ignoredups
export HISTIGNORE="ls:ps:history"

export HISTFILE=~/.terminal_history

Root Server initial setup

Terminal line ~/.bashrc

cp ~/.bashrc ~/.bashrc.orig.$(date +%F)

nano ~/.bashrc

export PS1="{\w}\n[\[\e[31m\]\u\[\e[m\]@\[\e[34;40m\]\H\[\e[m\] \W\[$(tput sgr0)\]]\\$ "
export HISTTIMEFORMAT="%h %d %H:%M:%S "
export HISTSIZE=100000
export HISTFILESIZE=100000
export HISTCONTROL=ignoredups
export HISTIGNORE="ls:ps:history"

export HISTFILE=~/.terminal_history

 

nano /etc/sysctl.conf

 - swappiness

 

Quota

Apache HTTP2 for Centos 7

yum update


yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm


vi /etc/yum.repos.d/codeit.el7.repo

[CodeIT]
name=CodeIT repo
baseurl=https://repo.codeit.guru/packages/centos/7/$basearch
enabled=1
gpgkey=https://repo.codeit.guru/RPM-GPG-KEY-codeit
gpgcheck=1


yum install httpd mod-ssl



yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm

 

rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*

yum -y install epel-release

yum -y update

yum -y groupinstall 'Development Tools'

Tags: 

Drupal core extraction to website folder (ISP Config system)

PART 1 - INSTALLATION

Go to website folder:

cd /var/www/websites/client0/domain0/web

wget https://ftp.drupal.org/files/projects/drupal-7.78.tar.gz

 tar xzvf drupal-7.78.tar.gz

mv -f drupal-7.78/* ./

 ls -la drupal-7.78

cd drupal-7.78

cp .editorconfig .gitignore .htaccess ..

rm ../drupal-7.78.tar.gz

All your files are unpacked to "web"-location!

 

Next step:

Permissions!

LiteSpeed Server

  • nano /etc/selinux/config
    # This file controls the state of SELinux on the system.
    # SELINUX= can take one of these three values:
    #     enforcing - SELinux security policy is enforced.
    #     permissive - SELinux prints warnings instead of enforcing.
    #     disabled - No SELinux policy is loaded.
    SELINUX=permissive
    # SELINUXTYPE= can take one of these two values:
    #     targeted - Targeted processes are protected,
    #     mls - Multi Level Security protection.
    SELINUXTYPE=targeted