{"id":2901,"date":"2020-03-19T17:27:51","date_gmt":"2020-03-19T11:57:51","guid":{"rendered":"https:\/\/www.24x7serversupport.com\/blog\/?p=2901"},"modified":"2020-03-21T23:04:29","modified_gmt":"2020-03-21T17:34:29","slug":"how-to-install-lamp-stack-on-kali-linux","status":"publish","type":"post","link":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-lamp-stack-on-kali-linux\/","title":{"rendered":"How to install LAMP Stack on kali linux"},"content":{"rendered":"\n<p>A LAMP Stack is a set of open-source software that can be used to create websites and web applications.<\/p>\n\n\n\n<p>LAMP is an acronym, and these stacks typically consist of:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>L<\/strong>inux operating system.<\/li><li><strong>A<\/strong>pache HTTP server.<\/li><li><strong>M<\/strong>ySQL relational database management system.<\/li><li><strong>P<\/strong>HP programming language.<\/li><\/ul>\n\n\n\n<p>Install the LAMP stack on Kali Linux is different from Ubuntu.<\/p>\n\n\n\n<p>To create the LAMP server on KALI Linux follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Update your system.<\/li><\/ol>\n\n\n\n<p><code>sudo apt-get update<\/code><\/p>\n\n\n\n<p>2. Install Apache2.<\/p>\n\n\n\n<p><code>sudo apt-get install apache2<\/code><\/p>\n\n\n\n<p>3. To start\/restart\/stop the Apache2 server:<\/p>\n\n\n\n<p><code>$ \/etc\/init.d\/apache2 start\/stop\/restart<\/code><\/p>\n\n\n\n<p>4. Install MySQL and start the services:<\/p>\n\n\n\n<p><code>$ sudo \/etc\/init.d\/mysql start<\/code><\/p>\n\n\n\n<p><code>$ sudo mysql_secure_installation<\/code><\/p>\n\n\n\n<p>5. Install PHP (php7.0 is the latest version of PHP).<\/p>\n\n\n\n<p><code>$ sudo apt-get -y install php7.0 libapache2-mod-php7.0<\/code><\/p>\n\n\n\n<p>\/\/Restart the server<\/p>\n\n\n\n<p><code>$ systemctl restart apache2<\/code><\/p>\n\n\n\n<p>6. Check whether it is working or not.<\/p>\n\n\n\n<p><code>$ cd \/var\/www\/html<\/code><\/p>\n\n\n\n<p><code>$ touch info.php<\/code><\/p>\n\n\n\n<p><code>$ nano info.php<\/code><\/p>\n\n\n\n<p>Enter the below code in <code>Info.php<\/code>:<\/p>\n\n\n\n<p><code>&lt;?php<\/code><\/p>\n\n\n\n<p><code>phpinfo();<\/code><\/p>\n\n\n\n<p><code>?&gt;<\/code><\/p>\n\n\n\n<p>Save \u2014 <code>CTRL+O+enter<\/code><\/p>\n\n\n\n<p>Exit \u2014 <code>CTRL+X+enter<\/code><\/p>\n\n\n\n<p>7. Now open the browser and visit <a rel=\"noreferrer noopener\" href=\"http:\/\/localhost\/info.php\" target=\"_blank\">http:\/\/IP\/info.php<\/a>. You will see the following:<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A LAMP Stack is a set of open-source software that can be used to create websites and web applications. LAMP is an acronym, and these stacks typically consist of: Linux operating system. Apache HTTP server. MySQL relational database management system. PHP programming language. Install the LAMP stack on Kali Linux is different from Ubuntu. To [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2902,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[139,243,174],"tags":[120,247,250,112,248],"class_list":["post-2901","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache","category-kali-linux","category-mysql","tag-installation","tag-kali","tag-lamp","tag-linux","tag-os"],"jetpack_publicize_connections":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to install LAMP Stack on kali linux | 24x7serversupport Blog<\/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:\/\/www.24x7serversupport.com\/blog\/how-to-install-lamp-stack-on-kali-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install LAMP Stack on kali linux | 24x7serversupport Blog\" \/>\n<meta property=\"og:description\" content=\"A LAMP Stack is a set of open-source software that can be used to create websites and web applications. LAMP is an acronym, and these stacks typically consist of: Linux operating system. Apache HTTP server. MySQL relational database management system. PHP programming language. Install the LAMP stack on Kali Linux is different from Ubuntu. To [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-lamp-stack-on-kali-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"24x7serversupport Blog\" \/>\n<meta property=\"article:published_time\" content=\"2020-03-19T11:57:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-03-21T17:34:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/03\/kali-linux.jpg?fit=804%2C336&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"804\" \/>\n\t<meta property=\"og:image:height\" content=\"336\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"24x7support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@24x7serversuppo\" \/>\n<meta name=\"twitter:site\" content=\"@24x7serversuppo\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"24x7support\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-lamp-stack-on-kali-linux\/\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-lamp-stack-on-kali-linux\/\",\"name\":\"How to install LAMP Stack on kali linux | 24x7serversupport Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-lamp-stack-on-kali-linux\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-lamp-stack-on-kali-linux\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/03\/kali-linux.jpg?fit=804%2C336&ssl=1\",\"datePublished\":\"2020-03-19T11:57:51+00:00\",\"dateModified\":\"2020-03-21T17:34:29+00:00\",\"author\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-lamp-stack-on-kali-linux\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-lamp-stack-on-kali-linux\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-lamp-stack-on-kali-linux\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/03\/kali-linux.jpg?fit=804%2C336&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/03\/kali-linux.jpg?fit=804%2C336&ssl=1\",\"width\":804,\"height\":336,\"caption\":\"kali-linux\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-lamp-stack-on-kali-linux\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.24x7serversupport.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install LAMP Stack on kali linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#website\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/\",\"name\":\"24x7serversupport Blog\",\"description\":\"Linux | CPanel | WHM | webhosting| Plesk | DirectAdmin | CentOs | Debian | Ubuntu Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.24x7serversupport.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401\",\"name\":\"24x7support\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/author\/24x7support\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to install LAMP Stack on kali linux | 24x7serversupport Blog","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.24x7serversupport.com\/blog\/how-to-install-lamp-stack-on-kali-linux\/","og_locale":"en_US","og_type":"article","og_title":"How to install LAMP Stack on kali linux | 24x7serversupport Blog","og_description":"A LAMP Stack is a set of open-source software that can be used to create websites and web applications. LAMP is an acronym, and these stacks typically consist of: Linux operating system. Apache HTTP server. MySQL relational database management system. PHP programming language. Install the LAMP stack on Kali Linux is different from Ubuntu. To [&hellip;]","og_url":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-lamp-stack-on-kali-linux\/","og_site_name":"24x7serversupport Blog","article_published_time":"2020-03-19T11:57:51+00:00","article_modified_time":"2020-03-21T17:34:29+00:00","og_image":[{"width":804,"height":336,"url":"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/03\/kali-linux.jpg?fit=804%2C336&ssl=1","type":"image\/jpeg"}],"author":"24x7support","twitter_card":"summary_large_image","twitter_creator":"@24x7serversuppo","twitter_site":"@24x7serversuppo","twitter_misc":{"Written by":"24x7support","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-lamp-stack-on-kali-linux\/","url":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-lamp-stack-on-kali-linux\/","name":"How to install LAMP Stack on kali linux | 24x7serversupport Blog","isPartOf":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-lamp-stack-on-kali-linux\/#primaryimage"},"image":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-lamp-stack-on-kali-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/03\/kali-linux.jpg?fit=804%2C336&ssl=1","datePublished":"2020-03-19T11:57:51+00:00","dateModified":"2020-03-21T17:34:29+00:00","author":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401"},"breadcrumb":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-lamp-stack-on-kali-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.24x7serversupport.com\/blog\/how-to-install-lamp-stack-on-kali-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-lamp-stack-on-kali-linux\/#primaryimage","url":"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/03\/kali-linux.jpg?fit=804%2C336&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/03\/kali-linux.jpg?fit=804%2C336&ssl=1","width":804,"height":336,"caption":"kali-linux"},{"@type":"BreadcrumbList","@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-lamp-stack-on-kali-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.24x7serversupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to install LAMP Stack on kali linux"}]},{"@type":"WebSite","@id":"https:\/\/www.24x7serversupport.com\/blog\/#website","url":"https:\/\/www.24x7serversupport.com\/blog\/","name":"24x7serversupport Blog","description":"Linux | CPanel | WHM | webhosting| Plesk | DirectAdmin | CentOs | Debian | Ubuntu Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.24x7serversupport.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401","name":"24x7support","url":"https:\/\/www.24x7serversupport.com\/blog\/author\/24x7support\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/03\/kali-linux.jpg?fit=804%2C336&ssl=1","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/2901","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/comments?post=2901"}],"version-history":[{"count":2,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/2901\/revisions"}],"predecessor-version":[{"id":2904,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/2901\/revisions\/2904"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/media\/2902"}],"wp:attachment":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/media?parent=2901"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/categories?post=2901"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/tags?post=2901"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}