Book Image

Internet of Things Programming with JavaScript

Book Image

Internet of Things Programming with JavaScript

Overview of this book

The Internet of Things is taking the tech world by storm, and JavaScript is at its helm. This book will get you to grips with this exciting new technology. Where do Node.js, HTML5 and Windows 10 IoT Core come in with JavaScript and IoT? Why Raspberry Pi Zero rather than Arduino? How do you configure and build an IoT network from scratch? All your IoT JavaScript questions are answered in this book.
Table of Contents (15 chapters)
Internet of Things Programming with JavaScript
Credits
About the Author
www.packtpub.com
Customer Feedback
Preface

Testing the PHP installation


At this point, we need to test our website with PHP. This can be done by writing a simple PHP script page. If PHP is installed correctly, it will return information about its environment and configuration.

  1. Go to the next folder, where it's the root document:

            cd /var/www/html 
    
    
  2. Create a file called phpinfo.php.

    We use the word nano so that we can get into the file of the system with the privileges and execute the following command:

                sudo nano phpinfo.php
    
  3. After creating the file, as given in the following screenshot, press CTRL-X, and then save the file:

  4. In your browser, enter the IP address of your Raspberry Pi, for example, http://192.168.1.105/phpinfo.php, and you should see the following screen: