{"id":1556,"date":"2018-02-27T15:01:09","date_gmt":"2018-02-27T20:01:09","guid":{"rendered":"http:\/\/bluegalaxy.info\/codewalk\/?p=1556"},"modified":"2018-02-27T15:01:24","modified_gmt":"2018-02-27T20:01:24","slug":"install-php-mysql-confirm-installation","status":"publish","type":"post","link":"https:\/\/bluegalaxy.info\/codewalk\/2018\/02\/27\/install-php-mysql-confirm-installation\/","title":{"rendered":"How to install PHP\/MySQL and confirm the installation"},"content":{"rendered":"<p>The quickest way I found to install PHP and MySQL was to download the Bitnami WAMP stack module, which also installs a fresh Apache 2 server. See:<br \/>\n<a href=\"https:\/\/bitnami.com\/stack\/wamp\">https:\/\/bitnami.com\/stack\/wamp<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" id=\"img_ds\" class=\"alignnone wp-image-1557 size-full\" src=\"http:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/02\/bitnami_wamp.png\" alt=\"\" width=\"668\" height=\"327\" srcset=\"https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/02\/bitnami_wamp.png 668w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/02\/bitnami_wamp-300x147.png 300w\" sizes=\"auto, (max-width: 668px) 100vw, 668px\" \/><\/p>\n<p>The installer I found for Windows 10 was called &#8220;bitnami-wampstack-7.1.14-0-windows-x64-installer.exe&#8221;. In running the installation, Bitnami creates a folder for apache2, php, and mysql here:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"no-highlight\">C:\\Bitnami\\wampstack-7.1.14-0<\/pre>\n<p>Bitnami also comes with a server manager that looks like this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" id=\"img_ds\" class=\"alignnone wp-image-1559 size-full\" src=\"http:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/02\/bitnami_manager.png\" alt=\"\" width=\"543\" height=\"403\" srcset=\"https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/02\/bitnami_manager.png 543w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/02\/bitnami_manager-300x223.png 300w\" sizes=\"auto, (max-width: 543px) 100vw, 543px\" \/><\/p>\n<h2>PHP<\/h2>\n<p>One thing Bitnami doesn&#8217;t do is set the PHP path in your PC&#8217;s Path variable. After setting this, I checked the version of PHP at the command line using the command\u00a0<code class=\"EnlighterJSRAW\" data-enlighter-language=\"no-highlight\">php -v<\/code>.<\/p>\n<p>For example:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" id=\"img_ds\" class=\"alignnone wp-image-1561 size-full\" src=\"http:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/02\/php-v.png\" alt=\"\" width=\"672\" height=\"92\" srcset=\"https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/02\/php-v.png 672w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/02\/php-v-300x41.png 300w\" sizes=\"auto, (max-width: 672px) 100vw, 672px\" \/><\/p>\n<p>Another way to confirm the installation of PHP is to call a PHP script from the server. For example, this script called &#8220;version.php&#8221;\u00a0 was called from localhost on my server at:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"no-highlight\">http:\/\/localhost\/version.php<\/pre>\n<p>This script provides lots of details about the PHP version and environment using a built-in PHP function called <code class=\"EnlighterJSRAW\" data-enlighter-language=\"no-highlight\">phpinfo()<\/code>:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"php\">&lt;?php\r\n\r\nphpinfo();\r\n\r\n?&gt;<\/pre>\n<p>For example:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" id=\"img_ds\" class=\"alignnone wp-image-1569 size-full\" src=\"http:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/02\/php-version.png\" alt=\"\" width=\"1015\" height=\"503\" srcset=\"https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/02\/php-version.png 1015w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/02\/php-version-300x149.png 300w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/02\/php-version-768x381.png 768w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/02\/php-version-676x335.png 676w\" sizes=\"auto, (max-width: 1015px) 100vw, 1015px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>MySQL<\/h2>\n<p>Once MySQL is added to your system path (ending with bin), for example:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"no-highlight\">C:\\Bitnami\\wampstack-7.1.14-0\\mysql\\bin<\/pre>\n<p>You can use the command line to get the version of MySQL installed using the command <code class=\"EnlighterJSRAW\" data-enlighter-language=\"no-highlight\">mysql -V<\/code>. For example:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" id=\"img_ds\" class=\"alignnone wp-image-1567 size-full\" src=\"http:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/02\/mysql-V.png\" alt=\"\" width=\"412\" height=\"44\" srcset=\"https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/02\/mysql-V.png 412w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/02\/mysql-V-300x32.png 300w\" sizes=\"auto, (max-width: 412px) 100vw, 412px\" \/><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The quickest way I found to install PHP and MySQL was to download the Bitnami WAMP stack module, which also installs a fresh Apache 2 server. See: https:\/\/bitnami.com\/stack\/wamp The installer I found for Windows 10 was called &#8220;bitnami-wampstack-7.1.14-0-windows-x64-installer.exe&#8221;. In running the installation, Bitnami creates a folder for apache2, php, and mysql here: C:\\Bitnami\\wampstack-7.1.14-0 Bitnami also &hellip; <a href=\"https:\/\/bluegalaxy.info\/codewalk\/2018\/02\/27\/install-php-mysql-confirm-installation\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">How to install PHP\/MySQL and confirm the installation<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[97],"tags":[106,108,69],"class_list":["post-1556","post","type-post","status-publish","format-standard","hentry","category-php-language","tag-apache","tag-mysql","tag-php"],"_links":{"self":[{"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/posts\/1556","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/comments?post=1556"}],"version-history":[{"count":8,"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/posts\/1556\/revisions"}],"predecessor-version":[{"id":1570,"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/posts\/1556\/revisions\/1570"}],"wp:attachment":[{"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/media?parent=1556"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/categories?post=1556"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/tags?post=1556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}