Sunday, March 20, 2011

LINUX Server Setup (WEB SERVER or APACHE)

WEB SERVER (Apache)

Service : http

Find File
# cd /Media/(if using Fedora CD)
# ls | grep ( using for grabbing file only)

Install
# yum install httpd (if there is NOT http in fedora packages)
# rpm –ivh (if there is http in fedora packages)

Check Status
# rpm –q httpd

Up service
# service httpd status – check status
# service httpd start – start service
# service httpd restart – restart service
# service httpd stop - stop service

Configuration File
# vim /etc/httpd/conf/* (httpd.conf)

Parameter : Null

Additional info :

•SELinux turn off
# vim /etc/selinux/config
- set selinux = disabled (reboot pc after set)

•iptables (firewall) turn off
# service iptables stop
(Also can set by using command #setup service tool)

•Uninstall httpd # yum uninstall httpd
# rpm –e httpd

•Data file located at /var/www/html
LINUX Server Setup (SAMBA SERVER)

Samba Server


service :samba

Find File
#cd /Media/(if using fedora CD)
# ls| grep (using for grabbing file only)

Install
#yum install samba (if there is No smb in fedora packages)
#rpm -ivh (if there is smb in fedora packages)

Check Status
#rpm -q samba

up Service
#service smb status -check status
#service smb start -start service
#service smb stop -stop service
#service smb restart -restart service

Configuration File :#etc/samba/smb.conf

Parameter
Security = share | user | server
(Replace : security = share;no need smbpasssword)
create share folder
demo
path =/demo
writable = yes
browseable = yes
public = yes


Additional


Selinux turn off
#vim etc/selinux/config (set selinux = disabled)

iptables (firewall) turn off
#service iptables stop (also can set by using command #setup - service tool)

give user authority
#mkdir demo
#chmod -R 777 /demo (full access)

create user account & password
#adduser demo
#passwd demo
#smbpasswd -a demo
(restart samba)

uninstall samba
#yum uninstall samba
#rpm -e samba
LINUX Server Setup (DHCP SERVER)

DHCP SERVER

Service : dhcp

Find File
# cd /Media/(if using Fedora CD)
# ls | grep ( using for grabbing file only)

Install
# yum install dhcpd (if there is NO dhcp in fedora packages)
# rpm –ivh (if there is dhcp in fedora packages)

Check Status
# rpm –q dhcpd

Up service
# service dhcpd status – check status
# service dhcpd start – start service
# service dhcpd restart – restart service
# service dhcpd stop - stop service

Parameter
vim /etc/dhcpd.conf – modify dhcp scope

Additional info :

•SELinux turn off
# vim /etc/selinux/config
- set selinux = disabled (reboot pc after set)

•iptables (firewall) turn off
# service iptables stop
(Also can set by using command #setup service tool)

•Uninstall dhcpd
# yum uninstall dhcpd
# rpm –e dhcpd