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

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
主站蜘蛛池模板: 孟村| 班玛县| 孙吴县| 楚雄市| 会东县| 九寨沟县| 舟山市| 河池市| 沐川县| 宁陕县| 喀喇沁旗| 佛学| 石渠县| 荃湾区| 盐亭县| 浦县| 南昌县| 石阡县| 宜兴市| 成武县| 海安县| 新巴尔虎左旗| 金坛市| 桃江县| 巢湖市| 开原市| 福泉市| 萝北县| 尼玛县| 裕民县| 奉新县| 邵武市| 盈江县| 宁津县| 揭西县| 西吉县| 伊春市| 娄烦县| 麻江县| 益阳市| 榕江县|