Announcement: Thank you for using OTList, visit the F.A.Q Section for more information!
First 10 people to message me gets free advertisment! Message Extrodus

Setting up a Linux Dedicated Server for the First Time! Watch Thread

Extrodus
Administrator

Posts: 112
Tutorial tested and approved by Extrodus on Debian 6.0.

1. Open putty or any kind of ssh program & log into your dedicated server.

2. Type down the following commands..

#sudo su
- Enter your root password

#apt-get install mysql-server mysql-client
- New password for the MySQL "root" user: <-- yourrootsqlpassword
- Repeat password for the MySQL "root" user: <-- yourrootsqlpassword

#apt-get install lighttpd

#apt-get install php5-cgi

#apt-get install nano

#nano /etc/php5/cgi/php.ini
- Search(ctrl+w) for "cgi.fix_pathinfo=1".. If you find this then you are doing this right!

#lighttpd-enable-mod fastcgi

#lighttpd-enable-mod fastcgi-php

#/etc/init.d/lighttpd force-reload
- Now go to your web-browser & go to http://yourdedicatedserverip/index.lighttpd.html/ & it should work!

#apt-get install php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl

#/etc/init.d/lighttpd restart

#apt-get install phpmyadmin
- Choose lighttpd
- Enter same password as mysql.
- Now you have installed Website+phpmyadmin.
- To make it more secure, you need to change url of phpmyadmin path & add a bit dos protection.. Just type the following codes below in terminal.

#mv /usr/share/phpmyadmin /usr/share/phpmyadmin1234*
*This is your new path name.. etc. http://yourdedicatedserverip/phpmyadmin1234/
Move Phpmyadmin folder to /www/

#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

3. Now you want your own layout and website files.. (www/htdocs).

#chmod 777 /var
- Delete /var/www on the dedicated server
- Change name of htdocs to www
- Transfer it via WinSCP or any kind of transfer program to /var/

#chmod 777 /var
- open /var/www/config/config.ini & change path to /home/serverfolder

4. Before we can compile sources you need to have them.. so you need to download sources & transfer your serverfolder to the dedicated server(i would suggest into /home/..

- Use your own sources or download sources at your needs HERE.
- Transfer your server to the dedicated server (/home/) by using WinSCP or any kind of transfer program.

5. Now we will compile the server by typing the following below.

#apt-get install build-essential libxml2-dev libxml++2.6-dev liblua5.1-0-dev libboost-all-dev libmysql++-dev libgmp3-dev liblua5.1-sql-mysql-dev liblua5.1-sql-sqlite-dev libsqlite3-dev zlib1g-dev

#chmod 777 -R /home/sourcesfolder

#cd /home/sourcesfolder

#./autogen.sh

#./configure --enable-mysql --enable-server-diag --enable-root-permission

#nano Makefile
- Search(ctrl+w) for "OPT".. If you find this then you can add "-D__WAR_SYSTEM__"
- Press ctrl+o, enter & then ctrl+X.

#make
- Wait until it's done and then continue.

#chmod +x /home/sourcefolder/theforgottenserver

#cp /home/sourcefolder/theforgottenserver /home/serverfolder/theforgottenserver

Command for starting server & restarting when crashin & closing it.:

#cd /home/serverfolder

Command for starting server:
#./theforgotten

Command for closing server:
#ctrl+c

Command for starting server and restarts automatic if crashed:
#while true; do ./theforgottenserver; done

When you run server on dedicated you need to attach ./theforgottenserver orelse it will close when you close putty. To avoid that do the following.

#cd /home/serverfolder

#screen ./theforgottenserver
- Press CTRL+A+D to close putty without closing server

#screen -r
- This is if you want to show the servers terminal again.


Extra Commands to try if you run into problems:
Download Libraries command doesn't work
sudo apt-get install subversion autoconf build-essential pkg-config libboost-dev libgmp3-dev libxml2-dev liblua5.1-0-dev libmysqlclient-dev libcrypto++-dev ccache libboost-filesystem-dev libboost-regex-dev libboost-system-dev libboost-thread-dev screen libssl-dev

Auto Reconf not installed
install autoreconf
sudo apt-get install dh-autoreconf

Lua Header not found
apt-get install libncurses5-dev

And after, try this one:
wget http://www.lua.org/ftp/lua-5.1.4.tar.gz
tar -xzvf lua*
cd lua*
make linux && make install
then do ./configure again
Created 21 December 2013 02:14:49 Updated 21 December 2013 18:21:14#post-15
Averatec
Administrator

Posts: 25
my suggestion is DO NOT USE PHPMYADMIN, if you really need it then after finished work, delete it for security reasons : )
Created 21 December 2013 12:47:10#post-30
Norelis

Posts: 82
Reduction of lag

Hello,

This post is dedicated for those who suffer from lag and high ping, NoPing is software that greatly optimizes your gameplay.

With unique technology, NoPing Tunnel traces the best route to the server of your favorite online game.

Gaining up to 50% improvement depending on your internet!

Test for 3 days for free, if you register at the link below:

nopi.ng/forum23

Watch the video below with and without NoPing!
Created 24 January 2018 20:11:32#post-10193
Who is viewing this thread?
nobody
Copyright OTList.net Follow us on Facebook