Installing and Configuring ProFTPD Server in Ubuntu/Debian

Now to install ProFTPD server, run in the terminal.

sudo apt-get install proftpd

While installing, it will ask you to choose the usage type you want for your ProFTPD server, you may choose the best mode that fits your needs.
Select standalone

Step 2: Configure ProFTPD Server

Before start using it, we’ll need to edit some files, the /etc/proftpd/proftpd.conf is the default configuration file for Ubuntu/Debian servers, to start editing it using the vi command, run.

sudo nano /etc/proftpd/proftpd.conf

ServerName: Make it your default server name.
UseIPV6: You may switch it to “Off“, if you don’t use it.
DefaultRoot: Uncomment this line to restrict users with their home folders.
RequireValidShell: Uncomment this line and make it “On” to enable logging in for users, even for those who doesn’t have a valid shell in /etc/shells to log in.
AuthOrder: Uncomment the line to enable the using of local passwords.
Port: This line defines the default port for the FTP server, it is 21 by default. If you want, you can define any custom port here.
SystemLog: The default log file path, you may change it if you want.

After making above changes as suggested, you can save the file.

Now restart the ProFTPD server using this command.

sudo service proftpd restart

Step 3: Creating ProFTPD Users

As you noticed, you are in the default home directory for the “proftpd” user, which isn’t useful for us, thats why we are going to create a new user with the /var/www/ folder as the home folder, so we can access it easily.

To create a FTP user say “myproftpduser” run.

sudo useradd myproftpduser

To create a password for it.

sudo passwd myproftpduser

To change it’s home folder to /var/www/ run.

sudo usermod -m -d /var/www/ myproftpduser

Now restart the ProFTPD server using.

sudo service proftpd restart

And now you can access it from the FTP server easily, you may also use Filezilla or any other FTP client to access your FTP server as well if you want.


LAMP Serverio konfiguraciniai failai silpniems serveriams

Su šiomis konfiguracijomis LAMP serveris puikiausiai veiks turint 256 RAM operatyviosios atminties. Būdėjimo rėžimu LAMP serveris naudos maždaug 50 RAM.

httpd.conf failas randasi /etc/apache2

StartServers 1
MinSpareServers 1
MaxSpareServers 1
ServerLimit 50
MaxClients 50
MaxRequestsPerChild 5000

my.cnf failas randasi /etc/mysql arba etc

[mysqld] user        = mysql
pid-file    = /var/run/mysqld/
socket        = /var/run/mysqld/mysqld.sock
port        = 3306
basedir        = /usr
datadir        = /var/lib/mysql
tmpdir        = /tmp
language    = /usr/share/mysql/english

bind-address        =

key_buffer = 16K
max_allowed_packet = 1M
table_cache = 4
sort_buffer_size = 64K
read_buffer_size = 256K
read_rnd_buffer_size = 256K
net_buffer_length = 2K
thread_stack = 64K
innodb_file_per_table = 1

[mysqldump] quick
max_allowed_packet = 16M

[mysql] no-auto-rehash

[isamchk] key_buffer = 8M
sort_buffer_size = 8M

[myisamchk] key_buffer = 8M
sort_buffer_size = 8M

[mysqlhotcopy] interactive-timeout

Ir pabaigai, jei naudojate phpmyadmin ir prisijungus jums rodo įspėjimus, kad

„Serveris veikia su Suhosin. Prašome perskaityti dokumentaciją dėl galimų problemų.“

Išjungiame Suhosin

suhosin.ini failas randasi /etc/php5/conf.d

Užkomentuojame antrą elutę

; configuration for php suhosin module

ir pakeičiam suhosin.session.encrypt = on į

suhosin.session.encrypt = Off

Viską atlikus perkraunam mysql ir apache2 servisus

/etc/init.d/apache2 restart

/etc/init.d/mysql restart