Install minimal CentOS 6.6 with latest PHP and Percona Server 5.6

Being FreeBSD user for years make lazy to try something new 🙂 . CentOS and Ubuntu server are two distros that brought my attention via distrowatch. Today I have time to try latest CentOS 6 release (6.6) in my virtualbox and I love minimal installation and for that reason I choose CentOS 6.6 minimal iso (CentOS-6.6-x86_64-minimal.iso).

For target installation I choose LAMP and try to use latest component (PHP 5.6, MariaDB 10 or Percona server 5.6 and stock Apache (2.2) ).

Lets get start!

1. Install CentOS 6.6

Let default installation till finished.

2. Configure network

Everything located in /etc/sysconfig/network-scripts/ and every lan card installed in server you see using “ip a” command (remove ” sign).

In most case just change these properties :

  • ONBOOT -> yes

  • BOOTPROTO -> static (change to dhcp for dynamic address)

  • IPADDR -> enter ipv4 address

  • NETMASK -> enter subnet mask

  • GATEWAY -> enter ip4 address of your gateway

If you use vps, all these information available from control panel or check your email from provider.

# service network start

To restart network

3. Install basic stuff

# yum install nano bc wget lynx

4. Update yum

# yum update

5. Install Database

For MariaDB

# cd /etc/yum.repos.d/
# nano MariaDB.repo

Enter these lines :

# MariaDB 10.0 CentOS repository list – created 2015-04-14 06:56 UTC
# http://mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.0/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

save the file.

# yum install MariaDB-server MariaDB-client

For Percona Server

# yum install http://www.percona.com/downloads/percona-release/redhat/0.1-3/percona-release-0.1-3.noarch.rpm

# yum install Percona-Server-client-56 Percona-Server-server-56

6. Install PHP 5.6

# rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
# yum install php56w php56w-opcache php56w-mysql

7. Configuration

# chkconfig httpd --add
# chkconfig httpd on --level 235
# chkconfig mysql --add
# chkconfig mysql on --level 235

# iptables -I INPUT -p tcp -m tcp --dport 80 -j ACCEPT
# service iptables save

8. Run the service

# service httpd start
# service mysql start

Done. Basic LAMP server is successfully installed.

9. Create phpinfo page

# cd /var/www/html/
# echo "<?php echo phpinfo();?>" > info.php

10. Test

# lynx localhost/info.php

PHP logo

PHP Version 5.6.7

System Linux localhost.localdomain 2.6.32-504.el6.x86_64 #1 SMP Wed Oct 15 04:27:16 UTC 2014 x86_64
Build Date Mar 21 2015 20:29:45
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc
Loaded Configuration File /etc/php.ini
Scan this dir for additional .ini files /etc/php.d
Additional .ini files parsed /etc/php.d/bz2.ini, /etc/php.d/calendar.ini, /etc/php.d/ctype.ini, /etc/php.d/curl.ini, /etc/php.d/exif.ini,
/etc/php.d/fileinfo.ini, /etc/php.d/ftp.ini, /etc/php.d/gettext.ini, /etc/php.d/gmp.ini, /etc/php.d/iconv.ini, /etc/php.d/json.ini, /etc/php.d/mysql.ini,
/etc/php.d/mysqli.ini, /etc/php.d/opcache.ini, /etc/php.d/pdo.ini, /etc/php.d/pdo_mysql.ini, /etc/php.d/pdo_sqlite.ini, /etc/php.d/phar.ini,
/etc/php.d/shmop.ini, /etc/php.d/simplexml.ini, /etc/php.d/sockets.ini, /etc/php.d/sqlite3.ini, /etc/php.d/tokenizer.ini, /etc/php.d/xml.ini,
/etc/php.d/zip.ini
PHP API 20131106
PHP Extension 20131226
Zend Extension 220131226
Zend Extension Build API220131226,NTS
PHP Extension Build API20131226,NTS
Debug Build no
Thread Safety disabled
Zend Signal Handling disabled
Zend Memory Manager enabled
Zend Multibyte Support disabled
IPv6 Support enabled
DTrace Support enabled
Registered PHP Streams https, ftps, compress.zlib, php, file, glob, data, http, ftp, compress.bzip2, phar, zip
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls, tlsv1.0, tlsv1.1, tlsv1.2
Registered Stream Filters zlib.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, bzip2.*, convert.iconv.*
Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2015, by Zend Technologies

11. Test Percona Server

# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.23-72.1 Percona Server (GPL), Release 72.1, Revision 0503478

Copyright (c) 2009-2015 Percona LLC and/or its affiliates
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.

mysql> show engines;

+——————–+———+—————————————————————————-+————–+——+————+
| Engine | Support | Comment | Transactions | XA | Savepoints |
+——————–+———+—————————————————————————-+————–+——+————+
| InnoDB | DEFAULT | Percona-XtraDB, Supports transactions, row-level locking, and foreign keys | YES | YES | YES |
| CSV | YES | CSV storage engine | NO | NO | NO |
| MRG_MYISAM | YES | Collection of identical MyISAM tables | NO | NO | NO |
| BLACKHOLE | YES | /dev/null storage engine (anything you write to it disappears) | NO | NO | NO |
| MEMORY | YES | Hash based, stored in memory, useful for temporary tables | NO | NO | NO |
| PERFORMANCE_SCHEMA | YES | Performance Schema | NO | NO | NO |
| ARCHIVE | YES | Archive storage engine | NO | NO | NO |
| MyISAM | YES | MyISAM storage engine | NO | NO | NO |
| FEDERATED | NO | Federated MySQL storage engine | NULL | NULL | NULL |
+——————–+———+—————————————————————————-+————–+——+————+
9 rows in set (0,00 sec)

mysql>

Reference : (for more tuning Database and Apache setting)

  1. Percona Tools Wizard
  2. MySQL Tuner
  3. ApacheBuddy
  4. MySQL Tuning Primer

Install Latest Corona SDK on Linux Peppermint OS 5

I want to learn create game for my daughter since she like to play game in her Acer Tablet. I don’t know much about programming for mobile phone nor tablet but I’ll learn.

After dig for internet I decide to use Corona SDK but the problem came since I use Peppermint OS 5 that not supported.

I try Wine way and document the process here for my own reference. Might be useful for others.

Wine version

$ wine --version
wine-1.6.2

Checking cmd command from wine

$ wine cmd
Wine CMD Version 5.1.2600 (1.6.2)

Z:\home\alamsyah>c:

C:\>dir
Volume in drive C has no label.
Volume Serial Number is 0000-0000

Directory of C:\

10/02/2015 12:03 <DIR> Program Files
14/01/2015 15:17 <DIR> Program Files (x86)
23/02/2015 15:17 <DIR> server
12/12/2014 20:40 <DIR> users
12/12/2014 20:40 <DIR> windows
0 files 0 bytes
5 directories 411,322,195,968 bytes free
C:\>

Great. Wine working fine.

Corona SDK

Download latest version for Windows

I got corona sdk 2014.2511

corona_sdk_2014.2511

Install it

$ wine start CoronaSDK-2014.2511.msi

I got error message :

fixme:exec:SHELL_execute flags ignored: 0x00000100
fixme:storage:create_storagefile Storage share mode not implemented.
fixme:msi:ITERATE_CreateShortcuts poorly handled shortcut format, advertised shortcut

but I ignore it.

Follow the screen to get corona sdk installed.

Run Corona SDK

Menu -> Programs -> Corona SDK -> Corona Simulator

corona_sdk_simulator

Try to compile (build for Android)

Got error message

corona_sdk_x86

Well, time for JDK.

Java Development Kit

According this docs I need JDK 7

corona_sdk_jdk7_64bit

Install this version also not work.

corona_jdk6_32bit

I skip this JDK problem as I still able to code and see it from simulator.

Well, time for continue learning 🙂

Update :

I use ZeroBrane Studio

$ wget -c https://download.zerobrane.com/ZeroBraneStudioEduPack-1.00-linux.sh 

$ chmod +x ZeroBraneStudioEduPack-1.00-linux.sh

$ ./ZeroBraneStudioEduPack-1.00-linux.sh
Verifying archive integrity… All good.
Uncompressing ZeroBraneStudio with EduPack 1.00………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………..
Installing ZeroBrane Studio 1.00…
[sudo] password for alamsyah:
Done.

To uninstall ZeroBrane Studio at a later time, run:
zbstudio-uninstall

Fix bad entry of sources list for Peppermint OS 5

Just quick post for myself. Today I need to give sample to my student about apt-get command and while I try it I got this error :

Err http://ppa.launchpad.net trusty/main amd64 Packages
404 Not Found

Err http://ppa.launchpad.net trusty/main i386 Packages
404 Not Found

W: Failed to fetch http://ppa.launchpad.net/openshot.developers/ppa/ubuntu/dists/trusty/main/binary-amd64/Packages 404 Not Found

W: Failed to fetch http://ppa.launchpad.net/openshot.developers/ppa/ubuntu/dists/trusty/main/binary-i386/Packages 404 Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

Yes. That error mean the address is not found. Might be the address changed or something else.

As I use Peppemint OS 5. I found that source.list is no longer packed in single file but located in directory.

$ ls -l /etc/apt/sources.list.d/
total 44
-rw-r–r– 1 root root 146 Mar 2 13:27 jerzy-kozera-zeal-ppa-trusty.list
-rw-r–r– 1 root root 172 Mar 2 13:27 maarten-baert-simplescreenrecorder-trusty.list
-rw-r–r– 1 root root 172 Mar 2 13:27 maarten-baert-simplescreenrecorder-trusty.list.save
-rw-r–r– 1 root root 142 Mar 2 13:27 mc3man-trusty-media-trusty.list
-rw-r–r– 1 root root 142 Mar 2 13:27 mc3man-trusty-media-trusty.list.save
-rw-r–r– 1 root root 150 Mar 2 13:27 openshot_developers-ppa-trusty.list
-rw-r–r– 1 root root 150 Mar 2 13:27 openshot_developers-ppa-trusty.list.save
-rw-r–r– 1 root root 144 Mar 2 13:27 peppermint.list
-rw-r–r– 1 root root 144 Mar 2 13:27 peppermint.list.save
-rw-r–r– 1 root root 132 Mar 2 13:27 phalcon-stable-trusty.list
-rw-r–r– 1 root root 132 Mar 2 13:27 phalcon-stable-trusty.list.save

$ cat /etc/apt/sources.list.d/openshot_developers-ppa-trusty.list
deb http://ppa.launchpad.net/openshot.developers/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/openshot.developers/ppa/ubuntu trusty main

Remove the file

$ sudo rm /etc/apt/sources.list.d/openshot_developers-ppa-trusty.*
[sudo] password for alamsyah:

Recheck it
$ ls -l /etc/apt/sources.list.d/
total 36
-rw-r–r– 1 root root 146 Mar 2 13:27 jerzy-kozera-zeal-ppa-trusty.list
-rw-r–r– 1 root root 172 Mar 2 13:27 maarten-baert-simplescreenrecorder-trusty.list
-rw-r–r– 1 root root 172 Mar 2 13:27 maarten-baert-simplescreenrecorder-trusty.list.save
-rw-r–r– 1 root root 142 Mar 2 13:27 mc3man-trusty-media-trusty.list
-rw-r–r– 1 root root 142 Mar 2 13:27 mc3man-trusty-media-trusty.list.save
-rw-r–r– 1 root root 144 Mar 2 13:27 peppermint.list
-rw-r–r– 1 root root 144 Mar 2 13:27 peppermint.list.save
-rw-r–r– 1 root root 132 Mar 2 13:27 phalcon-stable-trusty.list
-rw-r–r– 1 root root 132 Mar 2 13:27 phalcon-stable-trusty.list.save

Re run apt-get

$ sudo apt-get update

this time no error message.

How about openshot ?

Well, I try re add the source :

$ sudo add-apt-repository ppa:openshot.developers/ppa
This PPA contains the current stable version of OpenShot Video Editor.

If you would rather the bleeding-edge version, check out the following URL:
https://launchpad.net/~jonoomph/+archive/openshot-edge
More info: https://launchpad.net/~openshot.developers/+archive/ubuntu/ppa
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmp8sj5wgdh/secring.gpg’ created
gpg: keyring `/tmp/tmp8sj5wgdh/pubring.gpg’ created
gpg: requesting key B9BA26FA from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp8sj5wgdh/trustdb.gpg: trustdb created
gpg: key B9BA26FA: public key “Launchpad OpenShot Development PPA” imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK

$ sudo apt-get update

……………….

…………………….

Fetched 785 kB in 41s (19,0 kB/s)
W: Failed to fetch http://ppa.launchpad.net/openshot.developers/ppa/ubuntu/dists/trusty/main/binary-amd64/Packages 404 Not Found

W: Failed to fetch http://ppa.launchpad.net/openshot.developers/ppa/ubuntu/dists/trusty/main/binary-i386/Packages 404 Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

Well, I think its openshot repository problem. I skip install this 🙂

How to install Xampp Linux on Peppermint OS 5

I have a few php system at the moment. My 1st system is php and folks (mysql etc) installed via apt-get . 2nd system is PHP system using phpfarm technique . This time I want to add other system that backed by Xampp 🙂 . Lets start add this big boy.

Download Latest xampp for linux (at this time I use xampp 5.6.3.0 for 64 bit).

xampp1

$ wget -c http://downloads.sourceforge.net/project/xampp/XAMPP%20Linux/5.6.3/xampp-linux-x64-5.6.3-0-installer.run?r=&ts=1423030874&use_mirror=jaist

$ mv xampp-linux-x64-5.6.3-0-installer.run\?r\= xampp-linux-x64-5.6.3-0-installer.run

$ chmod +x xampp-linux-x64-5.6.3-0-installer.run

$ sudo ./xampp-linux-x64-5.6.3-0-installer.run

Execute as super user or sudo

# ./xampp-linux-x64-5.6.3-0-installer.run

xampp2

Make sure core files selected.

xampp3

After installation finish you might want to test run it.

Stop all running instance of Apache and Mysql

# service apache2 stop
* Stopping web server apache2 *
# service mysql stop
mysql stop/waiting

# /opt/lampp/xampp start
Starting XAMPP for Linux 5.6.3-0…
XAMPP: Starting Apache…ok.
XAMPP: Starting MySQL…ok.
XAMPP: Starting ProFTPD…ok.
# /opt/lampp/xampp stop
Stopping XAMPP for Linux 5.6.3-0…
XAMPP: Stopping Apache…ok.
XAMPP: Stopping MySQL…ok.
XAMPP: Stopping ProFTPD…ok.

Or using sudo

$ sudo /opt/lampp/xampp start
Starting XAMPP for Linux 5.6.3-0…
XAMPP: Starting Apache…ok.
XAMPP: Starting MySQL…ok.
XAMPP: Starting ProFTPD…ok.

Test

xampp4

Document root setting

$ sudo nano /opt/lampp/etc/httpd.conf

Find these lines :

DocumentRoot “/opt/lampp/htdocs”
<Directory “/opt/lampp/htdocs”>

Change to your preferences.

Save when you’re done.

Access MySQL command line

$ sudo /opt/lampp/bin/mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.6.21 Source distribution

Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.

mysql>

Change MySQL password

Continue from previous prompt

mysql> use mysql;
Database changed
mysql> update user set password=password(‘123456′) where user=’root’;
Query OK, 2 rows affected (0,00 sec)
Rows matched: 2 Changed: 2 Warnings: 0

mysql> flush privileges;
Query OK, 0 rows affected (0,00 sec)

mysql> exit

Install IonCube Loader

IonCube provide loader for 32 and 64 bit architecture.

Download latest version from here.

$ wget -c http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.bz2

$ tar xvjf ioncube_loaders_lin_x86-64.tar.bz2
ioncube/
ioncube/ioncube_loader_lin_5.0.so
ioncube/ioncube_loader_lin_4.3.so
ioncube/ioncube_loader_lin_4.2.so
ioncube/ioncube_loader_lin_5.6.so
ioncube/ioncube_loader_lin_5.3.so
ioncube/ioncube_loader_lin_5.5_ts.so
ioncube/ioncube_loader_lin_5.4.so
ioncube/ioncube_loader_lin_4.3_ts.so
ioncube/ioncube_loader_lin_5.5.so
ioncube/ioncube_loader_lin_5.4_ts.so
ioncube/ioncube_loader_lin_5.3_ts.so
ioncube/ioncube_loader_lin_4.4.so
ioncube/ioncube_loader_lin_4.4_ts.so
ioncube/ioncube_loader_lin_5.2.so
ioncube/ioncube_loader_lin_4.1.so
ioncube/ioncube_loader_lin_5.1_ts.so
ioncube/ioncube_loader_lin_5.0_ts.so
ioncube/ioncube_loader_lin_5.1.so
ioncube/ioncube_loader_lin_5.6_ts.so
ioncube/ioncube_loader_lin_5.2_ts.so

Which version?

Based on phpinfo() . Its PHP 5.6.3 then I must copy ioncube/ioncube_loader_lin_5.6_ts.so to

directory that provide by phpinfo() information

xampp5

$ sudo mv ioncube/ioncube_loader_lin_5.6.so /opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/

Tell php.ini for new shared object file.

$ sudo nano /opt/lampp/etc/php.ini

Add this line :

zend_extension = /opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/ioncube_loader_lin_5.6.so

save.

Restart xampp

$ sudo /opt/lampp/xampp restart

Recheck phpinfo() page to find this information.

xampp6

Install PhalconPHP Extension on Linux Xampp

$ wget -c "https://github.com/phalcon/cphalcon/archive/master.zip"

$ unzip master.zip

$ cd cphalcon-master/build/64bits/

$ /opt/lampp/bin/phpize --enable-phalcon --with-php-config=/opt/lampp/bin

Configuring for:
PHP Api Version: 20131106
Zend Module Api No: 20131226
Zend Extension Api No: 220131226

$ ./configure --with-php-config=/opt/lampp/bin/php-config

$ make

$ sudo make install

[sudo] password for alamsyah:
Installing shared extensions: /opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/

$ sudo echo "extension=phalcon.so" >> etc/php.ini

Restart Xampp

$ sudo /opt/lampp/xampp restart

Check phpinfo() page to see

xampp7

Reference : Belajar Phalcon Framework

Rebuild Fedora as Server using VPS and custom iso

Today task is little different. Old php script that run on PHP 5.2.9 and utilize mysql 5.0.88 need to rebuild in other place. That way another group of developer can add or inspect why new injected code can behave odd in such environment (they already try new code using newer PHP and it work well).

As far I can see from server log in message its Fedora 10 and using old PHP and old Mysql version. I need to replicate it in some place. Where we (I and developer) can log in and see it together.

Target for this server is same php and same mysql version :

#rpm -qa | grep php

php-common-5.2.9-2.fc10.i386
php-pgsql-5.2.9-2.fc10.i386
php-pecl-apc-3.0.19-1.fc10.i386
php-5.2.9-2.fc10.i386
php-gd-5.2.9-2.fc10.i386
php-mysql-5.2.9-2.fc10.i386
php-ldap-5.2.9-2.fc10.i386
php-mbstring-5.2.9-2.fc10.i386
php-mcrypt-5.2.9-2.fc10.i386
php-odbc-5.2.9-2.fc10.i386
php-pear-1.7.2-2.fc10.noarch
php-cli-5.2.9-2.fc10.i386
php-pdo-5.2.9-2.fc10.i386
phpMyAdmin-3.2.3-1.fc10.noarch

# rpm -qa | grep mysql

mysql-5.0.88-1.fc10.i386
mysql-server-5.0.88-1.fc10.i386
php-mysql-5.2.9-2.fc10.i386
mysql-connector-odbc-3.51.26r1127-1.fc10.i386
libdbi-dbd-mysql-0.8.3-2.fc10.i386
mysql-libs-5.0.88-1.fc10.i386

VPS is my option  and Vultr (I choose $5/month specs that come with 15GB SSD storage and 768MB memory) can help me for this case .

Log in to Vultr and upload iso

  1. For Fedora 10 64 bit click here.
  2. For Fedora 10 32 bit click here.

Since I need to replicate it with minimum hassle I decide to use 64 bit in DVD format.

Create Server

After iso file successfully uploaded then I Choose custom iso selected Fedora 10 file.

fedora10_vps : virtual iso

After hit ‘deploy server’ wait for moment to take control.

Install Fedora Server in VPS

In case you see ipxe message in ‘console’ then you must make sure iso file attached. Check from virtual iso menu. If it’s not then select Fedora images and click ‘attach iso and reboot’ button.

fedora10_vps2 : attach iso

 

This view is the right one.

fedora10_vps3 : remove attached iso

Go back to manage server menu and choose ‘console’ link. If you see this then iso attach process working well.

fedora10_vps4 : install serverThe rest of installation step is as usual.

For partition I choose to use all disk space.

fedora10_server5 : web server chosen etcWeb server and repositories (installation repo, Fedora 10 -x86_64 and updates).

Reboot and configure it for first time as usual till you see this view (already login)

fedora10_vps6 : successfully installed

Disable GUI login and X-Window on Fedora

Yes, of course its server. No X windows please 🙂

Open terminal from console and edit /etc/inittab and change this line :

id:5:initdefault:

into

id:3:initdefault:

save.

In this stage also make sure to remove iso from custom iso menu for this server.

After server reboot you’ll see no more X-Window.

fedora10_vps7

Control Fedora Server using ssh

By default ssh server already installed and running. Vultr system will make sure right ip assigned for this VPS and you just need to access it from ipv4 provided.

fedora10_vps8

 

free -m

# free -m
total used free shared buffers cached
Mem: 748 169 578 0 6 57
-/+ buffers/cache: 105 642
Swap: 1503 0 1503

# df -H
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
15G 3,4G 10G 26% /
/dev/vda1 200M 15M 175M 8% /boot
tmpfs 393M 0 393M 0% /dev/shm

Check PHP

# rpm -qa | grep php

php-5.2.9-2.fc10.x86_64
php-ldap-5.2.9-2.fc10.x86_64
php-common-5.2.9-2.fc10.x86_64
php-pdo-5.2.9-2.fc10.x86_64
php-cli-5.2.9-2.fc10.x86_64
php-mysql-5.2.9-2.fc10.x86_64

Check MySQL

# rpm -qa | grep mysql

mysql-libs-5.0.88-1.fc10.x86_64
php-mysql-5.2.9-2.fc10.x86_64

I can see the result is different. I use 64 bit while existing server use 32 bit and few extension not installed. In general Vultr can help me rebuild the server. I just need to more careful and diligent 🙂

# yum install php-gd php-mcrypt php-mbstring php-pecl-apc mysql-server

For iptables etc remain same as Install PHP 5.2.17 on CentOS 5.10.

For Selinux case I prefer to disable it :

# nano /etc/selinux/config

change enforcing to disabled .