NFS:  Provide Network shares to specific Clients
(I am using NFS server and NFS clients for this context, but actually no NFS server exists, the server which is sharing NFS files assumed as NFS server and the clients or servers which are accessing those NFS files are assumed as NFS clients)
On the NFS server Side (server IP 192.168.2.250)
Install necessary packages,
#yum install nfs-utils rpcbind
#/etc/init.d/nfs start
#/etc/init.d/rpcbind start
Create NFS shares:
Edit file /etc/exportfs
Inside /etc/exportfs add the mount point and share permissions,
#nano /etc/exportfs
#add the shares
Download As PDF

Virtual Host configuration in Plesk Control Panel

There are two files in Plesk to configure hosts. One is http.include and another is vhost.conf.
By default Plesk uses http.include file as the default config file for creating new domains.
Both http.include and vhosts.conf files will be under
/var/www/vhosts/example.com/conf/

Virtual Host file in Plesk panel is used to redirect (not actually redirecting the domain – change physical location of httpdocs folder). In other words, two or more domain names are sharing single physical path.

Example config assumes, existing domain as domain.com and newdomain as newdomain.com
Create a new vhost.conf under
/var/www/vhosts/newdomain.com/conf/vhost.conf
Download As PDF

Add an IP address to CentOS server

Sometimes due to business growth or testing purposes, we do need an IP address assigned to the server interface. When I came across with adding IP to server, it was little annoying. I followed many number of Google results but ended with wrong configuration.
Finally I myself found out that simply restarting network after adding IP address would be enough.
To add IP,
Make a copy of existing interface config in /etc/sysconfig/network-scripts/ifcfg-eth0 to ifcfg-eth0:0
Get in to the folder,

#cd /etc/sysconfig/netwok-scripts
#cp ifcfg-eth0 ifcfg-eth0:0
Edit newly created interface,
#nano ifcfg-eth0:0
Change the device to eth0:0
And change the IP address,

Download As PDF