Previously i have setup a server with Nginx and MariaDB.
Run Drupal 7 in Nginx
But there is one problem in this setup. I cannot restart the MariaDB service. Whenever it is down, i have to restart the server instance.
At first, i thought the failure is caused by the modification of the /etc/mysql/my.cnf. So i try to restore the original my.cnf. The following solution helps you to restore the default package configuration file.
Continue reading Ubuntu – Recover package configuration file using apt-get
In Drupal, we can use a progress bar when uploading an image or file. But that needs a PHP PECL extension called uploadprogress. The following steps work for Ubuntu Precise (Ubuntu 12.04.1 LTS).
1. Install the php5-dev package.
Continue reading Ubuntu – Install PECL uploadprogress PHP extension on Nginx
We can install package easily in Ubuntu by the apt-get command. But sometimes we may want to find out what packages are available in the repositories as well as the package version.
To search a package, use the apt-cache search <name> command.
For example, apt-cache search nginx
Continue reading Ubuntu – Find Check package version without installation
After so many days we have talked about setting up Nginx, PHP-FPM, MariaDB and some PHP caching. We can now try to run a Drupal instance on them. Before we starts, let me listed out all the previous posts.
It’s time to start the Drupal installation.
Continue reading Run Drupal 7 in Nginx
Previous: Ubuntu – Install APC with PHP-FPM and Nginx
Memcached is a distributed memory caching system and it caches data and objects in RAM to reduce the number of times an external data source (such as a database or API) must be read.
Like APC, the installation is simple.
1. Install Memcached.
- apt-get install memcached
Continue reading Ubuntu – Install Memcached with PHP-FPM and Nginx
Next: Ubuntu – Install Memcached with PHP-FPM and Nginx
APC stands for Alternative PHP Cache is a opcode which also known as machine code. The opcode is cached such that every time a request is sent to server, the same opcode is used until it detects a change in the PHP file.
Installation is easy and straight forward.
1. Install using apt-get.
Continue reading Ubuntu – Install APC with PHP-FPM and Nginx
Previous: MariaDB – Installation on Ubuntu Precise
1. Install phpMyAdmin.
- apt-get install phpmyadmin
2. Select neither Apache nor Lighttpd for the web server selection as we want to run it in Nginx.
3. And say NO for the Configure database for phpmyadmin with dbconfig-common?
Continue reading Run phpMyAdmin on Nginx in Ubuntu Precise
Next: Run phpMyAdmin on Nginx in Ubuntu Precise
It’s time to give up MySQL and move on to MariaDB. Here is the steps for MariaDB installation on Ubuntu Precise (Ubuntu 12.04.1 LTS) with root privilege.
1. Create the following file.
deb http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu precise main
deb-src http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu precise main
Continue reading MariaDB – Installation on Ubuntu Precise
Update @ 2013-05-09: I am not very sure if this could really enable the Nginx Microcaching as i couldn’t find the HIT value in the HTTP response. Please feel free to comment and let us know if you got the solution. Thanks. =D
Enable Microcaching in Nginx could help making your website run much faster. Base on the setting we did in Nginx + PHP-FPM on Ubuntu Precise. Let’s edit the VirtualHost configuration file to enable Microcaching.
Continue reading Nginx – Enable Microcaching
Previous post: Nginx – Installation on Ubuntu Precise
Most of the time we would like to run PHP on our web server. After you have installed Nginx following the post above. We can now enable PHP.
1. Install the PHP packages.
apt-get install php5-fpm
apt-get install php5-cli
apt-get install php5-gd
apt-get install php-pear
Continue reading Nginx + PHP-FPM on Ubuntu Precise