• 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!

Configuration Ubuntu - From nothing to complete server (TFS, ModernAAC, MySQL, Lighttpd)!

stian

Banned User
Joined
Oct 29, 2009
Messages
3,755
Reaction score
50
Location
Norway
Ok. Begin by downloading the newest Ubuntu server from Ubuntu homepage | Ubuntu (currently 10.04). Burn it to a CD and boot up on your server. People using VPS or dedicated might request reinstallation from the companies.

Note: Choose OpenSSD if you want remote access.

When your done installing (it doesn't need any futher guiding as there is very good explainations, then login, either using SSH (using putty from PuTTY: a free telnet/ssh client) or from the console directly. Now a console window with shell access will start up and you will be able to do basic things on your server. We begin my installing the webserver.

Post upgrade
We don't like the old packages (also 0.4 might depends on newer once):
Code:
sudo apt-get update
sudo apt-get upgrade

VPS/VDS/Dedicated pre step
Often VPS/VDS and dedicated servers comes with apache2. You will have to run a extra step to get rid of it:
Code:
sudo apt-get remove apache2 phpmyadmin mysql-server
Mysql / Webserver
Run this commands:
Code:
sudo apt-get install mysql-server
(It will now ask you for the a password for the root user)

Code:
sudo apt-get install lighttpd php5-cgi
sudo lighty-enable-mod fastcgi
Code:
sudo apt-get install phpmyadmin
(First question is your mysql root password, leave the second black to make a random PMA password, and in the list remember to select "lighttpd").

Try to access your server from: http://yourserver/phpmyadmin/index.php

Next step is to install TFS:
This is the steps for 0.3. 0.4 require you to upload the package to the server using winscp or filezilla first. I'll later add a tutorial step how to update rev without replacing your own edits.

First run:
Code:
cd
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 libluajit-5.1-dev
Then 0.3.6pl1:
Code:
svn co svn://svn.otland.net/public/forgottenserver/tags/0.3.6pl1 tfs
cd tfs
0.4:
Upload the .tar.gz rev to your home directory. And run this:
Code:
tar xf *trunk*.tar.gz
mv *trunk* tfs
chmod 777 -R tfs
cd tfs

Now run this:
Code:
./autogen.sh
./configure --enable-mysql
make -j 2
when it's done, you need to edit the config.lua file (using nano -w config.lua or winscp/filezilla).

Start the server
The server can be started really easy, even with auto restart:
Code:
cd
screen -A -S tfs
cd tfs
while true; do ./theforgottenserver; done

Click Ctrl + A + D to put the screen session into the background. If you want to resume the session run:
Code:
screen -r tfs

To kill the screen run:
Code:
screen -X -S tfs
to make sure TFS is not running, you can also use this:
Code:
killall -9 theforgottenserver
Note: The auto restarter WILL kickin if you don't kill the screen.

Last step is to install ModernAAC Trunk (Cause you guys just love unstable experimental versions :p):
Code:
cd /var/www
sudo rm index.html
sudo svn co svn://svn.tech1.org/modernaac/trunk .
sudo chown www-data -R .
sudo chmod 777 -R .

First go to http://youserver/phpmyadmin/index.php, login and create a new database. Name it "theforgottenserver".
Go to: http://yourserver/, and you'll be redirected to the installation page. Fill out the form, and submit.

To update the modernaac rev run:
Code:
cd /var/www
sudo svn up
Don't forget to upload your own data and mods to TFS! :)

If the server is ready to go public, then please sign it up on VAPus - Otlist ;)
 
Last edited:
Really excellent.

I have problem, Still I do not deal, I execute these commands Okey, but and the files where are?
 
Last edited:
Really excellent.

I have problem, Still I do not deal, I execute these commands Okey, but and the files where are?

/var/www (web).
~/tfs (server).

Type the other problem is resolved.
most do not know what happened now, I installed mysql-server, with the lighttpd php5-cgi
and then the phpmyadmin.
more when I try to access phpmyadmin through: http://ipofdedicated/phpmyadmin/install.php

gives the error to browse:
Oops! This link appears to be corrupt.

I had a typo.

It's:
sudo lighty-enable-mod fastcgi
If you run this step after installing phpmyadmin. Then also run the reload command it tells you to run.
 
I did what you said.
I ran the command that requested of reload.
but it gave this error:
Syntax OK
* Stopping web server lighttpd [ OK ]
Syntax OK
* Starting web server lighttpd 2010-06-25 23:51:56: (network.c.300) can't bind to port: 80 Address already in use
and still giving the same error corrupted.
 
yes, but just give him stop and ran the command you said.
everything was fine without error, but it's still going on the broken link error.

Oops! This link appears to be corrupt.

just saying.
using (Ubuntu 9.10 server) on a dedicated.
and I'm trying to access phpmyadmin from my computer.
 
Last edited:
I do not know friend, but things only happen to me, why am I getting now.
because now it gives the error of corrupted, but the page is blank. -.-"
 
HAHAHAAHHAHA, FabianoBN Do not put brave friend, I am spending for a hard problem as for OT'S tape-worm an OT that 200 players were beginning and of nothing the servant was to have lag and the company says me that the parameters were normal because of it attempt to place it in linux little by little it is learned!
 
is doing what, but fuck that I am at one month trying to install phpmyadmin and when the screen goes blank.
but do not know what to do. also that the fuck out of my pocket $ 107.
 
lol worst.
As I put the database to the server and stuff?
as it will go backup and import backup?
and places will do to the server executable read the database (must be the same thing but who know.)
ubuntu is that instead of improving, it is getting worse.
 
I don't know why it doesn't work for you, but it sure works fine for me.
 
Im having the same problem, and the thing is that on /var/www doesnt exist the folder phpmyadmin.

EDITED:

IM A MOTHERFUCKEBRAIN! I found the solution, and I have 1 hour using LINUX! IM SO EXCITED!

The thing is that you need to start it...

/etc/init.d/mysql start
 
Back
Top