Install and configure Ubuntu Server 13.04, part 2

After we have finished installing php5-fpm with all modules to the server Ubuntu 13.04 (part 1), you might want to consider installing and configuring phpMyAdmin, but before proceeding to the installation, we should close one minor flaw in the php5-fpm, open the console:
VI/etc/php5/fpm/php.ini
And find the line “_pathinfo = 1 cgi.fix” and change the value from 1 to 0
cgi.fix _pathinfo = 0
Save and close. Now you are ready to install phpMyAdmin
How to install phpMyAdmin on the server
In order to proceed with the installation of us to start with, you will need to add the repository to the server, type in the Terminal:
Add-apt-repository ppa: nijel/phpmyadmin
Then install the Manager database:
apt-get update & & apt-get install-y phpmyadmin
During the installation we will need to perform some action, the first thing we will automatically reconfigure our configuration files, do not choose nothing because we use php5-fpm:
How to install phpMyAdminDalee select yes:
How to install phpMyAdmin
After which we will prompt you to enter a password to connect to the database, enter the same as prescribed for MariaDB:
How to install a phpMyAdminPodtverždaem our password again:
How to install phpMyAdmin
All settings and test run phpMyAdmin will be done later.
How to install ionCube Loader
After we all have installed on the server, we are able to optimize its performance. Installing ionCube Loader will provide us with the decoding, as well as lead source code our sites in a special code sohranivši the functionality, but it obstructing the analysis and understanding of the algorithms of code for strangers, which makes it difficult to change and modification.
ionCube Loader installed depending on your php version (in this case php version 5.4), and also depends on the sample system, in my case is x 64 installation, execute command:
CD/usr/local/
wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
tar xzf ioncube_loaders_lin_x86-64.tar.gz
RM-f ioncube_loaders_lin_x86-64.tar.gz
Then check the folder owner:
drwxr-xr-x root 4096 Jan 17 2507 13:42 ioncube/
In order to install the correct execute command:
chown-R root: ioncube/
Now we need to add our .so file in the file php.ini:
echo “zend_extension =/usr/local/ioncube/ioncube_loader_lin_5.4.so | sudo tee/etc/php5/conf.d/ioncube.ini
Then do a restart php
/etc/init.d/php5-fpm restart
And execute the command:
PHP-v
PHP 5.4.231 + sury.org ~ raring +1 (cli) (built: Dec 12 2013 09:25:05)
Copyright (c) 19972013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
with the ionCube PHP Loader v 4.5.2, Copyright (c) 2002-2014, by ionCube Ltd.
As we can see ionCube Loader is enabled and working properly.
Installing php-apc caching module + igbinary on server
The second step to optimizing our code will cache APC code module. To the pluses APC can also be attributed the fact that it easily caches already compiled code that at times speeds up processing it, because when you access to the code will not be the cache, as well as a compilation. To install it, run the command:
apt-get install-y debhelper build-essential autoconf automake libtool flex bison 1.9 binutils-gold git, automake shtool php5-dev
Then put the apc:
apt-get instally php-apc
Now Let’s install the igbinary serializer for php 5.4. To do this, go to our catalog to load the src:
CD/usr/local/src/
git clone https://github.com/phadej/igbinary
CD igbinary
Then you can compile and install igbinary to our server:
phpize
./configure CFLAGS = -O2-genable-igbinarywith-php-config =/usr/bin/php-config
make & & make install
Now configure our igbinary for php:
echo-e “\n\n [igbinary] \n; https://github.com/igbinary/igbinary/\nextension = igbinary.so \n\n;Use igbinary as session serializer\nsession.serialize_handler = igbinary\n\n;Enable or disable duplicate of strings\nigbinary.compact_strings: = On\n\n;Use igbinary serializer in as APC cache\n; = igbinary serializer apc. >/etc/php5/conf.d/igbinary.ini
1
echo-e “\n\n [igbinary] \n; https://github.com/igbinary/igbinary/\nextension = igbinary.so \n\n;Use igbinary as session serializer\nsession.serialize_handler = igbinary\n\n;Enable or disable duplicate of strings\nigbinary.compact_strings: = On\n\n;Use igbinary serializer in as APC cache\n; = igbinary serializer apc. >/etc/php5/conf.d/igbinary.ini
Now include our php-apc in the configuration file:
To do so open the file apc.ini vìpolniv command:
vi /etc/php5/conf.d/apc.ini
extension=apc.so
apc.enabled=1
apc.shm_segments=1
apc.shm_size=64M
apc.num_files_hint = 4096
apc.ttl=7200
apc.user_ttl=7200
apc.gc_ttl=7200
apc.mmap_file_mask = /tmp/apc-mmap.XXXXXX
apc.file_update_protection = 30
;stat=0
apc.stat=1
apc.rfc1867 = On
apc.include_once_override = 0
Restart our php5-fpm and to check the correctness of the apc installation:
php5-fpm service restart
Then execute the command:
PHPi | grep apc
So I advise to download K-Lite Codec Pack, this program will help you solve problems with reproduction of any video and audio files on a single device.
the most convenient solution for playback of any video and audio files on one deviceSee more at: http://klitecodec.ru/#sthash. csCk7Zfr. dpuf
the most convenient solution for playback of any video and audio files on one deviceSee more at: http://klitecodec.ru/#sthash. csCk7Zfr. dpuf
On this far all, now we need to go eat and give our eyes a rest and then start reading part 3 of this article🙂