 
    
<?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 Archives - Complete, Concrete, Concise</title>
	<atom:link href="https://complete-concrete-concise.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>https://complete-concrete-concise.com/tag/php/</link>
	<description>Practical Information Without The Bloat</description>
	<lastBuildDate>Sun, 01 Sep 2013 19:52:59 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
	<item>
		<title>WordPress Generating Core Dumps</title>
		<link>https://complete-concrete-concise.com/web-tools/wordpress-generating-core-dumps/</link>
		
		<dc:creator><![CDATA[richardsplanet]]></dc:creator>
		<pubDate>Sun, 01 Sep 2013 19:52:59 +0000</pubDate>
				<category><![CDATA[Web Tools]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[account suspended]]></category>
		<category><![CDATA[core dump]]></category>
		<category><![CDATA[crashing]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[error_log]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">http://complete-concrete-concise.com/?p=3004</guid>

					<description><![CDATA[<p>Surprisingly, the culprit is probably PHP.</p>
<p>The post <a href="https://complete-concrete-concise.com/web-tools/wordpress-generating-core-dumps/">WordPress Generating Core Dumps</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="c1">
<p>Between 30-August-2013 and 01-September-2013, Complete, Concrete, Concise had its web hosting suspended with a demand that the WordPress installation be deleted.</p>
<p>Not wanting to delete my installation and then reinstall (and hopefully restore all data correctly), I investigated.</p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2013/09/core-dump-1-big.png" target="_blank"><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/09/core-dump-1-thumb.png" alt="" border="0" class="centered"/></a></p>
<div class="c2">
<p><strong>Note:</strong> this problem and solution is likely the same for any PHP based application &#8211; like Joomla! or Drupal.</p>
</div>
</div>
<h1>Symptoms</h1>
<p>Most likely, your web hosting provider will inform you that your account has been <strong><u>suspended</u></strong> because your WordPress (or other PHP based application) is generating a lot of core dumps and playing havoc with their server. In my case, I was asked to delete my WordPress installation.</p>
<p>Alternately, you may notice there are a lot of <code>core.xxxx</code> (xxxx being a four digit number) files in your WordPress directory.</p>
<h1>The Cause</h1>
<div class="c1">
<p>There may be other causes for core dumps, but this is what was causing mine.</p>
</div>
<p>When your <code>error_log</code>  file gets to be 2,147,483,647 bytes long, PHP will start crashing and generating core dumps. This is because PHP cannot handle files larger than 2GB.</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/09/core-dump-2.png" alt="" border="0" class="centered"/></p>
<p><code>error_log</code> is where PHP stores messages about any errors it encounters.</p>
<p>The most common cause of errors is a corrupt MySQL database file.</p>
<div class="c1">
<p>I suspect this is a fairly common problem but I could only find it mentioned <a href="http://www.stevenwoodson.com/blog/archives/2011/02/16/apache-2gb-file-limit/">here</a>.</p>
<p>PHP&#8217;s failure in dealing with files larger than 2<sup>31</sup> &#8211; 1 bytes long is documented <a href="http://de2.php.net/manual/en/function.filesize.php">here</a> (although, the expression &#8220;<u>unexpected behaviour</u>&#8221; doesn&#8217;t really do it justice). To be fair, the PHP documentation claims this is only a problem on 32-bit systems &#8211; however, since I don&#8217;t know if my web host is running a 32 or 64 bit version of Linux, I can&#8217;t say anything other than &#8220;it is really stupid to not fail gracefully at a known hard limit&#8221;.</p>
</div>
<h1>The Fix</h1>
<div class="c1">
<p>When your account is suspended, you will probably only have <code>ftp</code> access.</p>
</div>
<ol>
<li>Delete the file <code>error_log</code>.</li>
<li>rename <code>index.php</code> to something else (<code>xxx_index.php</code> is good)</li>
<li>inform your hosting provider that:
<ol>
<li>you suspect the problem was PHP&#8217;s inability to handle and <code>error_log</code> larger than 2GB and you have deleted it</li>
<li>you have deactivated your WordPress account by renaming <code>index.php</code> </li>
<li>you would like access to your account restored so you can run MySQL applications to check and repair your database if necessary</li>
</ol>
</li>
<li>Fix the database (if it is corrupted). Instructions for checking and repairing a database can be found <a href="//complete-concrete-concise.com/web-tools/when-your-website-stops-working-properly-it-may-be-a-corrupt-database">here</a>.</li>
<li>restore the name of the file in step (2) back to <code>index.php</code></li>
<li>go to your website and browse a few pages.</li>
<li>verify that <code>core.xxxx</code> files are not being generated. If they are being generated, than you probably have some other problem.</li>
<li>verify that the file <code>error_log</code> is not being generated. If it is being generated, it is a good idea to look at it and see what errors are occurring. Depending on how quickly <code>error_log</code> is growing, it might be a good idea to suspend your site again by renaming <code>index.php</code></li>
</ol>

<p>The post <a href="https://complete-concrete-concise.com/web-tools/wordpress-generating-core-dumps/">WordPress Generating Core Dumps</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Installing AMPPS &#8211; Apache Server, MySql, PHP, Perl with Installation Scripts</title>
		<link>https://complete-concrete-concise.com/web-tools/installing-ampps-apache-server-mysql-php-perl-with-installation-scripts/</link>
					<comments>https://complete-concrete-concise.com/web-tools/installing-ampps-apache-server-mysql-php-perl-with-installation-scripts/#comments</comments>
		
		<dc:creator><![CDATA[richardsplanet]]></dc:creator>
		<pubDate>Mon, 10 Oct 2011 02:16:18 +0000</pubDate>
				<category><![CDATA[Web Tools]]></category>
		<category><![CDATA[1.2]]></category>
		<category><![CDATA[AMPPS]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[installing]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[php]]></category>
		<guid isPermaLink="false">http://complete-concrete-concise.com/web-tools/installing-ampps-apache-server-mysql-php-perl-with-installation-scripts</guid>

					<description><![CDATA[<p>These instructions are for installing AMPPS 1.2 on Windows XP with Service Pack 3. It should work for other configurations as well. Some images may be clicked for full sized versions. AMPPS is an extremely easy to install and use Apache Server which comes bundled with MySQL (a database), PHP (server side scripting language), Perl [&#8230;]</p>
<p>The post <a href="https://complete-concrete-concise.com/web-tools/installing-ampps-apache-server-mysql-php-perl-with-installation-scripts/">Installing AMPPS &#8211; Apache Server, MySql, PHP, Perl with Installation Scripts</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="c1">
<p>These instructions are for installing AMPPS 1.2 on Windows XP with Service Pack 3. It should work for other configurations as well.</p>
</div>
<div class="c2">Some images may be clicked for full sized versions.</div>
<p>AMPPS is an extremely easy to install and use Apache Server which comes bundled with MySQL (a database), PHP (server side scripting language), Perl (another server side scripting language), Python (yet another scripting language) and auto-installation scripts for 225 different web applications.</p>
<h1>Why would I want to install it?</h1>
<p>To allow development and testing on your local machine instead of on a remote (and probably live) server. I use it to test out changes to my website before uploading and committing changes to the real site.</p>
<p>Compared to XAMPP, AMPPS is easier and friendlier to use because of its auto-installation scripts. This allows you to easily try out various web applications without having to (1) find them yourself, and (2) handle the low level install details (not that it is hard). If an application you want to try out does not have an auto-install script, you can still install it manually (as you would under XAMPP).</p>
<p>Since I am more interested in testing out applications than developing them, I like the convenience of having so many to choose from.</p>
<h1>Why wouldn&#8217;t I want to install it?</h1>
<p>AMPPS does not enable port 443. Secure URLs, which begin with <span class="i1">https</span>, connect to your browser using port 443. Regular URLs, which begin with <span class="i1">http</span>, connect to your browser using port 80.</p>
<p><p>There does not seem to be a simple way to enable it.</p>
<p>For most people, this is not likely to be an issue.</p>
<p>As well, AMPPS does not grant you MySQL root access. Again, for most people this doesn&#8217;t matter because AMPPS scripts handle database creation for you (if the application needs one). If you need to create a new database, you simply have to assign it a user to be able to use it.</p>
<h1>Installation</h1>
<p>Download the self extracting package, run it and, in most cases, accept the default settings.</p>
<h1>Downloading</h1>
<p><strong>1) Go to</strong> the <a href="http://ampps.com/download">AMPPS download page</a> and click on the download icon:</p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2011/10/installing-ampps-1.2-1-large.png" target="_blank"><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2011/10/installing-ampps-1.2-1-thumb.png" alt="" border="0" class="centered"/></a></p>
<p><strong>2) Select</strong> to either Save the file or to Run it directly over the Internet. Saving allows you to uninstall and reinstall if necessary:<br />
<img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2011/10/installing-ampps-1.2-2.png" alt="" border="0" class="centered" /></p>
<h1>Installation</h1>
<p><strong>3) Click</strong> <u>Run</u> to begin installation. <span class="i1"><strong>NOTE:</strong> this step may differ depending on (1) whether you chose to <u>Save</u> or <u>Run</u> the file in Step 2, (2) which browser you are using. I used Internet Explorer, FireFox downloads into its own location, (3) you already have the file and are just reinstalling.</span></p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2011/10/installing-ampps-1.2-3a.png" alt="" border="0" class="centered"/></p>
<p><strong>4) Windows may issue</strong> a <u>Security Warning</u>. It is safe to click on <u>Run</u>:<br />
<img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2011/10/installing-ampps-1.2-3.png" alt="" border="0" class="centered" /></p>
<div class="c1">
<p>The installation process will present a number of screens (too many in my opinion). In general, it is ok to accept the default settings.</p>
</div>
<p><strong>5) Click </strong> <u>Next</u> on the welcome screen.</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2011/10/installing-ampps-1.2-4.png" alt="" border="0" class="centered" /></p>
<p><strong>6) Read</strong> the <u>License Agreements</u> and, if you agree, <strong>select</strong> <em>&#8220;I accept the agreement&#8221;</em> checkbox and <strong>click</strong> on <u>Next</u> to continue. <strong>Note:</strong> if you do not accept the agreements, then you will not be able to install AMPPS</p>
<p>:<br />
<img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2011/10/installing-ampps-1.2-5.png" alt="" border="0" class="centered" /></p>
<p><strong>7) Click</strong> <u>Next</u> to continue.</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2011/10/installing-ampps-1.2-6.png" alt="" border="0" class="centered" /></p>
<p><strong>8) Choose</strong> where you want to install AMPPS. By default, it will be installed in <span class="i1">C:\Program Files\Ampps</span>. For most installs, the default selection is fine. I chose to install it in <span class="i1">D:\ampps</span>. You can either type the install location yourself, or browse for it:</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2011/10/installing-ampps-1.2-7.png" alt="" border="0" class="centered" /></p>
<p><strong>9) Click</strong> <u>Next</u> to create a menu folder called Ampps. If you like, you can change the name of the folder (by typing in a different folder name) or browse and select a folder to install AMPPS into. I accepted the default:</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2011/10/installing-ampps-1.2-8.png" alt="" border="0" class="centered" /></p>
<p><strong>10) Click</strong> <u>Next</u> to allow creation of (1) Desktop Icon, (2) Quick Launch Icon, and (3) Start Menu Icon. If you do not want any or all of these icons created, then deselect them by clicking on the appropriate checkbox:</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2011/10/installing-ampps-1.2-9.png" alt="" border="0" class="centered" /></p>
<p><strong>11) Review</strong> your installation options and <strong>click</strong> <u>Next</u> to continue installation. If you want to change any installation options, <strong>click</strong> <u>Back</u> to go to a  previous screen. Since there were three different configuration option screens, you might have to click <u>Back</u> up to three times:</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2011/10/installing-ampps-1.2-10.png" alt="" border="0" class="centered" /></p>
<p><strong>12) During installation</strong>, a progress screen will be displayed. Just wait:</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2011/10/installing-ampps-1.2-11.png" alt="" border="0" class="centered" /></p>
<p><strong>13) After installation, click</strong> <u>Finish</u> to launch AMPPS:<br />
<img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2011/10/installing-ampps-1.2-12.png" alt="" border="0" class="centered" /></p>
<p><strong>14) Windows may issue</strong> a <u>Security Alert</u> about running the <em>Apache HTTP Server</em>. <strong>Click</strong> <u>Unblock</u> to allow the <em>Apache HTTP Server</em> to run. <span class="i1"><strong>NOTE:</strong> the Apache Server needs to run to in order for AMPPS to work:</span></p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2011/10/installing-ampps-1.2-13a.png" alt="" border="0" class="centered" /></p>
<p><strong>15) Windows may issue</strong> a <u>Security Alert</u> about running the <em>MySQL Database</em>. <strong>Click</strong> <unblockM.u> to allow the <em>MySQL Database</em> to run. <span class="i1"><strong>NOTE:</strong> the MySQL Database needs to run in order for AMPPS to work:</span></p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2011/10/installing-ampps-1.2-13b.png" alt="" border="0" class="centered" /></p>
<h1>The AMPPS Control Panel</h1>
<p>The AMPPS control panel is a little bit unintuitive &#8211; you know that the Apache server and MySQL Database are running because the <strong>Start</strong> icons are greyed out. It would be less confusing (I think) if they provided some sort of <strong>Running</strong> icon.</p>
<p>The <strong>Restart</strong> buttons are a nice touch and work well when restarting the services.</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2011/10/installing-ampps-1.2-14.png" alt="" border="0" class="centered" /></p>
<h1>Running AMPPS</h1>
<p>To run AMPPS, simply enter <span class="i1">localhost/ampps</span> into your browser&#8217;s URL field.</p>
<p>AMPPS presents you with a rich set of options for script installations: PHP, javascript, and Perl (ok, there is only one application under Perl &#8211; Movable Type)</p>
<p>You can choose various applications to install from the left hand side (boxed in RED).</p>
<p>There is a menu bar in the top right (boxed in GREEN).</p>
<p>In the center are presented various options and information (boxed in BLUE).</p>
<p>Near the top left, you can select which script packages you are interested in (boxed in YELLOW).</p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2011/10/installing-ampps-1.2-15-large.png" target="_blank"><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2011/10/installing-ampps-1.2-15-thumb.png" alt="" border="0" class="centered"/></a><br />
</p>
<p>The post <a href="https://complete-concrete-concise.com/web-tools/installing-ampps-apache-server-mysql-php-perl-with-installation-scripts/">Installing AMPPS &#8211; Apache Server, MySql, PHP, Perl with Installation Scripts</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://complete-concrete-concise.com/web-tools/installing-ampps-apache-server-mysql-php-perl-with-installation-scripts/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>Installing XAMPP &#8211; Apache Server, MySql, and PHP</title>
		<link>https://complete-concrete-concise.com/web-tools/installing-xampp-apache-server-mysql-and-php/</link>
					<comments>https://complete-concrete-concise.com/web-tools/installing-xampp-apache-server-mysql-and-php/#comments</comments>
		
		<dc:creator><![CDATA[richardsplanet]]></dc:creator>
		<pubDate>Mon, 21 Mar 2011 12:32:06 +0000</pubDate>
				<category><![CDATA[Web Tools]]></category>
		<category><![CDATA[1.7.3]]></category>
		<category><![CDATA[1.7.4]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[installing]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[XAMPP]]></category>
		<guid isPermaLink="false">http://complete-concrete-concise.com/web-development/installing-xampp-apache-server-mysql-and-php-2</guid>

					<description><![CDATA[<p>These instructions are for installing XAMPP 1.7.3 on Windows XP, Service Pack 3. It should work for other configurations as well. XAMPP 1.7.4 (released in January 2011). I had no problem with the install and most things work just fine, however, there are many little things that require &#8220;expert&#8221; tinkering to get it working right. [&#8230;]</p>
<p>The post <a href="https://complete-concrete-concise.com/web-tools/installing-xampp-apache-server-mysql-and-php/">Installing XAMPP &#8211; Apache Server, MySql, and PHP</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="c1">
<p>These instructions are for installing XAMPP 1.7.3 on Windows XP, Service Pack 3. It should work for other configurations as well.</p>
<p><strong>XAMPP 1.7.4</strong> (released in January 2011). I had no problem with the install and most things work just fine, however, there are many little things that require &#8220;expert&#8221; tinkering to get it working right. Because of this, I cannot recommend it to someone just looking for a straightforward install with minimal tinkering. See also this discussion <a href="http://www.apachefriends.org/f/viewtopic.php?f=16&amp;t=44327">thread</a> at Apache Friends which covers in more detail the various issues.</p>
<p><strong>XAMPP 1.7.7</strong> (released in Septemeber 2011) is the latest version. I had no problem with the install and most things work just fine, however, there are many little things that require &#8220;expert&#8221; tinkering to get it working right (it is much stricter on PHP errors than 1.7.3 is &#8211; a flag change to fix that). Because of this, I cannot recommend it to someone just looking for a straightforward install with minimal tinkering. It has a new <em>phpmyadmin</em> interface (unfortunately, it defaults to German &#8211; easily changed, though). It still exludes the port checker present in version 1.7.3 (which is a really useful debug tool). </p>
<div class="c4">
<p>If you are determined to install XAMPP 1.7.4 or 1.7.7 and you are more of a user than a developer, you will want to check out <a href="//complete-concrete-concise.com/web-tools/xampp-fixing-strict-standards-errors">this article</a> on preventing the PHP interpreter from spitting out error messages related to poor programming practice (yes, even popular packages can be filled with poor programming practices) and deprecated features.</p>
</div>
<div class="c3">
<p><strong>NOTE:</strong> If you are just looking for a way to install and test various web applications. A simpler alternative might be to install AMPPS instead. It provides the same basic functionality as XAMPP, but includes installation scripts for over 200 different web applications. You can read about installing AMPPS <a href="//complete-concrete-concise.com/web-tools/installing-ampps-apache-server-mysql-php-perl-with-installation-scripts">here</a>.</p>
</div>
</div>
<p class="c2"><strong>Click</strong> on images for full sized versions.</p>
<p>XAMPP is an extremely easy to install and use Apache Server which comes bundled with MySQL (a database), PHP (server side scripting language), Perl (another server side scripting language), FileZilla FTP Server and Mercury Mail Transport System.</p>
<h2>Why would I want to install it?</h2>
<p>To allow development and testing on your local machine instead of on a remote (and probably live) server. I use it to test out changes to my website before uploading and committing changes to the real site.</p>
<h2>Installation</h2>
<p>Download the self extracting package, run it and, in most cases, accept the default settings.</p>
<h2>Downloading</h2>
<p><strong>1) Go to</strong> the SourceForge <a href="http://sourceforge.net/projects/xampp/files/XAMPP%20Windows/1.7.3/">website</a> and select <strong>xampp-win32-1.7.3.exe</strong> to download XAMP (this is the self extracting version with the built-in installer):</p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2011/03/xampp1.7.31download.png"><img fetchpriority="high" decoding="async" style="display: block; float: none; margin-left: auto; margin-right: auto; border-width: 0px;" title="xampp-1.7.3-1-download" src="//complete-concrete-concise.com/wp-content/uploads/2011/03/xampp1.7.31download_thumb.png" border="0" alt="xampp-1.7.3-1-download" width="484" height="286" /></a></p>
<p><strong>2) You will be redirected</strong> to a download page. If the download does not start in a few seconds, click on the direct download link:</p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2011/03/xampp1.7.31download2.png"><img decoding="async" style="display: block; float: none; margin-left: auto; margin-right: auto; border-width: 0px;" title="xampp-1.7.3-1-download-2" src="//complete-concrete-concise.com/wp-content/uploads/2011/03/xampp1.7.31download2_thumb.png" border="0" alt="xampp-1.7.3-1-download-2" width="484" height="108" /></a></p>
<p><strong>3) Select</strong> to either <strong>Save</strong> the file or to <strong>Run</strong> it directly over the Internet. Saving allows you to uninstall and reinstall if necessary:</p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2011/03/xamppdownload4.png"><img decoding="async" style="display: block; float: none; margin-left: auto; margin-right: auto; border-width: 0px;" title="xampp-download-4" src="//complete-concrete-concise.com/wp-content/uploads/2011/03/xamppdownload4_thumb.png" border="0" alt="xampp-download-4" width="484" height="300" /></a></p>
<h2>Extracting</h2>
<p><strong>4)&nbsp; Enter</strong> the location to extract XAMPP into. By default, it selects the <strong>C:\</strong> drive. I entered my <strong>D:\</strong> drive because I have more space there. <strong>[NOTE: XAMPP will automatically create a folder called \XAMPP in the directory you specify, having C:\ as your install folder will result in XAMPP being installed in C:\XAMPP\]. </strong>Click on the <strong>Install</strong> button:</p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2011/03/xamppextraction1.png"><img loading="lazy" decoding="async" style="display: block; float: none; margin-left: auto; margin-right: auto; border-width: 0px;" title="xampp-extraction-1" src="//complete-concrete-concise.com/wp-content/uploads/2011/03/xamppextraction1_thumb.png" border="0" alt="xampp-extraction-1" width="484" height="338" /></a></p>
<h2>Configuring</h2>
<p>The XAMPP installation will ask a few configuration questions. It should be safe to accept the defaults.</p>
<p><strong>5) Enter</strong> y and press the Enter / Return key for the prompt: <em>Should I add shortcuts to the startmenu/desktop? (y/n): y</em></p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2011/03/xamppinstallquestion1.png"><img loading="lazy" decoding="async" style="display: block; float: none; margin-left: auto; margin-right: auto; border-width: 0px;" title="xampp-install-question-1" src="//complete-concrete-concise.com/wp-content/uploads/2011/03/xamppinstallquestion1_thumb.png" border="0" alt="xampp-install-question-1" width="484" height="318" /></a></p>
<p><strong>6) Enter</strong> y and press the Enter / Return key for the prompt:</p>
<p><em>Should I locate the XAMPP paths correctly? </em></p>
<p><em>Should I proceed? (y/x=exit setup): y</em></p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2011/03/xamppinstallquestion2.png"><img loading="lazy" decoding="async" style="display: block; float: none; margin-left: auto; margin-right: auto; border-width: 0px;" title="xampp-install-question-2" src="//complete-concrete-concise.com/wp-content/uploads/2011/03/xamppinstallquestion2_thumb.png" border="0" alt="xampp-install-question-2" width="484" height="326" /></a></p>
<p><strong>7) Enter</strong> n and press the Enter / Return key for the prompt: <em></em></p>
<p><em>Should I make a portable XAMPP without drive letters? </em></p>
<p><em>NOTE: &#8211; You should use drive letters, if you want use services.<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8211; With USB sticks you must not use drive letters. </em></p>
<p><em>Your choice? (y/n): n</em></p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2011/03/xamppinstallquestion3.png"><img loading="lazy" decoding="async" style="display: block; float: none; margin-left: auto; margin-right: auto; border-width: 0px;" title="xampp-install-question-3" src="//complete-concrete-concise.com/wp-content/uploads/2011/03/xamppinstallquestion3_thumb.png" border="0" alt="xampp-install-question-3" width="484" height="324" /></a></p>
<p><strong>8) Press </strong>the Enter / Return key for the prompt:</p>
<p><em>XAMPP is ready to use. </em></p>
<p><em>Press to continue:</em></p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2011/03/xamppinstallquestion4.png"><img loading="lazy" decoding="async" style="display: block; float: none; margin-left: auto; margin-right: auto; border-width: 0px;" title="xampp-install-question-4" src="//complete-concrete-concise.com/wp-content/uploads/2011/03/xamppinstallquestion4_thumb.png" border="0" alt="xampp-install-question-4" width="484" height="320" /></a></p>
<p><strong>9) Press </strong>the Enter / Return key for the prompt: <em></em></p>
<p><em>I have set the timezone in &#8216;php.ini&#8217; and &#8216;my.ini&#8217; to &#8220;America/New_York&#8221;. </em></p>
<p><em>You should correct these values if my guess was wrong. </em></p>
<p><em>Press to continue:</em></p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2011/03/xamppinstallquestion5.png"><img loading="lazy" decoding="async" style="display: block; float: none; margin-left: auto; margin-right: auto; border-width: 0px;" title="xampp-install-question-5" src="//complete-concrete-concise.com/wp-content/uploads/2011/03/xamppinstallquestion5_thumb.png" border="0" alt="xampp-install-question-5" width="484" height="320" /></a></p>
<p><strong>10) Enter</strong> 1 and press the Enter / Return key for the prompt: <em>Please choose (1-7/x): 1</em>. This will start the XAMPP control panel:</p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2011/03/xamppinstallquestion6.png"><img loading="lazy" decoding="async" style="display: block; float: none; margin-left: auto; margin-right: auto; border-width: 0px;" title="xampp-install-question-6" src="//complete-concrete-concise.com/wp-content/uploads/2011/03/xamppinstallquestion6_thumb.png" border="0" alt="xampp-install-question-6" width="484" height="318" /></a></p>
<h2>Setting Up</h2>
<p><strong>11) Click </strong>the two check boxes labelled Svc located next to the Apache and MySQL labels. This will install both services for you:</p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2011/03/xamppmainpanel.png"><img loading="lazy" decoding="async" style="display: block; float: none; margin-left: auto; margin-right: auto; border-width: 0px;" title="xampp-main-panel" src="//complete-concrete-concise.com/wp-content/uploads/2011/03/xamppmainpanel_thumb.png" border="0" alt="xampp-main-panel" width="484" height="446" /></a></p>
<p><strong>12) Press </strong>OK when prompted to install the Apache Service and MySQL service:</p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2011/03/xamppinstallapacheserviceprompt.png"><img loading="lazy" decoding="async" style="display: block; float: none; margin-left: auto; margin-right: auto; border-width: 0px;" title="xampp-install-apache-service-prompt" src="//complete-concrete-concise.com/wp-content/uploads/2011/03/xamppinstallapacheserviceprompt_thumb.png" border="0" alt="xampp-install-apache-service-prompt" width="484" height="238" /></a></p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2011/03/xamppinstallmysqlprompt.png"><img loading="lazy" decoding="async" style="display: block; float: none; margin-left: auto; margin-right: auto; border-width: 0px;" title="xampp-install-mysql-prompt" src="//complete-concrete-concise.com/wp-content/uploads/2011/03/xamppinstallmysqlprompt_thumb.png" border="0" alt="xampp-install-mysql-prompt" width="484" height="240" /></a></p>
<p><strong>13) Observe</strong> that the services are now running. If the services are not running, then you need to manually start them. See step <strong>(14)</strong>.</p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2011/03/xamppmainpanelservicesrunning.png"><img loading="lazy" decoding="async" style="display: block; float: none; margin-left: auto; margin-right: auto; border-width: 0px;" title="xampp-main-panel-services-running" src="//complete-concrete-concise.com/wp-content/uploads/2011/03/xamppmainpanelservicesrunning_thumb.png" border="0" alt="xampp-main-panel-services-running" width="484" height="446" /></a></p>
<p><strong>14)</strong> If the Apache and MySql services did not start when you installed them, then click on the <strong>Start</strong> button beside each service. <strong>NOTE:</strong> The Apache service can take several seconds to start and the application may look as though it is hung – just wait. If the Apache service does not start, see <strong>Troubleshooting</strong> below.</p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2011/03/xampp1.7.3startservices.png"><img loading="lazy" decoding="async" style="display: block; float: none; margin-left: auto; margin-right: auto; border-width: 0px;" title="xampp-1.7.3-start-services" src="//complete-concrete-concise.com/wp-content/uploads/2011/03/xampp1.7.3startservices_thumb.png" border="0" alt="xampp-1.7.3-start-services" width="484" height="446" /></a></p>
<h2>Testing The Installation</h2>
<p>XAMPP is now setup and ready to use on your computer.</p>
<p>To test, launch your browser and enter:</p>
<p><span class="i1">http://localhost</span></p>
<p>into your navigation bar. You should see the following display:</p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2011/03/xamppsuccessfulinstallwelcomescreen.png"><img loading="lazy" decoding="async" style="display: block; float: none; margin-left: auto; margin-right: auto; border-width: 0px;" title="xampp-successful-install-welcome-screen" src="//complete-concrete-concise.com/wp-content/uploads/2011/03/xamppsuccessfulinstallwelcomescreen.png" border="0" alt="xampp-successful-install-welcome-screen" width="484" height="354" /></a></p>
<div class="c1">
<p>The default installation of XAMPP Is not secure and should not be used as a publicly accessible server. However, it functions just fine as a test bed server for various software packages like Joomla!, WordPress, Drupal, or even if you want to experiment with PHP or MySQL.</p>
</div>
<div class="c3">
<p>When you set up a web site under XAMPP, you need to type <span class="i1">localhost/my-site</span> into the navigation bar to access it. If you would like to change it so you can type <span class="i1">my-site.com</span> instead (so it looks more like a &#8220;real&#8221; web site), you can find instructions for that <a href="//complete-concrete-concise.com/web-tools/how-to-change-localhost-to-a-domain-name">here</a>.</p>
</div>

<h2>Troubleshooting</h2>
<p>Sometimes the Apache Server will not run. This is most often caused by some other application using port 80 (the <strong>http</strong> port).
</p>
<div class="c1">
<p>If you are not allowed to change or disable programs using port 80, or if port 80 is being blocked on your computer, consider changing the port the Apache Server uses.
</p>
<p>Instructions for changing the port used by Apache Server are found <a href="//complete-concrete-concise.com/web-tools/how-to-change-the-apache-port-in-xampp" target="_top">here</a>.</p>
</div>
<p><strong>1) Click</strong> on <strong>Port-Check</strong> to see if any other applications or services are using port 80.</p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2011/03/xampp1.7.3portcheck1.png"><img loading="lazy" decoding="async" style="display: block; float: none; margin-left: auto; margin-right: auto; border-width: 0px;" title="xampp-1.7.3-port-check-1" src="//complete-concrete-concise.com/wp-content/uploads/2011/03/xampp1.7.3portcheck1_thumb.png" border="0" alt="xampp-1.7.3-port-check-1" width="484" height="446" /></a></p>
<p><strong>2)</strong> A console window will appear and <strong>XAMPP PortCheck</strong> will run. Sample results are shown in the image below. In this case, uTorrent is using port 80 and preventing Apache Server from running. The solution is to either shutdown uTorrent or change its configuration to use a different port.</p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2011/03/xampp1.7.3portcheck2.png"><img loading="lazy" decoding="async" style="display: block; float: none; margin-left: auto; margin-right: auto; border-width: 0px;" title="xampp-1.7.3-port-check-2" src="//complete-concrete-concise.com/wp-content/uploads/2011/03/xampp1.7.3portcheck2_thumb.png" border="0" alt="xampp-1.7.3-port-check-2" width="484" height="478" /></a></p>
<p class="c1">The more common cause is that Microsoft Internet Information Services (IIS) is running. Instructions for disabling the IIS can be found <a href="//complete-concrete-concise.com/web-tools/disabling-the-microsoft-internet-information-server-iis">here</a>.</p>
<p>The post <a href="https://complete-concrete-concise.com/web-tools/installing-xampp-apache-server-mysql-and-php/">Installing XAMPP &#8211; Apache Server, MySql, and PHP</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://complete-concrete-concise.com/web-tools/installing-xampp-apache-server-mysql-and-php/feed/</wfw:commentRss>
			<slash:comments>23</slash:comments>
		
		
			</item>
	</channel>
</rss>
