Many How to's Related To Apache Web Server Is Going To Come On linuxnix.com
1 comments 12/14/2010 04:27:00 PM Posted by Surendra Kumar AnneLabels: Advanced Servers, Apache, Basic-Servers, Servers, Web Servers
Hi all,
From today on words we are planing to provide in depth knowledge base on many Howto's related to Apache web server. Some of the howto's which we are going to present are as follows.
2. Apache installation[Redhat/Debian]
3. Apache installation through source
4. Apache ip based web access
5. Apache host based web access
5a.Hosting multiple SSL websites on single host
7. Apache SSL based web access
8. Apache integration with AD(Active Directory) authentication
12.Apache fine tuning
Getting mulitple files from ftp server with out any prompt
0 comments 4/26/2009 07:52:00 AM Posted by Surendra Kumar AnneLabels: Basic-Servers
How to get lot of multiple file from server I am using
FTP command(mget ...), but each file asked "yes/no", every file should be put 'yes'
then 'Enter'?
we can resolve this issue in two ways
1)when you are accessing FTP server use -i option which is nothing but interactive way to get files from FTP server, actually this -i option will disable iteractive download of files from server.
Syntax:ftp -i server-ip/servername
#ftp -i 222.1.89.1
2)This is used when you are middle of the transaction you can use prompt command in ftp mode to get multiple files with out any prompt, here is the example and this is for that session
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
-rw-r--r-- 1 1005 0 47 Apr 11 19:37 file1.txt
-rw-r--r-- 1 1005 0 47 Apr 11 19:37 file2.txt
-rw-r--r-- 1 1005 0 47 Apr 11 19:37 file3.txt
-rw-r--r-- 1 1005 0 47 Apr 11 19:37 file4.txt
226 Directory send OK.
ftp> prompt
Interactive mode off.
ftp> mget *
local: file1.txt remote: file1.txt
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for file1.txt (47 bytes).
226 File send OK.
47 bytes received in 0.00 secs (72.1 kB/s)
local: file2.txt remote: file2.txt
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for file2.txt (47 bytes).
226 File send OK.
47 bytes received in 0.00 secs (88.3 kB/s)
local: file3.txt remote: file3.txt
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for file3.txt (47 bytes).
226 File send OK.
47 bytes received in 0.00 secs (136.2 kB/s)
local: file4.txt remote: file4.txt
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for file4.txt (47 bytes).
226 File send OK.
47 bytes received in 0.00 secs (136.6 kB/s)
TFTP Implementaion In Linux
0 comments 6/09/2008 12:36:00 AM Posted by Surendra Kumar AnneLabels: Basic-Servers
TFTP server is an important service for Network engineers, because they will be using this TFTP server for coping big IOS(Inter networking Operating System)files to routers, So as a Linux administrators we have to install and configure tftp server.
So why these network guys uses TFTP server for coping IOS images? why not ftp, scp, rcp etc?
Ans : Because TFTP user use UDP protocal for sending data, so its bit faster due to its unrelaiable way of sending data. So in early days one a serial port is connected between router and server so the data transmission is very slow, so they started using TFTP server as file server to copy images.
Here are the steps to configure TFTP server
Step1 : Install TFTP server
#yum install tftp-server
or
#rpm -ivh tftp-server*
Here we have to make a note that TFTP, telnet, rsync, talk services are run under one single service Xinted.
Step2 : Configuring tfpt server
#cd /etc/xinetd.d
#vi tftp
Edit the tftp configuration file as follows, save it and exit.
[root@test xinetd.d]# vi tftp
# default: off
# description: The tftp server serves files using the trivial file transfer \
# protocol. The tftp protocol is often used to boot diskless \
# workstations, download configuration files to network-aware printers, \
# and to start the installation process for some operating systems.
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
In the above file what we have specified was please use protocol as UDP and server command, then tftp dump location(/tftpboot), its like ftp server dump(/var/ftp/pub)location then disable=no means TFTP service should be enabled other things no need to edit.
Step3 : Give full permissions to /tftpboot
#chmod 777 /tftpboot
Step4 : Restart the xinetd serive, so that the tftp server configs will be updated
#service xinetd restart
Step5 : Permanently on Xinetd service
#chkconfig xinetd on