Changes

Jump to navigation Jump to search
For both servers:
*Mount bear
*Configure Iptables
For lamp:
For pgsql:
*Configure Postgre
 
===Mounting bear===
for the inclusion into fstab or other more sophisticated approaches there is a [http://wiki.centos.org/TipsAndTricks/WindowsShares Centos help page].
 
==Configure Apache==
 
To start Apache:
/etc/init.d/httpd start
 
To set Apache to start at boot:
chkconfig --levels 235 httpd on
 
The main config file is: /etc/httpd/conf/httpd.conf
 
First, confirm your IP address:
/sbin/ifconfig
 
 
===Configure IpTables===
 
For lamp we need a hole for port 80 for the webserver. For pgsql we need a hole for our clientware. General documentation is available in [http://wiki.centos.org/HowTos/Network/IPTables iptables from Centos]
 
Check that iptables is running:
/sbin/lsmod | grep ip_tables
 
View the rules either by:
cat /etc/sysconfig/iptables
/sub/iptables -L
 
Backup the old rules:
cp /etc/sysconfig/iptables /etc/sysconfig/iptables.bak
 
Add a hole (or two):
/sbin/iptables -A INPUT -s 128.32.74.0/24 -p tcp --dport 80 -j ACCEPT
 
Save the table (so it will persist post a reboot):
/sbin/service iptables save
==Data==
Anonymous user

Navigation menu