Installing Operating Server:
Enabling the Internet Access:
Setting up Hosts:
Adding Servers: (For inter server communications)
Check Server Setting and Configuration:
Installing WebServer:
yum -y install openssh-server openssh-clients
chkconfig iptables off
yum install mysql mysql-server php-mysql
chkconfig mysqld on
service mysqld start
mysql
use mysql
update user set password for 'root'@'pcvcrm'= password ('AppServerDB');
update user set password for 'root'@'localhost'= password ('AppServerDB');
update user set password for 'root'@'127.0.0.1'= password ('AppServerDB');
yum install httpd
chkconfig httpd on
/etc/init.d/httpd start
yum install php
yum update php
setsebool -P httpd_can_network_connect=1
yum install zip
MSSQL
rpm -ivh http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
cd /etc/yum.repos.d/
wget http://rpms.famillecollet.com/enterprise/remi.repo
yum install freetds
or
freetds-0.82-1.x86_64
yum install freetds-devel
yum install --enablerepo=remi php-mssql
yum install unixODBC unixODBC-devel libtool-ltdl libtool-ltdl-devels
yum install zend-server-ce-php-5.2
- Install Cent OS on the Machine (Follow the simple steps as per the OS installation Guide).
- (I will update these)
- Set IP address for your server: (To Setup local Ping and local network access)
- cd /etc/sysconfig/network-scripts/
- cp ifcfg-eth0 ifcfg-eth0-bak
- cp ifcfg-eth1 ifcfg-eth1-bak
- vi ifcfg-eth0
- Add/Edit (As per requirement):
- DEVICE="eth0"
- HWADDR="XX:XX:XX:XX:XX:XX"
- NM_CONTROLLED="yes"
- ONBOOT=yes
- BOOTPROTO=none
- IPADDR=XXX.XXX.XXX.XXX
- NETMASK=XXX.XXX.XXX.XXX
- GATEWAY=XXX.XXX.XXX.XXX
- Save the file
- Set NS Settings:
- cd /etc/sysconfig/
- vi ./network
- Add/Edit:
- NETWORKING=yes
- HOSTNAME=yourhost.name
- GATEWAY=XXX.XXX.XXX.XXX
- service network restart
- Check the ip address: ifconfig
- If works fine go to step 6 or go to step 1 (Or please leave a comment, I will get back to you and try to resolve and update the post).
- Reboot the server just to make sure the changes are made.
- Ping server from one of the machine on network. Ping from different server and other machines etc. just to make sure everything is configured properly.
Enabling the Internet Access:
- Make sure the IP has the internet access (your firewall settings).
- ssh root@XXX.XXX.XXX.XXX to check if login works from other stations (you don't want to go to the machine every-time).
- ping an external site (e.g. ping bing.com), and check the results.
- Network look-up (e.g.
nslookup bing.com
). - If not make the following changes:
- vi /etc/resolv.conf
- Add/Edit: Add the Gateways
- nameserver XXX.XXX.XXX.XXX
- nameserver XXX.XXX.XXX.XXX
- Reboot the server just to make sure the changes are made.
- If works fine go to fire wall settings else repeat from step 1 (Or please leave a comment, I will get back to you and try to resolve and update the post).
Setting up Hosts:
Adding Servers: (For inter server communications)
Check Server Setting and Configuration:
- Task: Display current active Internet connections (servers and established connection)
- $ netstat -nat
- Task: Display open ports
- $ sudo netstat -tulpOR$ sudo netstat -tulpn
- Task: Display network interfaces stats (RX/TX etc)
- $ netstat -i
- Task: Display output for active/established connections only
- $ netstat -e
- $ netstat -te
- $ netstat -tue
Installing WebServer:
- check if yum is installed: ls -l /etc/yum.repos.d/
- yum install apache2
- yum install php5.3
- yum install mysql5
yum -y install openssh-server openssh-clients
chkconfig iptables off
yum install mysql mysql-server php-mysql
chkconfig mysqld on
service mysqld start
mysql
use mysql
update user set password for 'root'@'pcvcrm'= password ('AppServerDB');
update user set password for 'root'@'localhost'= password ('AppServerDB');
update user set password for 'root'@'127.0.0.1'= password ('AppServerDB');
yum install httpd
chkconfig httpd on
/etc/init.d/httpd start
yum install php
yum update php
setsebool -P httpd_can_network_connect=1
yum install zip
MSSQL
rpm -ivh http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
cd /etc/yum.repos.d/
wget http://rpms.famillecollet.com/enterprise/remi.repo
yum install freetds
or
freetds-0.82-1.x86_64
yum install freetds-devel
yum install --enablerepo=remi php-mssql
yum install unixODBC unixODBC-devel libtool-ltdl libtool-ltdl-devels
yum install zend-server-ce-php-5.2
No comments:
Post a Comment