{"id":3660,"date":"2016-04-06T12:19:00","date_gmt":"2016-04-06T12:19:00","guid":{"rendered":"https:\/\/cpanelplesk.com\/wp62\/?p=3660"},"modified":"2021-02-06T05:07:19","modified_gmt":"2021-02-06T05:07:19","slug":"build-working-debian-server-apache-php-mysql","status":"publish","type":"post","link":"https:\/\/cpanelplesk.com\/wp62\/build-working-debian-server-apache-php-mysql\/","title":{"rendered":"How to build working Debian server with Apache, PHP and MySQL"},"content":{"rendered":"<p><span style=\"color: #000000;\">Previously in our most of the tutorials we have talk about CentOS and Ubuntu, So today I have decided to write something about working Debian server. In this article I will show you step by step guide to install Apache, MySQL and PHP on Debian server.<\/span><\/p>\n<p><span style=\"color: #000000;\">Just read and follow each step, you will be successfully build your own web hosting server Debian OS.<\/span><span id=\"more-3606\"><\/span><\/p>\n<p><!--more--><\/p>\n<h3>HOW TO INSTALL APACHE WEB SERVER<\/h3>\n<p>Open <a href=\"https:\/\/cpanelplesk.com\/wp62\/using-putty-connect-server-ssh-windows\/\">Terminal<\/a> then login to your server as root user.<\/p>\n<p>First of all make sure that all of the packages are up to date by running following command:<\/p>\n<div class=\"command-sh\">\n<pre class=\"lang:default decode:true \">apt-get update &amp;&amp; apt-get upgrade \u2013y<\/pre>\n<\/div>\n<p>Now\u00a0install\u00a0Apache web server using this easy command:<\/p>\n<div class=\"command-sh\">\n<pre class=\"lang:default decode:true \">apt-get install apache2 \u2013y<\/pre>\n<\/div>\n<p>To make sure it\u2019s successfully installed, up and running. Run below command:<\/p>\n<div class=\"command-sh\">\n<pre class=\"lang:default decode:true \">service apache2 status<\/pre>\n<\/div>\n<p>You can also access your VPS via its IP address into your favorite browser:<\/p>\n<h3>HOW TO INSTALL PHP5<\/h3>\n<p>Now we will install the PHP5 with its common modules:<\/p>\n<div class=\"command-sh\">\n<pre class=\"lang:default decode:true\">apt-get install php5-cgi php5-cli php5-common php5-curl php5-dev php5-gd \r\nphp5-tidy php5-xmlrpc php5-xsl php5-mcrypt php5-imap php5-imagick php5-json \r\nphp5-intl php5-mcrypt libapache2-mod-php5 \u2013y<\/pre>\n<\/div>\n<p>It would be completed in seconds, now you can check if PHP is installed correctly and what version:<\/p>\n<div class=\"command-sh\">\n<pre class=\"lang:default decode:true \">php \u2013v<\/pre>\n<\/div>\n<p>Restart Apache web service<\/p>\n<div class=\"command-sh\">\n<pre class=\"lang:default decode:true \">service apache2 restart<\/pre>\n<\/div>\n<h3>HOW TO INSTALL MARIADB<\/h3>\n<p>Now the final step is to install Maria DB which is pretty much easy as MySQL. But it is fast and more lightweight than MySQL and has similar functions as in MySQL.<\/p>\n<div class=\"command-sh\">\n<pre class=\"lang:default decode:true \">apt-get install mariadb-server \u2013y<\/pre>\n<\/div>\n<p>During the installation you will be asked to given the new password as MySQL root password:<\/p>\n<p>Define new password and repeat it once again.<\/p>\n<p>Now check if Maria DB is installed and running properly:<\/p>\n<div class=\"command-sh\">\n<pre class=\"lang:default decode:true \"># on Debian 8\r\n\r\nsystemctl status mysql\r\n\r\n# on Debian 7 or 8\r\n\r\nservice mysql status<\/pre>\n<\/div>\n<p><span style=\"color: #000000;\">That\u2019s all about setting up working Debian server,Now you can host your websites or blog on your Debian VPS\/Server.<\/span><\/p>\n<p><span style=\"color: #000000;\">You may also like to know\u00a0<a href=\"https:\/\/cpanelplesk.com\/wp62\/add-new-website-apache-based-debian-server\/\">how to add\u00a0new site into your Apache-based Debian server<\/a>. So, do check it out in my next article.<\/span><\/p>\n<p><span style=\"color: #000000;\">Give your opinion below if you experience any issues or to discuss your ideas and experiences.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Previously in our most of the tutorials we have talk about CentOS and Ubuntu, So today I have decided to write something about working Debian server. In this article I will show you step by step guide to install Apache, MySQL and PHP on Debian server. Just read and follow each step, you will be [&#8230;]<\/p>\n<p><a class=\"understrap-read-more-link\" href=\"https:\/\/cpanelplesk.com\/wp62\/build-working-debian-server-apache-php-mysql\/\">Continue Reading&#8230;<\/a><\/p>\n","protected":false},"author":2,"featured_media":3609,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-3660","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to build working Debian server with Apache, PHP and MySQL - cPanel Plesk<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cpanelplesk.com\/wp62\/build-working-debian-server-apache-php-mysql\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to build working Debian server with Apache, PHP and MySQL - cPanel Plesk\" \/>\n<meta name=\"twitter:description\" content=\"Previously in our most of the tutorials we have talk about CentOS and Ubuntu, So today I have decided to write something about working Debian server. In this article I will show you step by step guide to install Apache, MySQL and PHP on Debian server. Just read and follow each step, you will be [...]Continue Reading...\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/03\/images-e1458979210139.jpg\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Seemab Saleem\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/build-working-debian-server-apache-php-mysql\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/build-working-debian-server-apache-php-mysql\/\"},\"author\":{\"name\":\"Seemab Saleem\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648\"},\"headline\":\"How to build working Debian server with Apache, PHP and MySQL\",\"datePublished\":\"2016-04-06T12:19:00+00:00\",\"dateModified\":\"2021-02-06T05:07:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/build-working-debian-server-apache-php-mysql\/\"},\"wordCount\":314,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"image\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/build-working-debian-server-apache-php-mysql\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/03\/images-e1458979210139.jpg\",\"articleSection\":[\"Linux\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/build-working-debian-server-apache-php-mysql\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/build-working-debian-server-apache-php-mysql\/\",\"name\":\"How to build working Debian server with Apache, PHP and MySQL - cPanel Plesk\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/build-working-debian-server-apache-php-mysql\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/build-working-debian-server-apache-php-mysql\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/03\/images-e1458979210139.jpg\",\"datePublished\":\"2016-04-06T12:19:00+00:00\",\"dateModified\":\"2021-02-06T05:07:19+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/build-working-debian-server-apache-php-mysql\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cpanelplesk.com\/wp62\/build-working-debian-server-apache-php-mysql\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/build-working-debian-server-apache-php-mysql\/#primaryimage\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/03\/images-e1458979210139.jpg\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/03\/images-e1458979210139.jpg\",\"width\":200,\"height\":200},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/build-working-debian-server-apache-php-mysql\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cpanelplesk.com\/wp62\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to build working Debian server with Apache, PHP and MySQL\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/\",\"name\":\"cPanel Plesk\",\"description\":\"Blog on famous hosting control panels\",\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\",\"name\":\"Farooq Omer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"width\":300,\"height\":44,\"caption\":\"Farooq Omer\"},\"logo\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648\",\"name\":\"Seemab Saleem\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g\",\"caption\":\"Seemab Saleem\"},\"description\":\"Linux Server Administrator, Web Hosting engineer. I'm dealing with Linux servers since 2014. I started this blog to share the work i love with the world . let me know if you need any assistance. Thanks!!\",\"sameAs\":[\"https:\/\/cpanelplesk.com\/wp62\"],\"url\":\"https:\/\/cpanelplesk.com\/wp62\/author\/cmb\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to build working Debian server with Apache, PHP and MySQL - cPanel Plesk","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:\/\/cpanelplesk.com\/wp62\/build-working-debian-server-apache-php-mysql\/","twitter_card":"summary_large_image","twitter_title":"How to build working Debian server with Apache, PHP and MySQL - cPanel Plesk","twitter_description":"Previously in our most of the tutorials we have talk about CentOS and Ubuntu, So today I have decided to write something about working Debian server. In this article I will show you step by step guide to install Apache, MySQL and PHP on Debian server. Just read and follow each step, you will be [...]Continue Reading...","twitter_image":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/03\/images-e1458979210139.jpg","twitter_misc":{"Written by":"Seemab Saleem","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cpanelplesk.com\/wp62\/build-working-debian-server-apache-php-mysql\/#article","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/build-working-debian-server-apache-php-mysql\/"},"author":{"name":"Seemab Saleem","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648"},"headline":"How to build working Debian server with Apache, PHP and MySQL","datePublished":"2016-04-06T12:19:00+00:00","dateModified":"2021-02-06T05:07:19+00:00","mainEntityOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/build-working-debian-server-apache-php-mysql\/"},"wordCount":314,"commentCount":0,"publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"image":{"@id":"https:\/\/cpanelplesk.com\/wp62\/build-working-debian-server-apache-php-mysql\/#primaryimage"},"thumbnailUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/03\/images-e1458979210139.jpg","articleSection":["Linux"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/cpanelplesk.com\/wp62\/build-working-debian-server-apache-php-mysql\/","url":"https:\/\/cpanelplesk.com\/wp62\/build-working-debian-server-apache-php-mysql\/","name":"How to build working Debian server with Apache, PHP and MySQL - cPanel Plesk","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/build-working-debian-server-apache-php-mysql\/#primaryimage"},"image":{"@id":"https:\/\/cpanelplesk.com\/wp62\/build-working-debian-server-apache-php-mysql\/#primaryimage"},"thumbnailUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/03\/images-e1458979210139.jpg","datePublished":"2016-04-06T12:19:00+00:00","dateModified":"2021-02-06T05:07:19+00:00","breadcrumb":{"@id":"https:\/\/cpanelplesk.com\/wp62\/build-working-debian-server-apache-php-mysql\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cpanelplesk.com\/wp62\/build-working-debian-server-apache-php-mysql\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/build-working-debian-server-apache-php-mysql\/#primaryimage","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/03\/images-e1458979210139.jpg","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/03\/images-e1458979210139.jpg","width":200,"height":200},{"@type":"BreadcrumbList","@id":"https:\/\/cpanelplesk.com\/wp62\/build-working-debian-server-apache-php-mysql\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cpanelplesk.com\/wp62\/"},{"@type":"ListItem","position":2,"name":"How to build working Debian server with Apache, PHP and MySQL"}]},{"@type":"WebSite","@id":"https:\/\/cpanelplesk.com\/wp62\/#website","url":"https:\/\/cpanelplesk.com\/wp62\/","name":"cPanel Plesk","description":"Blog on famous hosting control panels","publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13","name":"Farooq Omer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","width":300,"height":44,"caption":"Farooq Omer"},"logo":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/"}},{"@type":"Person","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648","name":"Seemab Saleem","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g","caption":"Seemab Saleem"},"description":"Linux Server Administrator, Web Hosting engineer. I'm dealing with Linux servers since 2014. I started this blog to share the work i love with the world . let me know if you need any assistance. Thanks!!","sameAs":["https:\/\/cpanelplesk.com\/wp62"],"url":"https:\/\/cpanelplesk.com\/wp62\/author\/cmb\/"}]}},"_links":{"self":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/3660","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/comments?post=3660"}],"version-history":[{"count":0,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/3660\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media\/3609"}],"wp:attachment":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media?parent=3660"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/categories?post=3660"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/tags?post=3660"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}