Labels

Showing posts with label Linux Servers. Show all posts
Showing posts with label Linux Servers. Show all posts

Configuring the web server (Apache Server)

01. Check the necessary RPM
#rpm –q httpd

02. Developed a web site and copied it in to
/var/www/html folder
If you have multiple web sites you can keep them in sub folders in the above location
The web site home page must be named as index followed by the web developing language extension.
Ex – index.htm, index.php , index.asp

03. Publishing the web site
#nano /etc/httpd/conf/httpd.conf
Go to the end of file
Ex – www

<VirtualHost 192.168.2.101>  // IP for the web site in DNS
ServerAdmin webmaster@server.lk  // web server admin email for feedback
DocumentRoot /var/www/html/websitefoldername   //web site location
ServerName www.server.lk   //web site name
</VirtualHost>

04. Save and Exit the file

05. Start the service
#service httpd start
#chkconfig httpd on

Configuring Squid Proxy Server

Sure Squid server is a popular open source GPLd proxy and web cache. It has a variety of uses, from speeding up a web server by caching repeated requests, to caching web, name server query , and other network lookups for a group of people sharing network resources. It is primarily designed to run on Linux / Unix-like systems. Squid is a high-performance proxy caching server for Web clients, supporting FTP, gopher, and HTTP data objects. Unlike traditional caching software, Squid handles all requests in a single, non-blocking, I/O-driven process. Squid keeps meta data and especially hot objects cached in RAM, caches DNS lookups, supports non-blocking DNS lookups, and implements negative caching of failed requests. Squid consists of a main server program squid, a Domain Name System lookup program (dnsserver), a program for retrieving FTP data (ftpget), and some management and client tools.

1. Check the necessary RPM
#rpm –q squid

if it's not installed first install it
#yum install squid

2. Set the default gateway and the DNS on the proxy server, so it has a direct connection as an internet.
#system-config-network-tui

3. Give the information about your local network on the proxy server.
#nano /etc/squid/squid.conf
Press CTRL + W
Search – our_networks

4. Uncomment this lines
#acl our_networks src 192.168.1.0/24 192.168.2.0/24 //Remove # mark
#http_access allow our_networks //Remove # mark

Configuring a Samba Server (windows file server)

1.Check the necessary rpm
#rpm -q samba

2.set the samba work group name according to windows work group or domain name.
#nano /etc/samba/smb.conf
Press CTRL + W
Search >>>> “ mygroup
delete the mygroup and type your windows work group or domain name

3.Start the samba service
#service smb start
#chkconfig smb on

Configuring a FTP server (VSFTPD)

01. Check the necessary RPM
[root@daddylinux~]#rpm –q vsftpd //very secure file transfer protocol daemon

02. Start the FTP service
[root@daddylinux~]#service vsftpd start
[root@daddylinux~]#chkconfig vsftpd on

03. The FTP service will be automatically configured in the following two different ways……
 Public FTP - No username or password necessary
 Private FTP – A valid username and password is necessary

Public FTP
If you need any body to access files from your FTP server without given username and password, you will have copy all the files that other people need to download in to /var/ftp folder.

Go to the web browser and enter the your FTP address (http://ftp.server.lk)