{"id":2332,"date":"2016-03-22T16:56:18","date_gmt":"2016-03-22T21:56:18","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=2332"},"modified":"2022-06-03T03:43:42","modified_gmt":"2022-06-03T08:43:42","slug":"how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\/","title":{"rendered":"How to install LEMP on openSUSE"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"aligncenter size-full wp-image-25417\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/03\/How-to-install-LEMP-on-openSUSE.jpg\" alt=\"How to install LEMP on openSUSE\" width=\"1200\" height=\"600\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/03\/How-to-install-LEMP-on-openSUSE.jpg 1200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/03\/How-to-install-LEMP-on-openSUSE-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/03\/How-to-install-LEMP-on-openSUSE-300x150.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/03\/How-to-install-LEMP-on-openSUSE-768x384.jpg 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/03\/How-to-install-LEMP-on-openSUSE-1024x512.jpg 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/03\/How-to-install-LEMP-on-openSUSE-860x430.jpg 860w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/03\/How-to-install-LEMP-on-openSUSE-680x340.jpg 680w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/03\/How-to-install-LEMP-on-openSUSE-500x250.jpg 500w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/03\/How-to-install-LEMP-on-openSUSE-400x200.jpg 400w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/03\/How-to-install-LEMP-on-openSUSE-200x100.jpg 200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/03\/How-to-install-LEMP-on-openSUSE-50x25.jpg 50w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>We&#8217;ll show you How to install LEMP on openSUSE.\u00a0 This\u00a0article we will cover the steps needed for installing and configuring a basic LEMP stack on a <a href=\"https:\/\/www.rosehosting.com\/opensuse-vps.html\" target=\"_blank\" rel=\"noopener noreferrer\">openSUSE VPS<\/a>. A LEMP stack is a synonym of LEMP server or LEMP web server. It refers to a setup which includes Linux, Nginx, MySQL (MariaDB) and PHP.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69cd134f8d618\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69cd134f8d618\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\/#1-REQUIREMENTS\" >1. REQUIREMENTS<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\/#2-UPDATE-THE-SYSTEM\" >2. UPDATE THE SYSTEM<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\/#3-Install-MySQL\" >3. Install MySQL<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\/#4-Configure-MySQL\" >4. Configure MySQL<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\/#5-Install-Nginx\" >5. Install Nginx<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\/#6-Configure-Nginx\" >6. Configure Nginx<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\/#7-Install-PHP-FPM\" >7. Install PHP-FPM<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\/#8-Configure-PHP-FPM\" >8. Configure\u00a0PHP-FPM<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\/#9-Create-and-Configure-phpini\" >9. Create and Configure php.ini<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"1-REQUIREMENTS\"><\/span>1. REQUIREMENTS<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We will be using our SSD 1 <a href=\"https:\/\/www.rosehosting.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Linux VPS<\/a> hosting plan for this tutorial.<\/p>\n<p>Log in to your server via SSH:<\/p>\n<pre># ssh root@server_ip<\/pre>\n<p>Before starting, enter the command below to check whether you have the proper OS version installed on your machine:<\/p>\n<pre># cat \/etc\/issue<\/pre>\n<p>which should give you the underneath output. Of course if you use another openSUSE version the output will show that version:<\/p>\n<pre>Welcome to openSUSE 13.1 \"Bottle\" - Kernel \\r (\\l)<\/pre>\n<p><!--more--><\/p>\n<p>And now without further ado, we can begin by removing the pre-installed Apache web-server since we are replacing it with Nginx.<\/p>\n<p>To do that, first we&#8217;ll stop the service, disable it from autostart and then remove it. To do that, type the following commands in your command line interface:<\/p>\n<pre># systemctl stop apache2.service\r\n# systemctl disable apache2.service\r\n# zypper rm apache2<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"2-UPDATE-THE-SYSTEM\"><\/span>2. UPDATE THE SYSTEM<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Now that the Apache webserver has been removed, we can update the system. Type:<\/p>\n<pre># zypper up<\/pre>\n<p>Once the updates are finished, you can start setting up the LEMP stack by installing MySQL.\u00a0In our extensive experience in dealing with the beautiful operational system that is openSUSE we stumbled upon errors and couldn&#8217;t start MySQL due to missing PERL dependencies. In some cases we were getting the following error:<\/p>\n<pre>FATAL ERROR: please install the following Perl modules before executing \/usr\/bin\/mysql_install_db:\r\nSys::Hostname\r\nCreation of MySQL databse in \/var\/lib\/mysql failed\r\nmysql.service: control process exited, code=exited status=1<\/pre>\n<p>To avoid this error, just install the <em><strong>Sys::Hostname<\/strong><\/em> PERL dependency with the following command:<\/p>\n<pre># zypper install perl-Sys-Hostname-Long<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"3-Install-MySQL\"><\/span>3. Install MySQL<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>With that taken care of, you can now continue with the MySQL installation. Execute:<\/p>\n<pre># zypper install -y mysql-community-server mysql-community-server-client<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"4-Configure-MySQL\"><\/span>4. Configure MySQL<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Enable MySQL to start on boot and then start the service:<\/p>\n<pre># systemctl enable mysql.service\r\n# systemctl start mysql.service<\/pre>\n<p>Do the initial configuration of MySQL. Follow the on-screen messages as follows:<\/p>\n<pre># mysql_secure_installation steps:\r\n\r\n<code>- Enter current password for root (enter for none):\r\n - Set root password? [Y\/n] Y\r\n - Remove anonymous users? [Y\/n] Y\r\n - Disallow root login remotely? [Y\/n] Y\r\n - Remove test database and access to it? [Y\/n] Y\r\n - Reload privilege tables now? [Y\/n] Y <\/code><\/pre>\n<h2><span class=\"ez-toc-section\" id=\"5-Install-Nginx\"><\/span>5. Install Nginx<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Next, let&#8217;s install Nginx. Type:<\/p>\n<pre># zypper install -y nginx<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"6-Configure-Nginx\"><\/span>6. Configure Nginx<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Enable Nginx to start on boot:<\/p>\n<pre># systemctl enable nginx.service<\/pre>\n<p><strong>In case of &#8216;\/sbin\/insserv failed, exit code 1&#8217; error, type:<\/strong><\/p>\n<pre># insserv syslog<\/pre>\n<p>and repeat:<\/p>\n<pre># systemctl enable nginx.service<\/pre>\n<p>Then, start Nginx:<\/p>\n<pre># systemctl start nginx.service<\/pre>\n<p>Now go to http:\/\/&lt;yourdomain.com&gt; or http:\/\/&lt;your_ip_address&gt; from your favorite browser. You should see the contents of the file index.html file that is stored in the document root for Nginx (\/srv\/www\/htdocs\/).<\/p>\n<p>We will now edit the Nginx configuration file. Make sure it resembles to the one we are posting, except for the lines you are sure you want them adjusted according to your needs. Note that this is only an initial config and it may vary depending on the website\/application you are about to host.<\/p>\n<pre># vim \/etc\/nginx\/nginx.conf<\/pre>\n<pre><code><\/code><code>worker_processes\u00a0 2;\r\n\r\n\u00a0\u00a0\u00a0 sendfile\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 on;\r\n\r\n\u00a0\u00a0\u00a0 keepalive_timeout\u00a0 65;\r\n\r\n\u00a0\u00a0\u00a0 gzip\u00a0 on;\r\n\r\n\u00a0\u00a0\u00a0 include conf.d\/*.conf;\r\n\r\n\u00a0\u00a0\u00a0 server {\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 listen\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 80;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 server_name\u00a0 _;\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #charset koi8-r;\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 location \/ {\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 root\u00a0\u00a0 \/srv\/www\/htdocs\/;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 index index.php index.html index.htm;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 error_page\u00a0\u00a0 500 502 503 504\u00a0 \/50x.html;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 location = \/50x.html {\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 root\u00a0\u00a0 \/srv\/www\/htdocs\/;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 location ~ \\.php$ {\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 root\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/srv\/www\/htdocs\/;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 fastcgi_pass\u00a0\u00a0 127.0.0.1:9000;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 fastcgi_index\u00a0 index.php;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 include\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 fastcgi_params;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # deny access to .htaccess files, if Apache's document root\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # concurs with nginx's one\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 location ~ \/\\.ht {\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 deny\u00a0 all;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }\r\n\u00a0\u00a0\u00a0 }<\/code><\/pre>\n<p>Save and close the file. Test the Nginx config:<\/p>\n<pre># nginx -t<\/pre>\n<p>If everything is OK make the Nginx service aware of the changes by reloading it with the following command:<\/p>\n<pre># systemctl reload nginx.service<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"7-Install-PHP-FPM\"><\/span>7. Install PHP-FPM<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Your next step is to install PHP-FPM. You can do that with the below commands:<\/p>\n<pre># zypper install -y php5-pear php5-gd php5-mbstring php5-mcrypt php5-sockets php5-xmlrpc php5-zlib php5-curl php5-bz2 php5-ftp php5-sysvsem php5-fpm php5-mysql<\/pre>\n<p>Start the PHP-FPM configuration by copying the config file:<\/p>\n<pre># cp -v \/etc\/php5\/fpm\/php-fpm.conf.default \/etc\/php5\/fpm\/php-fpm.conf<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"8-Configure-PHP-FPM\"><\/span>8. Configure\u00a0PHP-FPM<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Now edit the <em><strong>php-fpm.conf <\/strong><\/em>and modify the user and group values from <strong>nobody<\/strong> to <strong>nginx<\/strong>. Also enable error logging. Open the config file with your favorite text editor:<\/p>\n<pre># vim \/etc\/php5\/fpm\/php-fpm.conf<\/pre>\n<p>Uncomment and edit the following line to set the correct log file path:<\/p>\n<pre><code>error_log = \/var\/log\/php-fpm.log<\/code><\/pre>\n<p>After you change the user and group values, the respective lines should look like this:<\/p>\n<pre>; Unix\u00a0 user\/group of processes\r\n; Note: The user is mandatory. If the group is not set, the default user's group\r\n;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 will be used.\r\nuser = nginx\r\ngroup = nginx<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"9-Create-and-Configure-phpini\"><\/span>9. Create and Configure php.ini<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>With <strong>openSUSE<\/strong> <strong>13.1<\/strong> there is no <strong>php.ini<\/strong> file for PHP-FPM. Let&#8217;s change that. Copy the php.ini file from <strong>\/etc\/php5\/cli\/ to \/etc\/php5\/fpm\/<\/strong> as shown below:<\/p>\n<pre># cp \/etc\/php5\/cli\/php.ini \/etc\/php5\/fpm\/<\/pre>\n<p>Now edit the <strong>php.ini<\/strong> file:<\/p>\n<pre># vim \/etc\/php5\/fpm\/php.ini<\/pre>\n<p>Change the <em><strong>cgi.fix_pathinfo<\/strong><\/em> parameter value to <strong>0<\/strong>. By default it will be commented out with a semi-colon and the value set to 1 which practically ensures that <strong>PHP<\/strong> will attempt to execute the closest file available when a requested PHP file can\u2019t be found. Save and close the file after editing.<\/p>\n<p>Enable the service to start on boot and then start it:<\/p>\n<pre># systemctl enable php-fpm.service\r\n\r\n# systemctl start php-fpm.service<\/pre>\n<p>Then, create a test php file:<\/p>\n<pre># vim \/srv\/www\/htdocs\/index.php<\/pre>\n<pre><code>&lt;?php\r\n phpinfo();\r\n ?&gt;<\/code><\/pre>\n<p>Open http:\/\/&lt;yourdomain.com&gt; or http:\/\/&lt;your_ip_address&gt; in your web browser. If you followed closely, you should now see the phpinfo start page.<\/p>\n<p>And, that&#8217;s it. We have successfully set up a LEMP stack on openSUSE<\/p>\n<p>Of course you don\u2019t have to\u00a0install LEMP on openSUSE, if you use one of our <a href=\"https:\/\/www.rosehosting.com\/opensuse-vps.html\">openSUSE Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install and configure LEMP for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n<p><strong><span style=\"color: #ff0000;\">PS<\/span>.<\/strong> If you liked this post, on\u00a0how to install LEMP on openSUSE,\u00a0 please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ll show you How to install LEMP on openSUSE.\u00a0 This\u00a0article we will cover the steps needed for installing and configuring &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to install LEMP on openSUSE\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\/#more-2332\" aria-label=\"Read more about How to install LEMP on openSUSE\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":25417,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1702,13,1712,1707],"tags":[310,39,49,312,51],"class_list":["post-2332","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-databases","category-tutorials","category-web-frameworks","category-web-servers","tag-lemp","tag-mysql","tag-nginx","tag-opensuse","tag-php-fpm","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to install LEMP on openSUSE | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to install LEMP on openSUSE | RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install LEMP on openSUSE\" \/>\n<meta property=\"og:description\" content=\"How to install LEMP on openSUSE | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2016-03-22T21:56:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:43:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/03\/How-to-install-LEMP-on-openSUSE.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to install LEMP on openSUSE\",\"datePublished\":\"2016-03-22T21:56:18+00:00\",\"dateModified\":\"2022-06-03T08:43:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\\\/\"},\"wordCount\":778,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/03\\\/How-to-install-LEMP-on-openSUSE.jpg\",\"keywords\":[\"lemp\",\"mysql\",\"nginx\",\"opensuse\",\"php-fpm\"],\"articleSection\":[\"Databases\",\"Tutorials\",\"Web Frameworks\",\"Web Servers\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\\\/\",\"name\":\"How to install LEMP on openSUSE | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/03\\\/How-to-install-LEMP-on-openSUSE.jpg\",\"datePublished\":\"2016-03-22T21:56:18+00:00\",\"dateModified\":\"2022-06-03T08:43:42+00:00\",\"description\":\"How to install LEMP on openSUSE | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/03\\\/How-to-install-LEMP-on-openSUSE.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/03\\\/How-to-install-LEMP-on-openSUSE.jpg\",\"width\":1200,\"height\":600,\"caption\":\"How to install LEMP on openSUSE\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install LEMP on openSUSE\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to install LEMP on openSUSE | RoseHosting","description":"How to install LEMP on openSUSE | RoseHosting","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\/","og_locale":"en_US","og_type":"article","og_title":"How to install LEMP on openSUSE","og_description":"How to install LEMP on openSUSE | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2016-03-22T21:56:18+00:00","article_modified_time":"2022-06-03T08:43:42+00:00","og_image":[{"width":1200,"height":600,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/03\/How-to-install-LEMP-on-openSUSE.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to install LEMP on openSUSE","datePublished":"2016-03-22T21:56:18+00:00","dateModified":"2022-06-03T08:43:42+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\/"},"wordCount":778,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/03\/How-to-install-LEMP-on-openSUSE.jpg","keywords":["lemp","mysql","nginx","opensuse","php-fpm"],"articleSection":["Databases","Tutorials","Web Frameworks","Web Servers"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\/","name":"How to install LEMP on openSUSE | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/03\/How-to-install-LEMP-on-openSUSE.jpg","datePublished":"2016-03-22T21:56:18+00:00","dateModified":"2022-06-03T08:43:42+00:00","description":"How to install LEMP on openSUSE | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/03\/How-to-install-LEMP-on-openSUSE.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/03\/How-to-install-LEMP-on-openSUSE.jpg","width":1200,"height":600,"caption":"How to install LEMP on openSUSE"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-stack-on-opensuse\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to install LEMP on openSUSE"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/2332","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=2332"}],"version-history":[{"count":1,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/2332\/revisions"}],"predecessor-version":[{"id":41994,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/2332\/revisions\/41994"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/25417"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=2332"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=2332"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=2332"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}