Vnez
Server Developer
- Joined
- Aug 8, 2011
- Messages
- 27
- Reaction score
- 4
Hi, I created this tutorial to help people who are new to Linux. This tutorial has been tested on an Ubuntu 10.04 I hope this tutorial helps you and i hope you will success with your server
I will learn you how to setup Filezilla server, Site, Dos Protection + compile the sources
Remember to always choose yes "Y" when you install.
Lets login via ssh/putty.exe
STEP 1 some easy things
STEP 2 Filezilla Server
write bin/false in the bottom
then press ctrl+o
then press enter (to save it)
and last ctrl+x
Here you gonna choose password too.
Now i want you login and upload the files to the dedicated.
STEP 3 Dos Protection
How to install it?
If you want to see whitelist ip adresses
If you want to edit
If you want to unistall
STEP 4 Setup Site
Choose StandAlone
STEP 5 Compile server sources
Login via filezilla
enter /home/server/yoursources
delete the file theforgottenserver
now back to ssh/putty.exe
cd /home/server/yoursources
Now you see a new file named theforgottenserver
move this file via ftp
move it from sources to serverfolder
Now how to start it?
Now how to kill it
I hope you understand this tutorial and learn from it have a nice day!
This tutorial was created by Vnez
I will learn you how to setup Filezilla server, Site, Dos Protection + compile the sources
Remember to always choose yes "Y" when you install.
Lets login via ssh/putty.exe
STEP 1 some easy things
PHP:
apt-get install sudo nano
apt-get update
apt-get upgrade
STEP 2 Filezilla Server
PHP:
sudo apt-get install proftpd
sudo nano /etc/shells
write bin/false in the bottom
then press ctrl+o
then press enter (to save it)
and last ctrl+x
Here you gonna choose password too.
PHP:
adduser USERNAME
PHP:
cd /home
mkdir server
chmod 777 -R server
cd /var
mkdir www
chmod 777 -R www
Now i want you login and upload the files to the dedicated.
STEP 3 Dos Protection
How to install it?
PHP:
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
wget http://www.inetbase.com/scripts/ddos/install.sh
chmod 0700 install.sh
./install.sh
If you want to see whitelist ip adresses
PHP:
sudo nano /usr/local/ddos/ignore.ip.list.
If you want to edit
PHP:
sudo nano /usr/local/ddos/ddos.conf
If you want to unistall
PHP:
wget http://www.inetbase.com/scripts/ddos/uninstall.ddos
chmod 0700 uninstall.ddos
./uninstall.ddos
STEP 4 Setup Site
Choose StandAlone
PHP:
sudo apt-get install mysql-server apache2 php5 libapache2-mod-php5 phpmyadmin
sudo /etc/init.d/apache2 restart
PHP:
Now enter /var/www remove index.html
Enter cd /var do chmod 777 -R www
Enter cd /var/www/layouts/LAYOUTNAME
make chmod 755 -R images
STEP 5 Compile server sources
PHP:
cd /home
chmod 777 -R server
Login via filezilla
enter /home/server/yoursources
delete the file theforgottenserver
now back to ssh/putty.exe
cd /home/server/yoursources
PHP:
./autogen.sh
./configure --enable-mysql
make -j 2
Now you see a new file named theforgottenserver
move this file via ftp
move it from sources to serverfolder
Now how to start it?
PHP:
cd
screen -S servername
cd /home/server
./theforgottenserver
ctrl+D (To close the screen but it still runs)
Now how to kill it
PHP:
cd
killall -9 theforgottenserver
I hope you understand this tutorial and learn from it have a nice day!
This tutorial was created by Vnez
Last edited: