{"id":14175,"date":"2023-05-10T18:37:25","date_gmt":"2023-05-10T18:37:25","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=14175"},"modified":"2023-09-18T15:51:14","modified_gmt":"2023-09-18T15:51:14","slug":"how-to-install-xampp-on-ubuntu","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-install-xampp-on-ubuntu\/","title":{"rendered":"How to Install XAMPP on Ubuntu"},"content":{"rendered":"<p>XAMPP is a software package that includes <a href=\"https:\/\/webhostinggeeks.com\/blog\/apache-http-server-explained\/\">Apache web server<\/a>, MySQL database server, and PHP scripting language. It is used to set up a local web server environment on your Ubuntu machine for development and testing purposes. In this guide, we will go through the steps to install XAMPP on <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-ubuntu-beginners-guide-ubuntu-linux-distro\/\">Ubuntu<\/a>.<\/p>\n<h2>Step 1: Download the XAMPP Package<\/h2>\n<p>The first step is to download the XAMPP package from the Apache Friends website. You can do this by using the following command to download the latest XAMPP package:<\/p>\n<pre>\r\nwget https:\/\/www.apachefriends.org\/xampp-files\/latest-xampp-linux-x64.tar.gz\r\n<\/pre>\n<p>This will download the XAMPP package in a compressed format.<\/p>\n<h2>Step 2: Extract the XAMPP Package<\/h2>\n<p>Once the XAMPP package is downloaded, you need to extract it to a directory on your Ubuntu machine. You can use the following command to extract the package:<\/p>\n<pre>\r\nsudo tar xvfz latest-xampp-linux-x64.tar.gz -C \/opt\r\n<\/pre>\n<p>This will extract the XAMPP package to the \/opt directory on your Ubuntu machine.<\/p>\n<h2>Step 3: Start the XAMPP Server<\/h2>\n<p>After extracting the XAMPP package, you need to start the Apache and MySQL servers included in the package. You can do this by running the following command:<\/p>\n<pre>\r\nsudo \/opt\/lampp\/lampp start\r\n<\/pre>\n<p>This will start the XAMPP server.<\/p>\n<h2>Step 4: Verify the XAMPP Installation<\/h2>\n<p>To verify that the XAMPP installation is successful, you can open a web browser and enter &#8220;localhost&#8221; or &#8220;127.0.0.1&#8221; in the address bar. This will display the XAMPP dashboard, where you can manage the Apache and MySQL servers, and create databases and web applications.<\/p>\n<h2>Step 5: Stop the XAMPP Server<\/h2>\n<p>To stop the XAMPP server, you can run the following command:<\/p>\n<pre>\r\nsudo \/opt\/lampp\/lampp stop\r\n<\/pre>\n<p>This will stop the Apache and MySQL servers included in the XAMPP package.<\/p>\n<h2>Commands Mentioned:<\/h2>\n<ul>\n<li><span class=\"fw-bold\">wget<\/span> &#8211; a command-line utility used to download files from the internet.<\/li>\n<li><span class=\"fw-bold\">sudo<\/span> &#8211; a command that allows users to run programs with the security privileges of another user, typically the superuser.<\/li>\n<li><span class=\"fw-bold\">tar<\/span> &#8211; a command used to extract files from a tarball archive.<\/li>\n<\/ul>\n<h2>Conclusion:<\/h2>\n<p>In this guide, we have outlined the steps to install XAMPP on Ubuntu. By following these steps, you can set up a local web server environment on your Ubuntu machine for development and testing purposes. If you have any questions or suggestions, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>XAMPP is a software package that includes Apache web server, MySQL database server, and PHP scripting language. It is used to set up a local web server environment on your&#8230;<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[996,1073],"tags":[1975,1856,2049],"class_list":["post-14175","post","type-post","status-publish","format-standard","hentry","category-linux","category-ubuntu","tag-install","tag-ubuntu","tag-xampp"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/14175","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=14175"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/14175\/revisions"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=14175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=14175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=14175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}