• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

server configuration for XenForo

14DH01

Active member
#1
hello,
I own a the "mKS 2G" dedicated server. I search the best compromise in order to have the optimun configuration (performence and security).

Debian 6.0 Stable, Debian 7.0, Ubuntu Server 10.04, Ubuntu Server 12.04, Ubuntu Server 12.10,
Ubuntu Server 13.04 (BETA),Red Hat Ent. Linux 5, Red Hat Ent. Linux 6, CentOS 5, CentOS 6,
Gentoo 2013, Slackware 14, ArchLinux 2013,OpenSUSE 12.3, Fedora 17, FreeBSD 8.3, FreeBSD 9.1

:rolleyes: what is the best OS before starting.
 

Tracy Perry

Well-known member
#2
I started on Debian 6 and upgraded to Debian 7. I like the .deb package management system since I was used to it with Ubuntu for my desktop (one of 4 Linux boxes I have at the house).
CentOS for stability is usually recommended, but when I played with it I didn't personally like it that well since it was RPM based. Debian was very easy to set up and is a good cross between stability and some of the latest features. CentOS (from my understanding) is more conservative.
Fail2ban is one important package to install if you go with Debian.
Code:
2013-05-06 19:00:52,170 fail2ban.actions: WARNING [ssh] Ban 222.186.57.33
2013-05-06 19:10:53,079 fail2ban.actions: WARNING [ssh] Unban 222.186.57.33
2013-05-07 08:42:46,577 fail2ban.actions: WARNING [ssh] Ban 199.71.233.98
2013-05-07 08:52:47,288 fail2ban.actions: WARNING [ssh] Unban 199.71.233.98
2013-05-08 12:15:26,575 fail2ban.actions: WARNING [ssh] Ban 114.251.172.67
2013-05-08 12:25:27,302 fail2ban.actions: WARNING [ssh] Unban 114.251.172.67
2013-05-09 05:08:19,800 fail2ban.actions: WARNING [ssh] Ban 121.196.43.157
2013-05-09 05:18:20,505 fail2ban.actions: WARNING [ssh] Unban 121.196.43.157
2013-05-09 10:12:07,030 fail2ban.actions: WARNING [ssh] Ban 192.30.85.135
2013-05-09 10:22:07,730 fail2ban.actions: WARNING [ssh] Unban 192.30.85.135
2013-05-10 10:11:35,837 fail2ban.actions: WARNING [ssh] Ban 198.23.74.170
2013-05-10 10:21:36,573 fail2ban.actions: WARNING [ssh] Unban 198.23.74.170
 

Tracy Perry

Well-known member
#4
Please tell me this is managed hosting and you aren't undertaking this on your own.
If someone is technically competent, managed is not really needed. My VPS is unmanaged (except by me) and I had never set one up before. I HAVE ran numerous flavors of Linux on systems at my house (most of which I did have set up on the 'net with domain names and my router doing forwarding). Never had a problem. If someone is NOT familiar with Linux, iptables, and all the other little necessities, then I agree - a managed solution is preferred if you don't want to get "infested". :D
 

14DH01

Active member
#5
Tracy Perry,​
yes I noticed that a lot of people here recommend it.​
Currently I am running centos with webmin (test) ;)
Biker,​
Not my board is currently in accomodation for partage.il is not yet move to the dedicated ;)
I also read that "Percona" was good for the database( xenforo). Is it easy to install on a "debian"?​
config :​
  • Processor Intel Core 2 Duo E6550 2x 2.33 GHz (4 MB of cache)
  • Architecture 64 bits
  • NIC FastEthernet
  • Memory 2 GB
  • Disks 2x500 GB RAID-1 soft
 

Tracy Perry

Well-known member
#8
:)
My forum is "mysql" the movers runs painless "Percona sql"?
If you currently use mySQL, the my.cnf that it uses is exactly the same. Main difference is Percona has some INNODB enhancements - which is the DB format that xF uses. Took me all of 2 minutes to convert over.
On my VPS I'm running
Debian 7.0
Percona
Nginx
PHP 5.4.4-14 (if I remember correctly)
 

14DH01

Active member
#9
Debian 7.0
Percona
Nginx
PHP 5.4
:sneaky:
In this case I'm going to change my kernel serveur dedié. I'll install everything you advise me.​
I'll probably ask for the installation of the package and put in place for safety.​
I'll let you know in case of trouble ;)
thanks​
 

14DH01

Active member
#12
Distribution : Debian 7.0​
Kernel : 3.2.0-4-amd64
[ last Version 3.2.13 ]
Date : #1 SMP Debian 3.2.41-2​
I see that my kermel is not a day​
I did "apt-get cache search linux image" but no version 3.2.13​
my dépot​
/etc/apt/sources.list​

Code:
deb http://debian.mirrors.ovh.net/debian/ wheezy main
deb-src http://debian.mirrors.ovh.net/debian/ wheezy main
 
deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main
change
Code:
# Debain Main Update
deb http://ftp.de.debian.org/debian stable main contrib non-free
deb-src http://ftp.de.debian.org/debian stable main contrib non-free
 
deb http://ftp.debian.org/debian/ wheezy-updates main contrib non-free
deb-src http://ftp.debian.org/debian/ wheezy-updates main contrib non-free
 
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free
=
root@ks3274156:~# apt-cache search linux-image
linux-headers-3.2.0-4-amd64 - Header files for Linux 3.2.0-4-amd64
linux-headers-3.2.0-4-rt-amd64 - Header files for Linux 3.2.0-4-rt-amd64
linux-image-3.2.0-4-amd64 - Linux 3.2 for 64-bit PCs
linux-image-3.2.0-4-amd64-dbg - Debugging symbols for Linux 3.2.0-4-amd64
linux-image-3.2.0-4-rt-amd64 - Linux 3.2 for 64-bit PCs, PREEMPT_RT
linux-image-3.2.0-4-rt-amd64-dbg - Debugging symbols for Linux 3.2.0-4-rt-amd64
linux-image-2.6-amd64 - Linux for 64-bit PCs (dummy package)
linux-image-amd64 - Linux for 64-bit PCs (meta-package)
linux-image-rt-amd64 - Linux for 64-bit PCs (meta-package), PREEMPT_RT
nvidia-kernel-3.2.0-4-amd64 - NVIDIA binary kernel module for Linux 3.2.0-4-amd6
:rolleyes: I change the deposits I do not see the last Kermel (3.2.13)
 

14DH01

Active member
#18
deb http://repo.percona.com/apt wheezy main
deb-src http://repo.percona.com/apt wheezy main

In your /etc/apt/sources.list
root@ks3274156:~# gpg -a --export CD2EFD2A | apt-key add -
OK


E: Could not find package Percona-server-client-5.5
E: Could not find a package matching the regular expression "Percona-server-client-5.5"​
ks3274156 root @: ~ # apt-get update​
Achieved http://security.debian.org wheezy / updates Release.gpg​
Achieved http://ftp.debian.org wheezy-updates Release.gpg​
Achieved http://security.debian.org wheezy / updates Release​
Http://ftp.de.debian.org reached steady Release.gpg​
Achieved http://ftp.debian.org wheezy-updates Release​
Http://ftp.de.debian.org reached steady Release​
Achieved http://security.debian.org wheezy / updates / main Sources​
Achieved http://security.debian.org wheezy / updates / contrib Sources​
Achieved http://security.debian.org wheezy / updates / non-free Sources​
Achieved http://ftp.debian.org wheezy-updates/main Sources​
Achieved http://security.debian.org wheezy / updates / main amd64 Packages​
Achieved http://security.debian.org wheezy / updates / contrib amd64 Packages​
Achieved http://ftp.debian.org wheezy-updates/contrib Sources​
Achieved http://security.debian.org wheezy / updates / non-free amd64 Packages​
Http://ftp.de.debian.org reached stable / main Sources​
Achieved http://security.debian.org wheezy / updates / contrib Translation-en​
Achieved http://ftp.debian.org wheezy-updates/non-free Sources​
Achieved http://security.debian.org wheezy / updates / main Translation-en​
Achieved http://ftp.debian.org wheezy-updates/main amd64 Packages​
Achieved http://security.debian.org wheezy / updates / non-free Translation-en​
Http://ftp.de.debian.org reached stable / contrib Sources​
Achieved http://ftp.debian.org wheezy-updates/contrib amd64 Packages​
Achieved http://repo.percona.com wheezy Release.gpg​
Http://ftp.de.debian.org reached stable / non-free Sources​
Achieved http://ftp.debian.org wheezy-updates/non-free amd64 Packages​
Achieved http://ftp.debian.org wheezy-updates/contrib Translation-en​
Http://ftp.de.debian.org reached stable / main amd64 Packages​
Achieved http://ftp.debian.org wheezy-updates/main Translation-en​
Achieved http://ftp.debian.org wheezy-updates/non-free Translation-en​
Http://ftp.de.debian.org reached stable / contrib amd64 Packages​
Http://ftp.de.debian.org reached stable / non-free amd64 Packages​
Achieved http://repo.percona.com wheezy Release​
Http://ftp.de.debian.org reached stable / contrib Translation-en​
Http://ftp.de.debian.org reached stable / main Translation-en​
Http://ftp.de.debian.org reached stable / main Translation-en​
Http://ftp.de.debian.org reached stable / non-free Translation-en​
Achieved http://repo.percona.com wheezy / main Sources​
Achieved http://repo.percona.com wheezy / main amd64 Packages​
Ign http://repo.percona.com wheezy / main Translation-en_US​
Ign http://repo.percona.com wheezy / main Translation-en​
Ign http://repo.percona.com wheezy / main Translation-en​
I think "Percona" does not work with debian 7​
Centos, the way forward ;)
I'm not familiar with the command "Yum"
by cons with webmin it will have to go ? but by default it is already working with mysql.

it starts to be complicated for me :oops:
 

Tracy Perry

Well-known member
#20
Since he's on Debian, the RPM will not "play nice".
Also, remember... Percona is not the same as percona.
Case DOES make a difference in Linux - unlike Winblows.