BDMV.INFO

Title: [2012.09.25] How to Intall ProFTPD on Ubuntu 12.04 LTS [Print this page]

author: 夢    time: 2012-9-26 01:20     Title: [2012.09.25] How to Intall ProFTPD on Ubuntu 12.04 LTS

First, because of something warning is happened in ubuntu 12.04, we don't use the apt-get to install proftpd and try to complier the source code to install the proftpd and openssl.

Second, we refer the below introduction step by step to finish the installing the proftpd.
1. Go to the openssl offical website and download the last version openssl, then complier and install openssl.
  1. wget http://www.openssl.org/source/openssl-1.0.1c.tar.gz
  2. tar xzvf openssl-1.0.1c.tar.gz
  3. cd openssl-1.0.1c
  4. ./config && make && sudo make install
Copy the Code

2.Go to the proftpd offical website and download the last version proftpd, then complier and install openssl.
  1. wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.4b.tar.gz
  2. tar xzvf proftpd-1.3.4b.tar.gz
  3. cd proftpd-1.3.4b
  4. ./configure && make && sudo make install
Copy the Code

3.The proftpd is installing at /usr/local/sbin and the script proftpd.conf is locating at /usr/local/etc/proftpd.conf, then we need fix the proftpd.conf adding some other new parameters (setp B) and add /etc/init.d/proftpd script to let proftpd autostart when the server reboot.
  1. #!/bin/sh
  2. # Begin /etc/init.d/proftpd

  3. check_status()
  4. {
  5.   if [ $? = 0 ]
  6.   then
  7.     echo "OK"
  8.   else
  9.     echo "FAILED"
  10.   fi
  11. }

  12. case "$1" in
  13.   start)
  14.     echo -n "Starting Pro FTP daemon..."
  15.     start-stop-daemon -S -q -o -x /usr/local/sbin/proftpd
  16.     check_status
  17.     ;;

  18.   stop)
  19.     echo -n "Stopping Pro FTP daemon..."
  20.     start-stop-daemon -K -q -o -x /usr/local/sbin/proftpd
  21.     check_status
  22.     ;;

  23.   restart)
  24.     echo -n "Stopping Pro FTP daemon..."
  25.     start-stop-daemon -K -q -o -x /usr/local/sbin/proftpd
  26.     check_status

  27.     sleep 1

  28.     echo -n "Starting Pro FTP daemon..."
  29.     start-stop-daemon -S -q -o -x /usr/local/sbin/proftpd
  30.     check_status
  31.     ;;

  32.   *)
  33.     echo "Usage: $0 {start|stop|restart}"
  34.     ;;

  35. esac

  36. # End /etc/init.d/proftpd
Copy the Code

Change the promission  and restart the proftpd, then ftp server is actived.
  1. chmod 755 /etc/init.d/proftpd
Copy the Code


--REFERENCE--
http://archive.linuxfromscratch.org/lfs-museum/2.3.1/LFS-BOOK-2.3.1-HTML/x1882.html






Welcome to BDMV.INFO (http://142.4.218.37/snow/) Powered by Discuz! X2