官术网_书友最值得收藏!

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:
    Testing the PHP installation
  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:
    Testing the PHP installation
主站蜘蛛池模板: 奉新县| 红河县| 密山市| 错那县| 道真| 镇安县| 高邑县| 杂多县| 图木舒克市| 兰溪市| 邵武市| 高青县| 昌乐县| 安义县| 伊川县| 株洲市| 荔浦县| 广汉市| 敦化市| 西丰县| 合阳县| 汤阴县| 疏附县| 勃利县| 乌兰县| 瓦房店市| 静安区| 开平市| 永修县| 湘西| 宝丰县| 灯塔市| 静宁县| 肇东市| 上栗县| 天台县| 上饶市| 汉寿县| 璧山县| 定边县| 武山县|