• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Setup Website & Server on the fastest way @ Dedicated Server!

Vightrain

$Name ="Viggy";
Joined
Apr 28, 2012
Messages
227
Reaction score
30
Location
Sweden
Yo, I've been looking around a bit & have not find any decent/clear thread on how to setup a website & server on linux fast/ without complaints.. Therefor I created this thread that can MAYBE be a sticky later on:rolleyes:

This tutorial is for people who actually are willing to invest into a dedicated server & will/can have thier server ready same day, It looks harder than what it is but if you can't put little time on this then you shouldn't start any server. Enjoy!

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/

#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 libboost1.41-dev libboost-system1.41-dev libboost-filesystem1.41-dev libboost-date-time1.41-dev libboost-regex1.41-dev libboost-thread1.41-dev libgmp3-dev liblua5.1-0 liblua5.1-0-dev liblua50 liblua50-dev liblualib50 liblualib50-dev lua50 lua5.1 libsqlite0-dev libsqlite3-dev sqlite3 libmysql++-dev libmysqlclient-dev mysql-client-5.1 mysql-server-5.1 mysql-common libxml2-dev libxml++2.6-dev cpp gcc g++ make automake autoconf pkg-config subversion liblua5.1-sql-mysql-dev liblua5.1-sql-sqlite3-dev zlib1g-dev zlib1g libcrypto++-dev libcrypto++8

#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.


Now your done! Congratz & don't forget to rep me if i helped you!:w00t:
 
Last edited:
Really helpful!

Repped you for this.
 
show image.
Code:
O pacote mysql-client-5.1 não está disponível, mas é referenciado por outro pacote.
Isto pode significar que o pacote está faltando, ficou obsoleto ou
está disponível somente a partir de outra fonte
No entanto, os pacotes a seguir o substituem:
  mysql-client-5.5


O pacote mysql-server-5.1 não está disponível, mas é referenciado por outro pacote.
Isto pode significar que o pacote está faltando, ficou obsoleto ou
está disponível somente a partir de outra fonte
No entanto, os pacotes a seguir o substituem:
  mysql-server-core-5.5 mysql-server-5.5


E: Impossível encontrar o pacote libboost1.41-dev
E: Não foi possível encontrar o pacote através da expressão regular 'libboost1.41-dev'
E: Impossível encontrar o pacote libboost-system1.41-dev
E: Não foi possível encontrar o pacote através da expressão regular 'libboost-system1.41-dev'
E: Impossível encontrar o pacote libboost-filesystem1.41-dev
E: Não foi possível encontrar o pacote através da expressão regular 'libboost-filesystem1.41-dev'
E: Impossível encontrar o pacote libboost-date-time1.41-dev
E: Não foi possível encontrar o pacote através da expressão regular 'libboost-date-time1.41-dev'
E: Impossível encontrar o pacote libboost-regex1.41-dev
E: Não foi possível encontrar o pacote através da expressão regular 'libboost-regex1.41-dev'
E: Impossível encontrar o pacote libboost-thread1.41-dev
E: Não foi possível encontrar o pacote através da expressão regular 'libboost-thread1.41-dev'
E: O pacote 'mysql-client-5.1' não tem candidato para instalação
E: O pacote 'mysql-server-5.1' não tem candidato para instalação
E: Impossível encontrar o pacote libcrypto++8
E: Não foi possível encontrar o pacote através da expressão regular 'libcrypto++8'
 
show image.
Code:
O pacote mysql-client-5.1 não está disponível, mas é referenciado por outro pacote.
Isto pode significar que o pacote está faltando, ficou obsoleto ou
está disponível somente a partir de outra fonte
No entanto, os pacotes a seguir o substituem:
  mysql-client-5.5


O pacote mysql-server-5.1 não está disponível, mas é referenciado por outro pacote.
Isto pode significar que o pacote está faltando, ficou obsoleto ou
está disponível somente a partir de outra fonte
No entanto, os pacotes a seguir o substituem:
  mysql-server-core-5.5 mysql-server-5.5


E: Impossível encontrar o pacote libboost1.41-dev
E: Não foi possível encontrar o pacote através da expressão regular 'libboost1.41-dev'
E: Impossível encontrar o pacote libboost-system1.41-dev
E: Não foi possível encontrar o pacote através da expressão regular 'libboost-system1.41-dev'
E: Impossível encontrar o pacote libboost-filesystem1.41-dev
E: Não foi possível encontrar o pacote através da expressão regular 'libboost-filesystem1.41-dev'
E: Impossível encontrar o pacote libboost-date-time1.41-dev
E: Não foi possível encontrar o pacote através da expressão regular 'libboost-date-time1.41-dev'
E: Impossível encontrar o pacote libboost-regex1.41-dev
E: Não foi possível encontrar o pacote através da expressão regular 'libboost-regex1.41-dev'
E: Impossível encontrar o pacote libboost-thread1.41-dev
E: Não foi possível encontrar o pacote através da expressão regular 'libboost-thread1.41-dev'
E: O pacote 'mysql-client-5.1' não tem candidato para instalação
E: O pacote 'mysql-server-5.1' não tem candidato para instalação
E: Impossível encontrar o pacote libcrypto++8
E: Não foi possível encontrar o pacote através da expressão regular 'libcrypto++8'

Please only english or swedish coz they are the only ones i understand...
 
Code:
The package mysql-client-5.1 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted or
is only available from another source
However, the following packages replace it:
mysql-client-5.5

The package mysql-server-5.1 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted or
is only available from another source
However, the following packages replace it:
mysql-server-core-5.5 mysql-server-5.5


E: Could not find package libboost1.41-dev
E: Could not find package by regular expression 'libboost1.41-dev'
E: Could not find package libboost-dev-system1.41
E: Could not find package by regular expression 'libboost-system1.41-dev'
E: Could not find package libboost-dev-filesystem1.41
E: Could not find package by regular expression 'libboost-filesystem1.41-dev'
E: Could not find package libboost-date-time1.41-dev
E: Could not find package by regular expression 'libboost-date-time1.41-dev'
E: Could not find package libboost-dev-regex1.41
E: Could not find package by regular expression 'libboost-regex1.41-dev'
E: Could not find package libboost-dev-thread1.41
E: Could not find package by regular expression 'libboost-thread1.41-dev'
E: The package 'mysql-client-5.1' has no installation candidate
E: The package 'mysql-server-5.1' has no installation candidate
E: Could not find package libcrypto + +8
E: Could not find package by regular expression 'libcrypto + +8'
 
Hello, when i send the command "Make" it send me a error: Makefile:1: **** missing separator. Stop.

error compile.jpg


anyone know what is it and can help me?
 
Cant install lib's ;\

Code:
 apt-get install libboost1.41-dev libboost-system1.41-dev libboost-filesystem1.41-dev libboost-date-time1.41-dev libboost-regex1.41-dev libboost-thread1.41-dev libgmp3-dev liblua5.1-0 liblua5.1-0-dev liblua50 liblua50-dev liblualib50 liblualib50-dev lua50 lua5.1 libsqlite0-dev libsqlite3-dev sqlite3 libmysql++-dev libmysqlclient-dev mysql-client-5.1 mysql-server-5.1 mysql-common libxml2-dev libxml++2.6-dev cpp gcc g++ make automake autoconf pkg-config subversion liblua5.1-sql-mysql-dev liblua5.1-sql-sqlite3-dev zlib1g-dev zlib1g libcrypto++-dev libcrypto++8
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libboost-date-time1.41-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libboost-filesystem1.41-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libboost-regex1.41-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libboost-system1.41-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libboost-thread1.41-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libboost1.41-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libboost1.41-dev' has no installation candidate
E: Package 'libboost-system1.41-dev' has no installation candidate
E: Package 'libboost-filesystem1.41-dev' has no installation candidate
E: Package 'libboost-date-time1.41-dev' has no installation candidate
E: Package 'libboost-regex1.41-dev' has no installation candidate
E: Package 'libboost-thread1.41-dev' has no installation candidate

If you have any idea why this is happening, please let me know!
 
Cant install lib's ;\

Code:
apt-get install libboost1.41-dev libboost-system1.41-dev libboost-filesystem1.41-dev libboost-date-time1.41-dev libboost-regex1.41-dev libboost-thread1.41-dev libgmp3-dev liblua5.1-0 liblua5.1-0-dev liblua50 liblua50-dev liblualib50 liblualib50-dev lua50 lua5.1 libsqlite0-dev libsqlite3-dev sqlite3 libmysql++-dev libmysqlclient-dev mysql-client-5.1 mysql-server-5.1 mysql-common libxml2-dev libxml++2.6-dev cpp gcc g++ make automake autoconf pkg-config subversion liblua5.1-sql-mysql-dev liblua5.1-sql-sqlite3-dev zlib1g-dev zlib1g libcrypto++-dev libcrypto++8
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libboost-date-time1.41-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libboost-filesystem1.41-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libboost-regex1.41-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libboost-system1.41-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libboost-thread1.41-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libboost1.41-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libboost1.41-dev' has no installation candidate
E: Package 'libboost-system1.41-dev' has no installation candidate
E: Package 'libboost-filesystem1.41-dev' has no installation candidate
E: Package 'libboost-date-time1.41-dev' has no installation candidate
E: Package 'libboost-regex1.41-dev' has no installation candidate
E: Package 'libboost-thread1.41-dev' has no installation candidate

If you have any idea why this is happening, please let me know!


Same here, btw are you using debian wheezy 7.0?
 
Use -
Code:
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
 
Back
Top