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).
$ 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
Make sure core files selected.
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
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
$ 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.
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
Reference : Belajar Phalcon Framework