{"id":1737,"date":"2017-01-12T14:12:50","date_gmt":"2017-01-12T14:12:50","guid":{"rendered":"http:\/\/jeeskdenny.com\/blog\/?p=1737"},"modified":"2017-01-15T16:02:31","modified_gmt":"2017-01-15T16:02:31","slug":"php-installation","status":"publish","type":"post","link":"http:\/\/jeeskdenny.com\/blog\/php-installation\/","title":{"rendered":"PHP &#8211; Installation and Testing"},"content":{"rendered":"<ul>\n<li>PHP programmes need a running environment that is a web server or local server for running our programmes.<\/li>\n<li>For learning purpose we prefer local servers because the web servers are more costly than local servers.<\/li>\n<li>Each operating system has there own local severs.<\/li>\n<li>For Windows operating system use WAMP.<\/li>\n<li>For Linux operating system use LAMP.<\/li>\n<li>For Mac operating system use MAMP.<\/li>\n<li>XAMPP is a close platform server, that is XAMPP server is used for all operating systems.<\/li>\n<li>WAMP,\u00a0LAMP,\u00a0MAMP and\u00a0\u00a0XAMPP are basically software kits it contain Apache, MySQL and PHP.<\/li>\n<\/ul>\n<p class=\"\" style=\"text-align: left;\">Now we discuss about how to install \u00a0 local servers in our system. The installation process is different in different operating systems. So we must say about installation of WAMP, LAMP and \u00a0MAMP separately.<\/p>\n<p class=\"\" style=\"text-align: left;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1761\" src=\"http:\/\/jeeskdenny.com\/blog\/wp-content\/uploads\/2017\/01\/wamp_lamp_mamp.jpg\" alt=\"wamp lamp mamp\" width=\"500\" height=\"150\" srcset=\"http:\/\/jeeskdenny.com\/blog\/wp-content\/uploads\/2017\/01\/wamp_lamp_mamp.jpg 500w, http:\/\/jeeskdenny.com\/blog\/wp-content\/uploads\/2017\/01\/wamp_lamp_mamp-300x90.jpg 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/p>\n<h1 class=\"\" style=\"text-align: left;\">WAMP installation and running<\/h1>\n<p>WAMP is Windows Apache MySQL and PHP. There is 64 bit and 32 bit WAMP servers are available in market. Based on the nature of computer the user can download 32 bit WAMP or 64 bit WAMP.<\/p>\n<p>Step 1: Download the setup file WAMP server.<\/p>\n<p>Step 2: Double click on on the setup file.<\/p>\n<p>Step 3: Click on next button.<\/p>\n<p>Step 4: Now the user get a box with two options &#8220;create a quick launch icon and create \u00a0a desktop icon&#8221; if you want any option just give tick on that option and go to next button.<\/p>\n<p>Step 5: Now user get an install button and click on that install button. \u00a0Installation completed after this step.<\/p>\n<p>Step 6: The next step is to start WAMP server \u00a0for that go to installed file and double click on the WAMP icon.<\/p>\n<p>Step 7: Go to task bar menu and click on the WAMP button.<\/p>\n<p>Step 8: Select the localhost and now you get the home page.<\/p>\n<h1>Testing<\/h1>\n<p>In WAMP server the testing is done by the web browser. For run the program the user set the path on web browser. The path is like localhost\/folder name\/file name. The localhost pointed to the `<code>C:\\wamp\\www<\/code>`\u00a0folder. \u00a0It is the directory\u00a0locating the php file folder and remaining path set manually.<\/p>\n<h1 class=\"\" style=\"text-align: left;\">LAMP installation and running<\/h1>\n<p>LAMP is Linux Apache MySQL and PHP. LAMP installation and running is are processed in terminals using commands. The commands are<\/p>\n<p>Step 1: sudo apt-get update<\/p>\n<p>Step 2: sudo apt-get install get<\/p>\n<p>These two steps \u00a0are used to install \u00a0and after installation the user wants to start the LAMP.<\/p>\n<p>Step 1: sudo \/opt\/lampp\/lampp start<\/p>\n<p>Step 2: cd \/opt\/lampp\/htdocs<\/p>\n<p>Step 3: sudo chmod -R 777 \u00a0folder name<\/p>\n<p>Now server is ready to run.<\/p>\n<h1>Testing<\/h1>\n<p>In LAMP server the testing is done by the web browser. For run the program the user set the path on web browser. The path is like localhost\/folder name\/file name. The\u00a0localhost is locating the php file folder and remaining path set manually.<\/p>\n<h1 class=\"\" style=\"text-align: left;\">MAMP installation and running<\/h1>\n<p>MAMP is Mac Apache MySQL and PHP.<\/p>\n<p>Step 1: Download the setup file MAMP server.<\/p>\n<p>Step 2: Double click on on the setup file.<\/p>\n<p>Step 3: Agree license terms.<\/p>\n<p>Step 4: Click on &#8220;Install for all users of this computer&#8221; button.<\/p>\n<p>Step 5: Now installation start and completed.<\/p>\n<p>Step 6: The next step is to start MAMP server \u00a0for that go to installed file and double click on the MAMP folder.<\/p>\n<p>Step 7: Go to \u00a0MAMP icon. Now the user get MAMP welcome page with Apache, PHP and other configuration.<\/p>\n<h1>Testing<\/h1>\n<p>In MAMP server the testing is done by the web browser. For run the program the user set the path on web browser. The path is like localhost\/folder name\/file name. Here localhost is locating the php file folder (Applications\/mamp\/htdocs\/) \u00a0and remaining path set manually. In \u00a0MAMP server we also include with in the path default port number of \u00a0Apache in MAMP server that is 8888. ( localhost:8888\/folder_name\/file_name )<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP programmes need a running environment that is a web server or local server for running our programmes. For learning<\/p>\n","protected":false},"author":12,"featured_media":1760,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[432],"tags":[455,456,457,458],"class_list":["post-1737","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","tag-installation","tag-lamp","tag-mamp","tag-xampp"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"http:\/\/jeeskdenny.com\/blog\/wp-content\/uploads\/2017\/01\/php-tutorial-part_2.jpg","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8gP8w-s1","jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/jeeskdenny.com\/blog\/wp-json\/wp\/v2\/posts\/1737","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/jeeskdenny.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/jeeskdenny.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/jeeskdenny.com\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"http:\/\/jeeskdenny.com\/blog\/wp-json\/wp\/v2\/comments?post=1737"}],"version-history":[{"count":6,"href":"http:\/\/jeeskdenny.com\/blog\/wp-json\/wp\/v2\/posts\/1737\/revisions"}],"predecessor-version":[{"id":1763,"href":"http:\/\/jeeskdenny.com\/blog\/wp-json\/wp\/v2\/posts\/1737\/revisions\/1763"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/jeeskdenny.com\/blog\/wp-json\/wp\/v2\/media\/1760"}],"wp:attachment":[{"href":"http:\/\/jeeskdenny.com\/blog\/wp-json\/wp\/v2\/media?parent=1737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/jeeskdenny.com\/blog\/wp-json\/wp\/v2\/categories?post=1737"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/jeeskdenny.com\/blog\/wp-json\/wp\/v2\/tags?post=1737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}