[Linux]Setting up an Rs2 server with Fedora 6
Well, im not sure if anyone has posted a tutorial on this so id thought id do it to help out the people who are going to buy a vps or dedi.
#1. First of all either buy dedi or download fedora with [Only registered and activated users can see links. Click Here To Register...], i bought the vps from [Only registered and activated users can see links. Click Here To Register...], it's sufficent enough.
#2. Login to your control panel [If you bought the vps] if not, wait until we get to the terminal part.
#3 Enable your mysql database, and create the databases needed.
#4.If you downloaded the fedora and set it up you needed to setup apache, mysql and PHP, type this into your terminal [can be putty]
[PHP]1. Install Apache (httpd), PHP, MySQL (server and client), and the component that allows php to talk to mysql.
yum -y install httpd php mysql mysql-server php-mysql
2. Configure the new services to start automatically
/sbin/chkconfig httpd on
/sbin/chkconfig --add mysqld [this is not required with FC4 and above]
/sbin/chkconfig mysqld on
/sbin/service httpd start
/sbin/service mysqld start
3. IMPORTANT! Set up the mysql database root password. Without a password, ANY user on the box can login to mysql as database root. The mysql root account is a separate password from the machine root account.
mysqladmin -u root password 'new-password' [quotes are required]
4. Make additional security-related changes to mysql.
mysql -u root -p
mysql> DROP DATABASE test; [removes the test database]
mysql> DELETE FROM mysql.user WHERE user = ''; [Removes anonymous access]
mysql> FLUSH PRIVILEGES;
5. Following the above steps, the document root for Apache is /var/www/html/
Create a test PHP script (such as phpinfo.php) and place it in the document root. A useful test script sample:
<?php
phpinfo();
?>
6. Create a database and database user for your data. You will use this database and user name in your database connection string. The GRANT statement actually creates a new MySQL user account.
mysql> CREATE DATABASE web_db;
mysql> GRANT ALL PRIVILEGES ON web_db.* TO 'web_user'@'localhost' IDENTIFIED BY 'thepassword';
Once it's all setup type in the terminal
create database [name];
[/PHP]
#5. Once mysql is all setup you need to compress and upload your server, to extract it you obviously need winrar, So let's download it!
[php]# yum install unrar[/php]
If that doesn't work.
[PHP]If any of above, methods is not working for you, download binary package from official rarlab site:
$ cd /tmp
$ wget http://www.rarlab.com/rar/rarlinux-3.6.0.tar.gz
Untar file
$ tar -zxvf rarlinux-3.6.0.tar.gz
Both unrar and rar commands are located in rar sub-directory. Just go to rar directory:
$ cd rar
$ ./unrar
Now copy rar and unrar to /bin directory:
# cp rar unrar /bin[/PHP]
#6 How to extract your server
Make sure you're in the correct place where you put your compressed server in the first place
[PHP]cd [Directory here][/PHP]
once you're in there type:
[PHP]unrar e [Filename].rar[/PHP]
#7 Once it's extracted you obviously need jre to download to run the server
so in the terminal type
[PHP]wget [Direct link to jre, LINUX VERSION] ~ Not sure which version you want to use so get the link yourself[/PHP]
Then once everything is installed go into your server folder, if you're not already in it by
[PHP]cd [Servername][/PHP]
then type ./Run.bat [or whatever your run batch file is.
And it should be setup.
Post all errors here, and ill see if i can help.