Install LEMP (Nginx + MariaDB + PHP) on openSUSE 13.2

Nginx is a free, open-source, high-performance HTTP server. Nginx is known for its stability, rich feature set, simple configuration, and low resource consumption. This tutorial shows you how to install Nginx on a openSUSE 13.2 with PHP support (through PHP-FPM) and MariaDB support. PHP-FPM is an alternative PHP FastCGI implementation, it has some additional features useful for sites of any size, especially busier sites).
The first thing you need to do is to login as root, switch to root user.

The default document root of Nginx is /srv/www/htdocs/, configuration files are under /etc/nginx directory.

Auto start Nginx at system start-up.

# systemctl enable nginx.service

Installing PHP5-FPM:

Next is to install PHP through PHP-FPM (PHP-FPM (FastCGI Process Manager), it is an alternative PHP FastCGI implementation. it has some additional features useful for sites of any size, especially busier sites). Install it by issuing the following command.

# zypper install php5-fpm php5-mysql php5

By default there is no php.ini file in openSUSE 13.2; you would require to copy from /etc/php5/cli/php.ini.

From the above screen shot , PHP is working, and it’s working through FPM/FastCGI, as shown in the Server API line. If you scroll further down, you will see all modules that are already enabled in PHP. Scroll down further and look for the MySQL support information.