Step1. Install Apache2 using the command:

apt-get install apache2-mpm-worker

Now you cand navigate from  your browser to http://your-ip to check if Apache2 is working (you should see the Apache2 default page with message:  It works).

Step2.  Install PHP5-FPM.

We will make PHP5 work in Apache2 through PHP-FPM and Apache2  mod_fastcgi module.
We need to install apache mod-fastcgi first:

apt-get install libapache2-mod-fastcgi php5

Now install php-fpm:

echo “deb stable all” >> /etc/apt/sources.list
echo “deb-src stable all” >> /etc/apt/sources.list
cat dotdeb.gpg |apt-key add -
apt-get update
apt-get install php5-fpm

Step3. Enable the  Apache2 modules: Continue Reading…

phpMyAdmin is a popular software  and as such is a target for various scripted attacks. If you run phpMyAdmin installation somewhere you should really make sure it is secured.

There are some things you can do to keep you safer:

1. Remove setup directory from phpMyAdmin. You will not use it after initial setup:

 rm -rf /usr/share/phpmyadmin/setup/

2. Prevent access to libraries directory from browser.  You can use a .htaccess file for this.

3. In case you don’t want all  users  to access phpMyAdmin  you can use AllowDeny rules to limit them:

Use the following in the file config,inc.php of phpMyAdmin to restrict access to from remote machines.

vim /usr/share/phpmyadmin/

Continue Reading…

Percona  announced the release of Percona Server 5.5.21-25.0 on March 20th, 2012. Downloads are available here and from the Percona Software Repositories.

Based on MySQL 5.5.21, including all the bug fixes in it, Percona Server 5.5.21-25.0 is now the current stable release in the 5.5 series.

All of Percona‘s software is open-source and free, all the details of the release can be found in the 5.5.21-25.0 milestone at Launchpad.

APC  Configuration:

Once you have installed following this tutorial  you need to configure it.

APC makes use of a shared memory segment to cache php scripts. This enables multiple processes to access the cache. You can configure how massive that segment is in megabytes:


By default,  APC will cache every php file requested by visitors to your website. On a typical server you will have lots of thousands of source files. So in the event you monitor the output of apc.php you will find that with time even 100MB of memory is not sufficient for APC. It will keep running  out of space as it tries to cache all the files.
To deal with this, APC will swap out old files from the cache according to this setting which specifies the time to live in seconds of files that have not been accessed recently:


You may prefer to cache only some of the files such as those used by the most popular websites on the server. To do that you must first set this option:

Continue Reading…

Wine 1.5.0 was released

Valic —  March 17, 2012 — Leave a comment
he Wine development release 1.5.0 is now available.

What's new in this release (see below for details):
  - New version of the Gecko engine.
  - Partial support for using the Trash on Mac OS X.
  - Support for path gradients in GdiPlus.
  - Various MSXML improvements.
  - Fixes to 64-bit exception handling.
  - Various bug fixes.

The source is available from the following locations:
Page 1 of 3123