Results 1 to 5 of 5
-
3rd Jun 2010, 12:03 PM #1OPMemberWebsite's:
ttrtt.com[CentOS] LAMP & Suhosin & APC & IonCube Loader & Optimization
Hi guys this my first tutorial Hope you like it
In this tutorial we will have Fresh CentOS installed on VPS with RAM 512D/1024B .
and this is exclusive installation of MySQL (5.1.47 MySQL Community Server (GPL) by Remi) and PHP 5.3.2 By Remi too with Suhosin Extension 0.9.31 & Ioncube Loader & APC for Caching and PHP Optimizing
Note: this is what i have installed on my VPS for my site ttrtt.com and it's using 300MB RAM only
Let's Start:
First Login to your VPS Shell as root copy 'n past following :
Code:wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm wget http://rpms.famillecollet.com/RPM-GPG-KEY-remi rpm --import RPM-GPG-KEY-remi rpm -q gpg-pubkey --qf "%{summary} ->%{version}-%{release}\n"
Code:yum update
OK after this lets install MySQL server and then upgrade it
Code:yum install mysql-server chkconfig --levels 235 mysqld on /etc/init.d/mysqld start
Code:/usr/bin/mysql_secure_installation
Upgrading :
Code:/etc/init.d/mysqld stop yum --enablerepo remi update mysql-server /etc/init.d/mysqld start
Now we will install Apache Server just copy 'n past :
Code:yum install httpd chkconfig --levels 235 httpd on /etc/init.d/httpd start
Now installing php and then upgrading it:
Code:yum install php php-bcmath php-cli php-gd php-mbstring php-mcrypt php-mysql /etc/init.d/httpd restart
Let's upgrade PHP to 5.3.2 using remi repo
Code:yum --enablerepo remi update php /etc/init.d/httpd restart
Code:yum --enablerepo remi install php-devel yum --enablerepo remi install php-pecl-apc /etc/init.d/httpd restart
Let's install Suhosin it's so simple :
Code:yum install gcc yum install make (some VPS it's not installed by default) cd /opt wget http://download.suhosin.org/suhosin-0.9.31.tgz tar -xf suhosin-0.9.31.tgz cd suhosin-0.9.31 phpize ./configure make make install echo 'extension=suhosin.so' > /etc/php.d/suhosin.ini /etc/init.d/httpd restart
Code:php -v
1. Download ioncube loader with wget
- i386 http://downloads2.ioncube.com/loader...lin_x86.tar.gz
- x86-64 http://downloads2.ioncube.com/loader..._x86-64.tar.gz
Code:tar -xf ioncube_loaders_lin_*.tar.gz cd ioncube mv loader-wizard.php /var/www/html cd .. mv ioncube /usr/local/
and follow the instruction there i won't type it here coz it's so simple
now to let your server work like a charm just do this command
Code:chown -hR apache:apache /var/www/html
----------------->><<-----------------
Optimizing MySQL with my.cnf file
edit /etc/my.cnf with vi or nano command copy 'n past :
Code:[mysqld] max_connections = 100 key_buffer = 32M myisam_sort_buffer_size = 32M join_buffer_size = 1M read_buffer_size = 1M sort_buffer_size = 2M table_cache = 4000 thread_cache_size = 286 interactive_timeout = 25 wait_timeout = 7000 connect_timeout = 10 max_allowed_packet = 16M max_connect_errors = 10 query_cache_limit = 2M query_cache_size = 12M query_cache_type = 1 tmp_table_size = 16M skip-innodb [mysqld_safe] open_files_limit = 8192 [mysqldump] quick max_allowed_packet = 16M [myisamchk] key_buffer = 64M sort_buffer = 64M read_buffer = 16M write_buffer = 16M [mysqlhotcopy] interactive-timeout
if u need help post your probs here?eXXed Reviewed by ?eXXed on . [CentOS] LAMP & Suhosin & APC & IonCube Loader & Optimization Hi guys this my first tutorial Hope you like it In this tutorial we will have Fresh CentOS installed on VPS with RAM 512D/1024B . and this is exclusive installation of MySQL (5.1.47 MySQL Community Server (GPL) by Remi) and PHP 5.3.2 By Remi too with Suhosin Extension 0.9.31 & Ioncube Loader & APC for Caching and PHP Optimizing Note: this is what i have installed on my VPS for my site ttrtt.com and it's using 300MB RAM only Let's Start: First Login to your VPS Shell as root copy 'n Rating: 5
-
3rd Jun 2010, 12:04 PM #2Member
cool.. thanks for this..
-
3rd Jun 2010, 12:04 PM #3Member
Thanks nice One
-
3rd Jun 2010, 12:07 PM #4MemberWebsite's:
DDLValley.euNice Tut
-
3rd Jun 2010, 01:34 PM #5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
How to install ionCube loader
By Albert.Nawaro in forum Server ManagementReplies: 4Last Post: 8th Mar 2012, 08:20 AM -
How to install ionCube PHP Loader on Centos x64
By cowboyup910 in forum Technical Help Desk SupportReplies: 3Last Post: 20th Aug 2011, 04:50 AM -
How to solve 'ionCube PHP Loader ioncube_loader_lin_5.2.so' on VPS
By desibreaker in forum Server ManagementReplies: 5Last Post: 11th May 2011, 04:34 PM -
How TO INSTALL Ioncube loader??
By ipowerz in forum Server ManagementReplies: 7Last Post: 13th Dec 2010, 01:02 PM -
Ioncube Loader AutoInstaller
By GoonzNetwork in forum Technical and Security TutorialsReplies: 6Last Post: 27th Apr 2010, 01:49 PM
themaLeecher - leech and manage...
Version 4.94 released. Open older version (or...