Knowledge Base
Home>Resources>Knowledge Base

→ On server site
i. Service sshd restert
ii. vi /etc/ssh/sshd_config
line number 13
port 2224
change port number 22 to 2224
line nmber 15
#ListenAddress 0.0.0.0
line number 42
PermitRootLogin no
Allow User u1
Deny User root or ALL
:wq
service sshd restart

For WHM panel
i. login WHM panel, go to Server Configuration->basic cpanel & WHM setup->Basic Config.
First option for change ipv4

* The IPv4 address (only one address) to use to set up shared
IPv4 virtual hosts.
We strongly recommend that you only specify an IPv4
address that you have associated with this server.
Example: 10.11.133.14(Minimum: 0; Maximum: 0)
192.168.1.2

To repair grub file
→ grub2-mkconfig -o /boot/grub2/grub.cfg
To check boot order
→ grub2-set-default2
To Install grub
→ grub2-install
To check default target
→ systemctl get-default
To change default target
→ systemctl set-default multi-user.target
To check all available target
→ systemctl list-units --type=target –all
To change target at run time
→ systemctlisolate graphical.target
To reboot or power off the system
→ systemctl reboot or init 6

Update your system:
→ yum update -y
Install and configure Apache(HTTP)
→ yum install http* -y
To Start http server
→ systemctl start httpd
To check http server
→ open browser and run server ip or http://localhost/
To create virtual host
→ vi /etc/httpd/conf/httpd.conf
DocumentRoot    /var/www/html
ServerName    css4hosting.com
:wq
Restart httpd
→ systemctl restart httpd
To check log of http server
→ vi /var/log/httpd/access_log

→ yum install myql-server -y
To start mysql server
→ service mysqld start
→ mysql_secure_installation
Log in to MySQL:
→ mysql -u root -p

Create a database and user:

→ create database cssinfotech;
→ grant all on cssinfotech.* to 'cssuser' identified by 'password';

Exit MySQL:

→ quit or /q


Install PHP:CentOS/RHEL 7.x:

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

CentOS/RHEL 6.x:

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
→ yum install php56w php56w-opcache
install mysql supported for php
→ yum install php56w-mysql
To restart httpd
→ systemctl restart httpd
To check php running succeful or not
→ vi /var/www/html/info.php
// Show all information, defaults to INFO_ALL
phpinfo();
php info page open.

→ rpm -iUvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
→ yum -y update
→ yum -y install phpMyAdmin
change configuration
→ vim /etc/httpd/conf.d/phpMyAdmin.conf

AddDefaultCharset UTF-8

# Apache 2.4

Require ip 127.0.0.1
Require ip ::1



# Apache 2.2
Order Deny,Allow
Deny from All
Allow from 192.168.1.2      //change ip
Allow from all
Allow from ::1




# Apache 2.4

Require ip 127.0.0.1
Require ip ::1



# Apache 2.2
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from all
Allow from ::1


Download the repo file and install it
→ wget http://epel.mirror.net.in/epel/6/x86_64/epel-release-6-8.noarch.rpm
→ rpm -ivh epel-release-6-8.noarch.rpm
Install exim-mysql package by yum command
→ yum install -y exim-mysql
→ service postfix stop
→ chkconfig postfix off
Set Exim as the default MTA
→ alternatives --config mta
There are 2 programs which provide 'mta'.
  Selection        Command
----------------------------------------------- *+ 1 /usr/sbin/sendmail.postfix
   2 /usr/sbin/sendmail.exim
Enter to keep the current selection[+], or type selection number: 2

Set auto start on boot time
→ chkconfig exim on
→ service exim start
→ /etc/init.d/exim start
Starting exim:                                                 [  OK  ]
0 processes (antirelayd) sent signal 9
Exim Installed Path:
→ whereis exim

exim: /usr/sbin/exim /etc/exim /usr/lib/exim /usr/share/man/man8/exim.8.gz
To find out the version:
→ exim -bV | head -1

Exim version 4.72 #1 built 28-Oct-2012 18:32:42
Basic File Location:
Configuration File : /etc/exim/exim.conf
Main Log File  : /var/log/exim/main.log
Panic Log File : /var/log/exim/panic.log
Do you require to determine whether email sending from the  server
→ mail -s "Test Email" hostfortest@gmail.com < /dev/null

Null message body; hope that's ok
Email sent logs:

→ 2014-01-18 10:09:07 1WxGXz-a010DH-L0 <= root@host.hostname.com U=root P=local S=573
→ 2014-01-18 10:09:10 1WxGXz-a010DH-L0 => hostfortest@gmail.com R=dnslookup T=remote_smtp H=gmail-smtp-in.l.google.com [74.125.25.26]
X=UNKNOWN:ECDHE-RSA-AES128-GCM-SHA256:128
→ 2014-01-18 10:09:10 1WxGXz-a010DH-L0 Completed

We have collected all important information you need as a new webmaster in order to plan and build your own website successfully. There are three main steps you should consider when creating a website: you have to choose a web host, a domain name, and an application to create and manage your website content with.

Choosing a web host is the first step you should consider when starting a website project. In order to have your website available in the WWW, you need a place where to host website. This place is provided by the web hosting provider. The web hosting as a service incorporates the space where your website files are stored, the traffic to your website, and lots of extra services such as firewall protection, email services, FTP access, domain name registration, website building tools and more.

The collection of all your web pages is called your web site .To let others view your web pages, you must publish your web site To publish your work, you must copy your site to a web server . Your own PC can act as a web server if it is connected to a network.Most common is to use an Internet Service Provider (ISP)

ISP stands for Internet Service Provider .An ISP provides Internet Services . A common Internet service is web hosting .its means storing your web site on a public server .its normally includes email services .Web hosting often includes domain name registration .

A domain name is a unique name for a web site, like cssinfotech.in. Domain names must be registered. When domain names are registered, they are added to a large domain name register. In addition, information about the web site, including the IP address, is stored on a DNS server.


© CSS4Hosting 2012. All rights Reserved. Developed by CSSInfotech
Login

Username:

Password:

Sign Up

Name:

Email:

Mobile:

Address: