Wow: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m 12 revisions |
||
(9 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
Wow server setup | Wow server setup | ||
<pre> | |||
yum install -y vim | |||
vim /etc/yum.repos.d/CentOS-Testing.repo | |||
</pre> | |||
<pre> | <pre> | ||
# CentOS-Testing: | |||
# !!!! CAUTION !!!! | |||
# This repository is a proving grounds for packages on their way to CentOSPlus and CentOS Extras. | |||
# They may or may not replace core CentOS packages, and are not guaranteed to function properly. | |||
# These packages build and install, but are waiting for feedback from testers as to | |||
# functionality and stability. Packages in this repository will come and go during the | |||
# development period, so it should not be left enabled or used on production systems without due | |||
# consideration. | |||
[c5-testing] | |||
name=CentOS-5 Testing | |||
baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/ | |||
enabled=1 | |||
gpgcheck=1 | |||
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing | |||
includepkgs=php* | |||
</pre> | |||
Now for system prep | |||
<pre> | |||
yum groupinstall -y "X Software Development" | |||
yum groupinstall -y "Development Libraries" | |||
yum groupinstall -y "Development Tools" | |||
yum groupinstall -y "GNOME Software Development" | |||
yum groupinstall -y "KDE Software Development" | |||
yum groupinstall -y "Java Development" | |||
yum groupinstall -y "Legacy Software Development" | |||
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm | |||
rpm -ivh rpmforge-release-0.5.1-1.el5.rf.i386.rpm | |||
mkdir /usr/local/src/php | mkdir /usr/local/src/php | ||
mkdir /usr/local/src/mysql | mkdir /usr/local/src/mysql | ||
</pre> | |||
Now onto mysql | |||
<pre> | |||
cd /usr/local/src/mysql | cd /usr/local/src/mysql | ||
wget http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-client-5.1.50-1.glibc23.i386.rpm/from/http://mysql.mirrors.hoobly.com/ | wget http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-client-5.1.50-1.glibc23.i386.rpm/from/http://mysql.mirrors.hoobly.com/ | ||
Line 16: | Line 47: | ||
wget http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-server-5.1.50-1.glibc23.i386.rpm/from/http://mysql.mirrors.hoobly.com/ | wget http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-server-5.1.50-1.glibc23.i386.rpm/from/http://mysql.mirrors.hoobly.com/ | ||
wget http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-shared-5.1.50-1.glibc23.i386.rpm/from/http://mysql.mirrors.hoobly.com/ | wget http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-shared-5.1.50-1.glibc23.i386.rpm/from/http://mysql.mirrors.hoobly.com/ | ||
rpm -i MySQL-client-5.1.50-1.glibc23.i386.rpm | |||
rpm -i MySQL-debuginfo-5.1.50-1.glibc23.i386.rpm | |||
rpm -i MySQL-devel-5.1.50-1.glibc23.i386.rpm | |||
rpm -i MySQL-embedded-5.1.50-1.glibc23.i386.rpm | |||
rpm -i MySQL-shared-compat-5.1.50-1.glibc23.i386.rpm | |||
rpm -i MySQL-server-5.1.50-1.glibc23.i386.rpm | |||
rpm -i MySQL-shared-5.1.50-1.glibc23.i386.rpm | |||
/usr/bin/mysqladmin -u root password j0erulzall | /usr/bin/mysqladmin -u root password j0erulzall | ||
touch /root/.my.cnf && echo [client] >> /root/.my.cnf && echo user="root" >> /root/.my.cnf && echo pass="j0erulzall" >> /root/.my.cnf | touch /root/.my.cnf && echo [client] >> /root/.my.cnf && echo user="root" >> /root/.my.cnf && echo pass="j0erulzall" >> /root/.my.cnf | ||
vim /etc/my.cnf | |||
</pre> | |||
Now onto mysql configuration paste the following into your newly made my.cnf file. | |||
<pre> | |||
[mysqld] | |||
max_connections = 250 | |||
safe-show-database | |||
skip-locking | |||
key_buffer = 128M | |||
max_allowed_packet = 1M | |||
table_cache = 256 | |||
sort_buffer_size = 2M | |||
read_buffer_size = 2M | |||
read_rnd_buffer_size = 2M | |||
myisam_sort_buffer_size = 64M | |||
query_cache_size= 32M | |||
max_heap_table_size = 48M | |||
tmp_table_size = 48M | |||
thread_cache_size = 8 | |||
wait_timeout = 30 | |||
interactive_timeout = 300 | |||
[mysqldump] | |||
quick | |||
max_allowed_packet = 16M | |||
[mysql] | |||
no-auto-rehash | |||
[isamchk] | |||
key_buffer = 96M | |||
sort_buffer_size = 64M | |||
read_buffer = 2M | |||
write_buffer = 2M | |||
[myisamchk] | |||
key_buffer = 96M | |||
sort_buffer_size = 64M | |||
read_buffer = 2M | |||
write_buffer = 2M | |||
</pre> | |||
Now onto php | |||
<pre> | |||
cd /usr/local/src/php | cd /usr/local/src/php | ||
yum install -y httpd | |||
wget http://dev.centos.org/centos/5/testing/i386/RPMS/php-5.2.6-2.el5s2.i386.rpm | wget http://dev.centos.org/centos/5/testing/i386/RPMS/php-5.2.6-2.el5s2.i386.rpm | ||
wget http://dev.centos.org/centos/5/testing/i386/RPMS/php-bcmath-5.2.6-2.el5s2.i386.rpm | wget http://dev.centos.org/centos/5/testing/i386/RPMS/php-bcmath-5.2.6-2.el5s2.i386.rpm | ||
Line 55: | Line 142: | ||
rpm -i php-pgsql-5.2.6-2.el5s2.i386.rpm | rpm -i php-pgsql-5.2.6-2.el5s2.i386.rpm | ||
rpm -i php-imap-5.2.6-2.el5s2.i386.rpm | rpm -i php-imap-5.2.6-2.el5s2.i386.rpm | ||
</pre> | |||
Wow essentials next | |||
<pre> | |||
yum install -y gcc-g++ mercurial wget links zip unzip unrar | |||
yum install -y openssl | |||
yum install -y cmake | |||
yum install -y screen | |||
yum install -y php-mcrypt | yum install -y php-mcrypt | ||
yum update -y | yum update -y | ||
/etc/init.d/httpd restart | |||
/etc/init.d/mysql restart | |||
chkconfig httpd on | |||
chkconfig mysql on | |||
</pre> | </pre> |
Latest revision as of 23:51, 23 October 2014
Wow server setup
yum install -y vim vim /etc/yum.repos.d/CentOS-Testing.repo
# CentOS-Testing: # !!!! CAUTION !!!! # This repository is a proving grounds for packages on their way to CentOSPlus and CentOS Extras. # They may or may not replace core CentOS packages, and are not guaranteed to function properly. # These packages build and install, but are waiting for feedback from testers as to # functionality and stability. Packages in this repository will come and go during the # development period, so it should not be left enabled or used on production systems without due # consideration. [c5-testing] name=CentOS-5 Testing baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/ enabled=1 gpgcheck=1 gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing includepkgs=php*
Now for system prep
yum groupinstall -y "X Software Development" yum groupinstall -y "Development Libraries" yum groupinstall -y "Development Tools" yum groupinstall -y "GNOME Software Development" yum groupinstall -y "KDE Software Development" yum groupinstall -y "Java Development" yum groupinstall -y "Legacy Software Development" wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm rpm -ivh rpmforge-release-0.5.1-1.el5.rf.i386.rpm mkdir /usr/local/src/php mkdir /usr/local/src/mysql
Now onto mysql
cd /usr/local/src/mysql wget http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-client-5.1.50-1.glibc23.i386.rpm/from/http://mysql.mirrors.hoobly.com/ wget http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-debuginfo-5.1.50-1.glibc23.i386.rpm/from/http://mysql.mirrors.hoobly.com/ wget http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-devel-5.1.50-1.glibc23.i386.rpm/from/http://mysql.he.net/ wget http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-embedded-5.1.50-1.glibc23.i386.rpm/from/http://mysql.mirrors.hoobly.com/ wget http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-shared-compat-5.1.50-1.glibc23.i386.rpm/from/http://mysql.mirrors.hoobly.com/ wget http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-server-5.1.50-1.glibc23.i386.rpm/from/http://mysql.mirrors.hoobly.com/ wget http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-shared-5.1.50-1.glibc23.i386.rpm/from/http://mysql.mirrors.hoobly.com/ rpm -i MySQL-client-5.1.50-1.glibc23.i386.rpm rpm -i MySQL-debuginfo-5.1.50-1.glibc23.i386.rpm rpm -i MySQL-devel-5.1.50-1.glibc23.i386.rpm rpm -i MySQL-embedded-5.1.50-1.glibc23.i386.rpm rpm -i MySQL-shared-compat-5.1.50-1.glibc23.i386.rpm rpm -i MySQL-server-5.1.50-1.glibc23.i386.rpm rpm -i MySQL-shared-5.1.50-1.glibc23.i386.rpm /usr/bin/mysqladmin -u root password j0erulzall touch /root/.my.cnf && echo [client] >> /root/.my.cnf && echo user="root" >> /root/.my.cnf && echo pass="j0erulzall" >> /root/.my.cnf vim /etc/my.cnf
Now onto mysql configuration paste the following into your newly made my.cnf file.
[mysqld] max_connections = 250 safe-show-database skip-locking key_buffer = 128M max_allowed_packet = 1M table_cache = 256 sort_buffer_size = 2M read_buffer_size = 2M read_rnd_buffer_size = 2M myisam_sort_buffer_size = 64M query_cache_size= 32M max_heap_table_size = 48M tmp_table_size = 48M thread_cache_size = 8 wait_timeout = 30 interactive_timeout = 300 [mysqldump] quick max_allowed_packet = 16M [mysql] no-auto-rehash [isamchk] key_buffer = 96M sort_buffer_size = 64M read_buffer = 2M write_buffer = 2M [myisamchk] key_buffer = 96M sort_buffer_size = 64M read_buffer = 2M write_buffer = 2M
Now onto php
cd /usr/local/src/php yum install -y httpd wget http://dev.centos.org/centos/5/testing/i386/RPMS/php-5.2.6-2.el5s2.i386.rpm wget http://dev.centos.org/centos/5/testing/i386/RPMS/php-bcmath-5.2.6-2.el5s2.i386.rpm wget http://dev.centos.org/centos/5/testing/i386/RPMS/php-cli-5.2.6-2.el5s2.i386.rpm wget http://dev.centos.org/centos/5/testing/i386/RPMS/php-common-5.2.6-2.el5s2.i386.rpm wget http://dev.centos.org/centos/5/testing/i386/RPMS/php-dba-5.2.6-2.el5s2.i386.rpm wget http://dev.centos.org/centos/5/testing/i386/RPMS/php-devel-5.2.6-2.el5s2.i386.rpm wget http://dev.centos.org/centos/5/testing/i386/RPMS/php-gd-5.2.6-2.el5s2.i386.rpm wget http://dev.centos.org/centos/5/testing/i386/RPMS/php-imap-5.2.6-2.el5s2.i386.rpm wget http://dev.centos.org/centos/5/testing/i386/RPMS/php-ldap-5.2.6-2.el5s2.i386.rpm wget http://dev.centos.org/centos/5/testing/i386/RPMS/php-mbstring-5.2.6-2.el5s2.i386.rpm wget http://dev.centos.org/centos/5/testing/i386/RPMS/php-mysql-5.2.6-2.el5s2.i386.rpm wget http://dev.centos.org/centos/5/testing/i386/RPMS/php-ncurses-5.2.6-2.el5s2.i386.rpm wget http://dev.centos.org/centos/5/testing/i386/RPMS/php-odbc-5.2.6-2.el5s2.i386.rpm wget http://dev.centos.org/centos/5/testing/i386/RPMS/php-pdo-5.2.6-2.el5s2.i386.rpm wget http://dev.centos.org/centos/5/testing/i386/RPMS/php-pgsql-5.2.6-2.el5s2.i386.rpm wget http://dev.centos.org/centos/5/testing/i386/RPMS/php-snmp-5.2.6-2.el5s2.i386.rpm wget http://dev.centos.org/centos/5/testing/i386/RPMS/php-soap-5.2.6-2.el5s2.i386.rpm wget http://dev.centos.org/centos/5/testing/i386/RPMS/php-xml-5.2.6-2.el5s2.i386.rpm wget http://dev.centos.org/centos/5/testing/i386/RPMS/php-xmlrpc-5.2.6-2.el5s2.i386.rpm rpm -i php-common-5.2.6-2.el5s2.i386.rpm rpm -i php-cli-5.2.6-2.el5s2.i386.rpm rpm -i php-5.2.6-2.el5s2.i386.rpm rpm -i php-devel-5.2.6-2.el5s2.i386.rpm rpm -i php-pdo-5.2.6-2.el5s2.i386.rpm rpm -i php-mysql-5.2.6-2.el5s2.i386.rpm rpm -i php-gd-5.2.6-2.el5s2.i386.rpm rpm -i php-bcmath-5.2.6-2.el5s2.i386.rpm rpm -i php-dba-5.2.6-2.el5s2.i386.rpm rpm -i php-ldap-5.2.6-2.el5s2.i386.rpm rpm -i php-mbstring-5.2.6-2.el5s2.i386.rpm rpm -i php-xmlrpc-5.2.6-2.el5s2.i386.rpm rpm -i php-xml-5.2.6-2.el5s2.i386.rpm rpm -i php-soap-5.2.6-2.el5s2.i386.rpm rpm -i php-odbc-5.2.6-2.el5s2.i386.rpm rpm -i php-pgsql-5.2.6-2.el5s2.i386.rpm rpm -i php-imap-5.2.6-2.el5s2.i386.rpm
Wow essentials next
yum install -y gcc-g++ mercurial wget links zip unzip unrar yum install -y openssl yum install -y cmake yum install -y screen yum install -y php-mcrypt yum update -y /etc/init.d/httpd restart /etc/init.d/mysql restart chkconfig httpd on chkconfig mysql on