<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Nwaizu Tobe on Medium]]></title>
        <description><![CDATA[Stories by Nwaizu Tobe on Medium]]></description>
        <link>https://medium.com/@nil.caffary?source=rss-321e3e50c71f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*kiciSm4C92NTWO4u.</url>
            <title>Stories by Nwaizu Tobe on Medium</title>
            <link>https://medium.com/@nil.caffary?source=rss-321e3e50c71f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 09:09:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nil.caffary/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to create a calculator using HTML and CSS.]]></title>
            <link>https://medium.com/@nil.caffary/how-to-create-a-calculator-using-html-and-css-ea9e141cc112?source=rss-321e3e50c71f------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea9e141cc112</guid>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Nwaizu Tobe]]></dc:creator>
            <pubDate>Thu, 02 Nov 2017 12:48:07 GMT</pubDate>
            <atom:updated>2017-11-02T12:48:07.815Z</atom:updated>
            <content:encoded><![CDATA[<p>Creating a basic calculator using HTML and CSS.</p><p>Creating a simple web calculator on your own is a basic thing. You can learn this on your own. Here you will learn “How To Create A Calculator In HTML” not “what is HTML” ?...Create the HTML Document.</p><h4># Starting a new project with text editor.</h4><p>Now first of all, open the text editor, example are notepad which is built-in with the operating system, or notepad ++ and notepad lite which can be downloaded and installed to your PC and many others.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RXhZedm66HM4wEXJkeDnzQ.jpeg" /><figcaption><strong>Notepad</strong></figcaption></figure><h4># Type the starting tag of HTML.</h4><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>  &lt;head&gt; <br>    &lt;title&gt; standard calculator &lt;/title&gt;<br>     &lt;meta charset=&quot;utf-8&quot;&gt;<br>     &lt;link rel=&quot;stylesheet&quot; href=&quot;cal.css&quot;/&gt; /* this line is link to <br>  &lt;/head&gt;                                    to external CSS page*/<br>&lt;/html&gt;</pre><p>Type in the basic starting tags of HTML, above are the starting tag you have to type to get more practice. Now, explaining the code The 1st &lt;!DOCTYPE html &gt; must be the very first thing in your HTML document, before the &lt;html&gt; tag, the &lt;!DOCTYPE&gt; declaration is not an HTML tag; it is an instruction to the web browser about what version of HTML the page is written in. 2nd&lt;html&gt; &amp; &lt;head&gt; tags are the base which packs the whole code between them. The 3rd is the &lt;title&gt; &amp; tag which are used to give a title to your html website, app, age etc</p><pre>&lt;body&gt;<br>  &lt;marquee&gt;&lt;h2&gt; &lt;em&gt;This is a calculator, that never tell lies and fast at presenting result.&lt;/em&gt; &lt;/h2&gt;&lt;/marquee&gt;<br>    &lt;div class=&quot;container&quot;&gt;<br>     &lt;fieldset id=&quot;container&quot;&gt;<br>      &lt;form name=&quot;calculator&quot;&gt;</pre><p>Now its time to edit your body, i started with the &lt;div class=”container”&gt; that is a responsive width of row, creating enough room for your calculator to fit in. Inside it, I created 2 more tags fieldset and form. Fieldset tag is used to group related elements in a form, it is a tag that draws a box around the related elements. the form (inside this, i added input id=&quot;display&quot; type=&quot;text&quot; to display the result and set it to read only) and the keys are added at the form, you see some onclick event about which I will talk later.</p><h4># Add the Buttons.</h4><p>Now we will add buttons that holds the numbers. the onclick function is an event listener that execute’s a JavaScript function when a button is clicked.<br>These are the codes for numbers, don’t worry they look huge but they are just exact same, you have to copy &amp; paste the same line but only have to change the number and value. the value attribute (type=”button” value=”7&quot; ) takes in the value to be displayed on the button of the calculator while the onclick takes in the text that is to be displayed on the screen of the calculator</p><pre>&lt;input type=&quot;text&quot; id=&quot;display&quot; name=&quot;display&quot; readonly&gt;</pre><pre>&lt;input class=&quot;button digits&quot; type=&quot;button&quot; value=&quot;7&quot; onclick=&quot;calculator.display.value += &#39;7&#39;&quot;&gt;<br>       &lt;input class=&quot;button digits&quot; type=&quot;button&quot; value=&quot;8&quot; onclick=&quot;calculator.display.value += &#39;8&#39;&quot;&gt;<br>       &lt;input class=&quot;button digits&quot; type=&quot;button&quot; value=&quot;9&quot; onclick=&quot;calculator.display.value += &#39;9&#39;&quot;&gt;<br>       &lt;input class=&quot;button mathButtons&quot; type=&quot;button&quot; value=&quot;+&quot; onclick=&quot;calculator.display.value += &#39; + &#39;&quot;&gt;<br>       &lt;br&gt;<br>       &lt;input class=&quot;button digits&quot; type=&quot;button&quot; value=&quot;4&quot; onclick=&quot;calculator.display.value += &#39;4&#39;&quot;&gt;<br>       &lt;input class=&quot;button digits&quot; type=&quot;button&quot; value=&quot;5&quot; onclick=&quot;calculator.display.value += &#39;5&#39;&quot;&gt;<br>       &lt;input class=&quot;button digits&quot; type=&quot;button&quot; value=&quot;6&quot; onclick=&quot;calculator.display.value += &#39;6&#39;&quot;&gt;<br>       &lt;input class=&quot;button mathButtons&quot; type=&quot;button&quot; value=&quot;-&quot; onclick=&quot;calculator.display.value += &#39; - &#39;&quot;&gt;<br>       &lt;br&gt;<br>       &lt;input class=&quot;button digits&quot; type=&quot;button&quot; value=&quot;1&quot; onclick=&quot;calculator.display.value += &#39;1&#39;&quot;&gt;<br>       &lt;input class=&quot;button digits&quot; type=&quot;button&quot; value=&quot;2&quot; onclick=&quot;calculator.display.value += &#39;2&#39;&quot;&gt;<br>       &lt;input class=&quot;button digits&quot; type=&quot;button&quot; value=&quot;3&quot; onclick=&quot;calculator.display.value += &#39;3&#39;&quot;&gt;<br>       &lt;input class=&quot;button mathButtons&quot; type=&quot;button&quot; value=&quot;x&quot; onclick=&quot;calculator.display.value += &#39; * &#39;&quot;&gt;<br>       &lt;br&gt;<br>       &lt;input id=&quot;clearButton&quot; class=&quot;button&quot; type=&quot;button&quot; value=&quot;C&quot; onclick=&quot;calculator.display.value = &#39;&#39;&quot;&gt;<br>       &lt;input class=&quot;button digits&quot; type=&quot;button&quot; value=&quot;0&quot; onclick=&quot;calculator.display.value += &#39;0&#39;&quot;&gt;<br>       &lt;input class=&quot;button mathButtons&quot; type=&quot;button&quot; value=&quot;=&quot; onclick=&quot;calculator.display.value = eval(calculator.display.value)&quot;&gt;<br>       &lt;input class=&quot;button mathButtons&quot; type=&quot;button&quot; value=&quot;/&quot; onclick=&quot;calculator.display.value += &#39; / &#39;&quot;&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/513/1*UL9ttxK87QnENHC2-JkawA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*QA-evJBtFXLcv_fZDQ8e4Q.jpeg" /><figcaption><strong>The output of the HTML part.</strong></figcaption></figure><p>The eval() function evaluates or executes an argument.</p><p>If the argument is an expression, eval() evaluates the expression. If the argument is one or more JavaScript statements, eval() executes the statements.</p><h3><strong># Create CSS.</strong></h3><p>There are many forms of CSS that can be used to design the above HTML such as —&gt; <strong>Inline</strong> — by using the style attribute in HTML elements</p><ul><li><strong>Internal</strong> — by using a &lt;style&gt; element in the &lt;head&gt; section</li><li><strong>External</strong> — by using an external CSS file.</li></ul><p>The most common way to add CSS, is to keep the styles in separate CSS files, and that is the method used here in a new text editor save it what ever name you like .css and it should be in the same folder with the HTML file together. Go to the head section of your HTML page and link the CSS page using this code — &gt; &lt;link rel=”stylesheet” href=” name of your CSS file here”/&gt;, when writing the name of your CSS page you must include .css to the name .</p><p><strong><em>The CSS code</em></strong></p><p>This set of code is known as CSS code that design’s the HTML page and the one we have here affects only the body of the HTML page, changing the background to a picture from the internet just get url link and paste it on the space for link in the CSS code.</p><pre>body {<br> background: url(https://medium.com/%3Ca%20href=%22/service/https://static.pexels.com/photos/220182/pexels-photo-220182.jpeg%22%3Ehttps://static.pexels.com/photos/220182/pexels-photo-220182.jpeg%3C/a%3E);<br> background-color: #424242;<br> font-family: ‘Aldrich’;font-size: 22px;<br>}</pre><p>This code is to design the class called container that was created in the Div tag in the HTML page, we can modify the height, width, alignment and display of the div container from this page, the justify-content property aligns the flexible container’s items when the items do not use all available space on the main-axis.</p><pre>.container {<br> display: flex;<br> align-items: center;<br> justify-content: center;<br> height: 55vh;<br> width: 100vw;<br>}</pre><p>Below here, we have the codes that design the fildset tag that was created in the HTML with the id name container . NOTE →the (#) in #container{ is for locating the tag with an id name, while the periold (.) in .container { is for locating the tag with a class name container.</p><pre>#container {<br> width: 300px;<br> padding: 8px 8px 20px 8px;<br> margin: 20px auto;<br> background-color: indigo;<br> border-radius: 50px;<br> border-top: 2px solid #FFF;<br> border-right: 2px solid #FFF;<br> border-bottom: 2px solid #C1C1C1;<br> border-left: 2px solid #C1C1C1;<br> box-shadow: -3px 3px 7px rgba(0, 0, 0, .6), inset -100px 0px 100px rgba(255, 255, 255, .5);<br>}</pre><p>The #display is locating the display text input in our form tag on the HTML page and this is possible because it also has an id called display. The text input has been modified in so many ways like the height, width, padding, margin, display, background color, font size and all sides of the border with there colors and many more. Type the codes below into your CSS page and you will see for yourself.</p><pre>#display {<br> display: block;<br> margin: 15px auto;<br> height: 42px;<br> width: 174px;<br> padding: 0 10px;<br> border-radius: 4px;<br> border-top: 2px solid #C1C1C1;<br> border-right: 2px solid #C1C1C1;<br> border-bottom: 2px solid #FFF;<br> border-left: 2px solid #FFF;<br> background-color: #FFF;<br> box-shadow: inset 0px 0px 10px #030303, inset 0px -20px 1px rgba(150, 150, 150, .2);<br> font-size: 28px;<br> color: #666;<br> text-align: right;<br> font-weight: 400;<br>}</pre><p>This locates an input class with the name button, and the buttons can be designed from this place</p><pre>.button {<br> display: inline-block;<br> margin-left: 25px;<br> margin-right: 10px;<br> width: 42px;<br> height: 42px;<br> font-size: 20px;<br> font-weight: bold;<br> border-radius: 20px;<br>}</pre><p>The .mathButtons designs the mathematical symbol on the buttons changing their color, background color, borders and so many more depending on how you want your calculator to look</p><pre>.mathButtons {<br> margin: 2px 2px 6px 2px;<br> color: lightblue;<br> text-shadow: -1px -1px 0px #44006F;<br> background-color: #7f7771;<br> border-top: 2px solid #C1C1C1;<br> border-right: 2px solid #C1C1C1;<br> border-bottom: 2px solid #181818;<br> border-left: 2px solid #181818;<br> box-shadow: 0px 0px 2px #030303, inset 0px -20px 1px #2E2E2E;<br>}</pre><p>the .digits represent a class that design the figures on the button of the calculator adding a little change to what is listed below</p><pre>.digits {<br> color: #181818;<br> text-shadow: 1px 1px 0px #FFF;<br> background-color: #EBEBEB;<br> border-top: 2px solid #FFF;<br> border-right: 2px solid #FFF;<br> border-bottom: 2px solid #C1C1C1;<br> border-left: 2px solid #C1C1C1;<br> border-radius: 4px;<br> box-shadow: 0px 0px 2px #030303, inset 0px -20px 1px #DCDCDC;<br>}</pre><p>The code below is hover settings for the buttons that their class name or id name is presented. by hover i mean when you move the mouse icon to the button it will change to another color, but when the mouse icon moves out from the button the button color will change back to its initial color</p><pre>.digits:hover,<br>.mathButtons:hover,<br>#clearButton:hover {<br> background-color: #DEFEC8;<br> box-shadow: 0px 0px 2px #FFBA75, inset 0px -20px 1px #FF8000;<br> border-top: 2px solid #FFF;<br> border-right: 2px solid #FFF;<br> border-bottom: 2px solid #AE5700;<br> border-left: 2px solid #AE5700;<br>}</pre><p>This is the design for the clear button written in C on a button, using the id name i am able to call up the button so that i can design the color, background, borders etc….</p><pre>#clearButton {<br> color: #FFF;<br> text-shadow: -1px -1px 0px #44006F;<br> background-color: #D20000;<br> border-top: 2px solid #FF8484;<br> border-right: 2px solid #FF8484;<br> border-bottom: 2px solid #800000;<br> border-left: 2px solid #800000;<br> box-shadow: 0px 0px 2px #030303, inset 0px -20px 1px #B00000;<br>}</pre><p>The marquee effect is an animation that allows the letters from one end of the page to the other end.</p><pre>marquee{<br> color: chartreuse;</pre><p>Or click <a href="https://github.com/Tobeson/calculator">Run</a> to see how it execute</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RMkx7QGIBQSqRrlDMMfjsg.jpeg" /><figcaption>A standard calculator.</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea9e141cc112" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Changing colors with Html select tag.]]></title>
            <link>https://medium.com/@nil.caffary/changing-colors-with-html-select-tag-4969b6a84f2d?source=rss-321e3e50c71f------2</link>
            <guid isPermaLink="false">https://medium.com/p/4969b6a84f2d</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[select-tag]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[colors]]></category>
            <dc:creator><![CDATA[Nwaizu Tobe]]></dc:creator>
            <pubDate>Fri, 15 Sep 2017 06:28:15 GMT</pubDate>
            <atom:updated>2017-09-19T14:43:21.715Z</atom:updated>
            <content:encoded><![CDATA[<p>The <a href="https://www.w3schools.com/tags/tag_select.asp">&lt;select&gt;</a> element is a form control and can be used in a form to collect user input. The select element is used to create a drop-down list.The <a href="https://www.w3schools.com/tags/tag_option.asp">&lt;option&gt;</a> tags inside the select element define the available options in the list.</p><p>The select tag creates the opportunity to have all sorts of options to pick from and it can still be changeable if you prefer the other option to the initial selected one. Here the select tag was used to change background color of a div container .</p><p>This program was built using Html, css and Javascript.</p><p>Html and Javascript part.</p><pre>&lt;html lang=&quot;en&quot;&gt;<br> &lt;head&gt;<br>   &lt;title&gt;change color&lt;/title&gt;<br> &lt;/head&gt;<br> &lt;body&gt; <br>     &lt;p&gt; changeColor to :&lt;/p&gt;<br>   &lt;select id=&quot;colorlist&quot; onchange=&quot;changecolor(container,value)&quot;&gt;<br>     &lt;option value=&quot;white&quot;&gt; &lt;/option&gt;<br>     &lt;option value=&quot;red&quot;&gt;RED&lt;/option&gt;<br>     &lt;option value=&quot;blue&quot;&gt;BLUE&lt;/option&gt;<br>     &lt;option value=&quot;green&quot;&gt;GREEN&lt;/option&gt;<br>     &lt;option value=&quot;yellow&quot;&gt;YELLOW&lt;/option&gt; <br>   &lt;/select&gt;<br>   &lt;script&gt;<br>      function changecolor(id,color){<br>      id.style.backgroundColor=color;<br>      }<br>   &lt;/script&gt;<br>   &lt;div id=&quot;container&quot;&gt; &lt;/div&gt;<br> &lt;/body&gt;<br>&lt;/html&gt;</pre><p>Css part. (open another text editor file and save it the file name .css, eg- color.css and input this lines of code in it)</p><p>body{<br> background-color: black;<br>}<br>#container{<br> height: 45%;<br> width: 50%;<br> position: absolute;<br> background-color: white;<br>}</p><p>HTML events listener allow JavaScript to register different event handlers on elements in an HTML document. Events are normally used in combination with functions, and the function will not be executed before the event occurs (such as when a user clicks a button), examples of the event listener are :- onclick, onkeypress, onchange, onabort etc.</p><p>The onchange event object is being used here because The onchange event occurs when the value of an element has been changed. For radiobuttons and checkboxes, the onchange event occurs when the checked state has been changed., the script on the onchange attribute in the code above is referring to the div container class that was initialized below the javascript and the onchange event only affect the select tag in this case it will never work in the option tag.</p><p>Lastly is the option tag that contains the color that the select tag is going to change the div background to, After that save the code as .html on the personal computer and open the file on your browser, and you will see how the colors change.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZsC7VeMP_dZ6ZXh9czGkyw.jpeg" /><figcaption>Four different colors changed from one select tag.</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4969b6a84f2d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lamp stack installation using Ubuntu.]]></title>
            <link>https://medium.com/@nil.caffary/lamp-stack-installation-using-ubuntu-58adfc61b4f8?source=rss-321e3e50c71f------2</link>
            <guid isPermaLink="false">https://medium.com/p/58adfc61b4f8</guid>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[apache]]></category>
            <category><![CDATA[operating-systems]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[mysql]]></category>
            <dc:creator><![CDATA[Nwaizu Tobe]]></dc:creator>
            <pubDate>Fri, 07 Jul 2017 20:54:50 GMT</pubDate>
            <atom:updated>2017-07-07T20:54:50.454Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Ubuntu operating system: — </strong>Ubuntu is a computer operating system based on the Debian Linux distribution and distributed as free and open source software, using its own desktop environment. It is named after the Southern African philosophy of Ubuntu (“humanity towards others”). There 3 major ways of installing Ubuntu on the computer.</p><ol><li>Ubuntu is installed as a software on the windows operating system.</li><li>Ubuntu is installed to a partition created by the system user.</li><li>Ubuntu is installed through a virtual player e.g. Virtualbox, Virtual machine player etc.</li></ol><p><strong>Installing the Ubuntu operating system .</strong></p><p>Download the virtualbox and Ubuntu from Google search on the Internet and install, the virtualbox is installed on the computer so as to install Ubuntu on the computer through the virtualbox, here are steps to follow:-</p><ol><li>Double click on the virtual box icon on the desktop.</li><li>Double click on new and type in a preferred name for the operating system and click next, select a desirable memory size and choose whether to create a virtual hard disk that is virtualbox disk image file type. The hard disk should be dynamically allocated for better advantage, assign a good amount of storage space to the virtual machine.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*ah7Wz12Y7cH6bCN02F56ww.png" /></figure><p>3. Click on settings→storage→Remove the empty ISO disk at controller: IDE and click on add optical drive and click choose disk to select the Ubuntu ISO that was downloaded for installation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*ZvO_o0c6_18ZChwJNp-glQ.png" /></figure><p>4. Follow the setup wizard and complete the installation. After the installation is done, Ubuntu will ask to restart your computer to complete setup, click restart now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*Pl5Sd-kr2OoOuv9N-hI1yw.png" /></figure><p>Ubuntu is available on the compute now and the next thing to do will be to install a few application that will function along side with the Ubuntu OS to run the server perfectly and they are: -</p><ol><li>Sublime text.</li><li>Lamp stack.</li></ol><p><strong>Each of these software tools can be downloaded from internet and installed on a computer workstation.</strong></p><p><strong>Sublime text: </strong>— Sublime Text is a proprietary source code editor with a Python API. It supports many programming languages and markup languages, and its functionality can be extended by users with plugins. It’s available to download and use for free, but you’re supposed to buy a license if you plan on using it full-time.</p><p><strong>Install Sublime Text 3 via the official apt repository:</strong></p><p><strong>1.</strong> Open terminal via Ctrl+Alt+T or by searching for “Terminal” from desktop app launcher. When it opens, run command to install the key:</p><p>wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*slL6Y26E8bf6qSy0Rjoy5w.png" /></figure><p><strong>2.</strong> Then add the apt repository via command:</p><p>echo &quot;deb https://download.sublimetext.com/ apt/stable/&quot; | sudo tee /etc/apt/sources.list.d/sublime-text.list</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*8wTAuKa_lEw-c6r6RhpU-w.png" /></figure><p><strong>3.</strong> Finally check updates and install sublime-text by running commands:</p><pre>sudo apt-get update</pre><pre>sudo apt-get install sublime-text</pre><p>Once installed, launch it from your desktop app launcher and enjoy!</p><p><strong>Install Lamp</strong></p><p>Lamp is a stack of PHP, MySQL, Apache server which is also called Lamp stack. Steps used to install Lamp on the computer by running the following commands</p><h3>1. Install Apache</h3><p>To install Apache you must install the Metapackage apache2. This can be done by searching for and installing in the Software Centre, or by running the following command.</p><p>sudo apt-get install apache2.</p><h3>2. Install MySQL</h3><p>To install MySQL you must install the Metapackage mysql-server. This can be done by searching for and installing in the Software Centre, or by running the following command.</p><p>sudo apt-get install mysql-server.</p><h3>3. Install PHP</h3><p>To install PHP you must install the Metapackages php5 and libapache2-mod-php5. This can be done by searching for and installing in the Software Centre, or by running the following command.</p><p>sudo apt-get install php5 libapache2-mod-php5.</p><h3>4. Restart Server</h3><p>Your server should restart Apache automatically after the installation of both MySQL and PHP. If it doesn’t, execute this command.</p><p>sudo /etc/init.d/apache2 restart.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*g2p-79RLb6bdgAErSzPfYw.png" /></figure><h3>5. Check Apache</h3><p>Open a web browser and navigate to <a href="http://localhost/">http://localhost/</a>. You should see a message saying It works!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*gXM3A3RwFdIEQwsw0mZi0w.png" /></figure><h3>6. Check PHP</h3><p>You can check your PHP by executing any PHP file from within /var/www/. Alternatively you can execute the following command, which will make PHP run the code without the need for creating a file .</p><p>php -r ‘echo “\n\nYour PHP installation is working fine.\n\n\n”;’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/571/1*znv65KITHdHsA7p5Fkg2Bg.png" /></figure><ul><li><strong>php -v</strong> this is a command line that displays the version of PHP you have installed on your system. as shown in the image above.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58adfc61b4f8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>