<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>php localhost | Student Projects</title>
	<atom:link href="https://studentprojects.in/tag/php-localhost/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Mon, 11 Apr 2022 13:12:21 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>How to run PHP files on a local computer using XAMPP</title>
		<link>https://studentprojects.in/software-development/php-mysql/php-tutorial/how-to-run-php-files-on-a-local-computer-using-xampp/</link>
					<comments>https://studentprojects.in/software-development/php-mysql/php-tutorial/how-to-run-php-files-on-a-local-computer-using-xampp/#respond</comments>
		
		<dc:creator><![CDATA[Ranjith Kadamboor]]></dc:creator>
		<pubDate>Thu, 07 Apr 2022 02:40:36 +0000</pubDate>
				<category><![CDATA[PHP Tutorial]]></category>
		<category><![CDATA[XAMPP]]></category>
		<category><![CDATA[php localhost]]></category>
		<category><![CDATA[phpMyAdmin]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=8939</guid>

					<description><![CDATA[<p>To run a PHP, it is enough to just install an Apache server on your local computer. In most PHP projects, MySQL is used as a database. PHPMyAdmin is required to manage the database. All are separate open-source software and installing this software one by one will be a difficult job for beginners. This is</p>
<p>The post <a href="https://studentprojects.in/software-development/php-mysql/php-tutorial/how-to-run-php-files-on-a-local-computer-using-xampp/">How to run PHP files on a local computer using XAMPP</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>To run a PHP, it is enough to just install an Apache server on your local computer. In most PHP projects, MySQL is used as a database. PHPMyAdmin is required to manage the database. All are separate open-source software and installing this software one by one will be a difficult job for beginners. This is where XAMPP comes into the picture. &nbsp;XAMPP is an easy to install Apache distribution containing Apache web server, PHP and MySQL bundled together.&nbsp;</p>



<p>Download XAMPP from <a href="https://www.apachefriends.org/index.html" target="_blank" rel="noopener">XAMPP&#8217;s official website</a>. Select your operating system and click on the download button.</p>



<div class="wp-block-image wp-image-8770 size-full"><figure class="aligncenter"><img decoding="async" width="800" height="479" src="https://studentprojects.in/wp-content/uploads/2011/01/XAMPP-Setup.jpg" alt="Download XAMPP from XAMPP's official website" class="wp-image-8770" srcset="https://studentprojects.in/wp-content/uploads/2011/01/XAMPP-Setup.jpg 800w, https://studentprojects.in/wp-content/uploads/2011/01/XAMPP-Setup-300x180.jpg 300w, https://studentprojects.in/wp-content/uploads/2011/01/XAMPP-Setup-768x460.jpg 768w" sizes="(max-width: 800px) 100vw, 800px" /><figcaption>Download XAMPP from XAMPP&#8217;s official website.</figcaption></figure></div>



<p>Wait a few moments after hitting the download button. Because the file is around 150 MB in size, it will take some time to download. After downloading the file, double click the executable file and follow the installation process.&nbsp;</p>



<div class="wp-block-image size-full wp-image-8774"><figure class="aligncenter"><img decoding="async" loading="lazy" width="502" height="425" src="https://studentprojects.in/wp-content/uploads/2011/01/01-Xampp-setup-on-Windows.png" alt="Xampp setup on Windows" class="wp-image-8774" srcset="https://studentprojects.in/wp-content/uploads/2011/01/01-Xampp-setup-on-Windows.png 502w, https://studentprojects.in/wp-content/uploads/2011/01/01-Xampp-setup-on-Windows-300x254.png 300w" sizes="(max-width: 502px) 100vw, 502px" /><figcaption>XAMPP serve setup on Windows</figcaption></figure></div>



<p>Click on the Next button.</p>



<div class="wp-block-image size-full wp-image-8775"><figure class="aligncenter"><img decoding="async" loading="lazy" width="502" height="425" src="https://studentprojects.in/wp-content/uploads/2011/01/02-Xampp-server-setup-on-Windows.png" alt="Xampp server setup on Windows" class="wp-image-8775" srcset="https://studentprojects.in/wp-content/uploads/2011/01/02-Xampp-server-setup-on-Windows.png 502w, https://studentprojects.in/wp-content/uploads/2011/01/02-Xampp-server-setup-on-Windows-300x254.png 300w" sizes="(max-width: 502px) 100vw, 502px" /><figcaption>Select the required components to install</figcaption></figure></div>



<p>On this screen, some of the checkboxes will already be checked. It is enough to select Apache, MySQL, PHP and phpMyAdmin and click on the Next button. On the next screen, select the path where you want to install the XAMPP server. You can leave it as default c:\xampp. Click on the Next button.</p>



<div class="wp-block-image size-full wp-image-8776"><figure class="aligncenter"><img decoding="async" loading="lazy" width="502" height="425" src="https://studentprojects.in/wp-content/uploads/2011/01/03-Xampp-installation-on-Windows.png" alt="Xampp installation on Windows" class="wp-image-8776" srcset="https://studentprojects.in/wp-content/uploads/2011/01/03-Xampp-installation-on-Windows.png 502w, https://studentprojects.in/wp-content/uploads/2011/01/03-Xampp-installation-on-Windows-300x254.png 300w" sizes="(max-width: 502px) 100vw, 502px" /><figcaption>Xampp installation is in progress</figcaption></figure></div>



<div class="wp-block-image size-full wp-image-8795"><figure class="aligncenter"><img decoding="async" loading="lazy" width="502" height="425" src="https://studentprojects.in/wp-content/uploads/2011/01/Start-Xampp-server.png" alt="Start Xampp server" class="wp-image-8795" srcset="https://studentprojects.in/wp-content/uploads/2011/01/Start-Xampp-server.png 502w, https://studentprojects.in/wp-content/uploads/2011/01/Start-Xampp-server-300x254.png 300w" sizes="(max-width: 502px) 100vw, 502px" /><figcaption>Remove the tick mark and click the finish button</figcaption></figure></div>



<p>Once the installation is complete, remove the tick mark &#8220;Do you want to start the control panel now?&#8221; and click on the Finish button. We have to run the XAMPP control panel as administrators.</p>



<h3>Step 2 &#8211; Run the XAMPP server and test it</h3>



<p>Once the XAMPP installation is complete, you will need to run XAMPP as an administrator on Windows. To do that, click Start, find XAMPP Control Panel in your Programs list, then right-click and select Run As Administrator. Another option is to go to C:/xampp where you have installed the XAMPP server, run xampp_start.exe as administrator.</p>



<div class="wp-block-image size-full wp-image-8777"><figure class="aligncenter"><img decoding="async" loading="lazy" width="824" height="687" src="https://studentprojects.in/wp-content/uploads/2011/01/04-Run-xampp-as-administrator.png" alt="Run xampp as administrator" class="wp-image-8777" srcset="https://studentprojects.in/wp-content/uploads/2011/01/04-Run-xampp-as-administrator.png 824w, https://studentprojects.in/wp-content/uploads/2011/01/04-Run-xampp-as-administrator-300x250.png 300w, https://studentprojects.in/wp-content/uploads/2011/01/04-Run-xampp-as-administrator-768x640.png 768w" sizes="(max-width: 824px) 100vw, 824px" /><figcaption>Run XAMPP as administrator</figcaption></figure></div>



<p>This will launch the XAMPP Control Panel.</p>



<div class="wp-block-image size-full wp-image-8778"><figure class="aligncenter"><img decoding="async" loading="lazy" width="668" height="434" src="https://studentprojects.in/wp-content/uploads/2011/01/05-Run-Apache-and-MySql-server-on-windows-xampp.png" alt="Run Apache and MySql server on windows xampp" class="wp-image-8778" srcset="https://studentprojects.in/wp-content/uploads/2011/01/05-Run-Apache-and-MySql-server-on-windows-xampp.png 668w, https://studentprojects.in/wp-content/uploads/2011/01/05-Run-Apache-and-MySql-server-on-windows-xampp-300x195.png 300w" sizes="(max-width: 668px) 100vw, 668px" /><figcaption>XAMPP Control Panel</figcaption></figure></div>



<p>First, run Apache and MySQL services on the left side of the Control panel. Observe the green tick mark. This will register the Apache and MySQL server as service and it will start the server on every system reboot. Now click on the Start button for both Apache and MySQL which should look like the below image.&nbsp;&nbsp;You can track the green running status near to it.</p>



<div class="wp-block-image size-full wp-image-8779"><figure class="aligncenter"><img decoding="async" loading="lazy" width="668" height="434" src="https://studentprojects.in/wp-content/uploads/2011/01/06-Configure-Apache-and-MySql-server-on-localhost.png" alt="Configure Apache and MySql server on localhost" class="wp-image-8779" srcset="https://studentprojects.in/wp-content/uploads/2011/01/06-Configure-Apache-and-MySql-server-on-localhost.png 668w, https://studentprojects.in/wp-content/uploads/2011/01/06-Configure-Apache-and-MySql-server-on-localhost-300x195.png 300w" sizes="(max-width: 668px) 100vw, 668px" /><figcaption>Start Apache &amp; MySQL in the XAMPP Control Panel</figcaption></figure></div>



<p>Now is the time to test the XAMPP server. Open http://localhost, if everything is good then it should open the page like the below image.&nbsp;</p>



<div class="wp-block-image size-full wp-image-8780"><figure class="aligncenter"><img decoding="async" loading="lazy" width="1074" height="658" src="https://studentprojects.in/wp-content/uploads/2011/01/07-Testing-XAMPP-on-localhost.png" alt="Testing XAMPP on localhost" class="wp-image-8780" srcset="https://studentprojects.in/wp-content/uploads/2011/01/07-Testing-XAMPP-on-localhost.png 1074w, https://studentprojects.in/wp-content/uploads/2011/01/07-Testing-XAMPP-on-localhost-300x184.png 300w, https://studentprojects.in/wp-content/uploads/2011/01/07-Testing-XAMPP-on-localhost-1024x627.png 1024w, https://studentprojects.in/wp-content/uploads/2011/01/07-Testing-XAMPP-on-localhost-768x471.png 768w" sizes="(max-width: 1074px) 100vw, 1074px" /><figcaption>Testing XAMPP on localhost</figcaption></figure></div>



<p>Create your project folder inside C:/xampp/htdocs and upload the files. For example, create a folder called &#8220;project&#8221; inside C:/xampp/htdocs and upload a sample PHP file. Now go to the browser and open http://localhost/project. PHP file should open properly. </p>



<h3>Creating a Database</h3>



<p>We will create a MySQL database using the phpMyAdmin tool. Open http://localhost/phpmyadmin to launch phpMyAdmin. </p>



<div class="wp-block-image size-full wp-image-8783"><figure class="aligncenter"><img decoding="async" loading="lazy" width="1073" height="476" src="https://studentprojects.in/wp-content/uploads/2011/01/10-phpmyadmin-setup-on-localhost.png" alt="phpmyadmin setup on localhost" class="wp-image-8783" srcset="https://studentprojects.in/wp-content/uploads/2011/01/10-phpmyadmin-setup-on-localhost.png 1073w, https://studentprojects.in/wp-content/uploads/2011/01/10-phpmyadmin-setup-on-localhost-300x133.png 300w, https://studentprojects.in/wp-content/uploads/2011/01/10-phpmyadmin-setup-on-localhost-1024x454.png 1024w, https://studentprojects.in/wp-content/uploads/2011/01/10-phpmyadmin-setup-on-localhost-768x341.png 768w" sizes="(max-width: 1073px) 100vw, 1073px" /><figcaption>PHPMyAdmin setup on localhost</figcaption></figure></div>



<p>Click on the tab Databases, enter the database name and click on create button. This will create a database.&nbsp;You can name the database whatever you want.</p>



<p>So, give it a shot and let me know if you have any questions in the comments section below. I’ll be happy to assist you!</p><p>The post <a href="https://studentprojects.in/software-development/php-mysql/php-tutorial/how-to-run-php-files-on-a-local-computer-using-xampp/">How to run PHP files on a local computer using XAMPP</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/php-mysql/php-tutorial/how-to-run-php-files-on-a-local-computer-using-xampp/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
