安装Install and Configure PHP On An OpenWRT Router [with TinyFileManager]
What is OpenWRT?
OpenWRT is an open-source project for embedded operating systems based on Linux, primarily used on embedded devices to route network traffic. The main components are Linux, util-linux, musl, and BusyBox. All components have been optimized to be small enough to fit into the limited storage and memory available in home routers. -https://en.wikipedia.org/wiki/OpenWrt
Installing and Configuring PHP
Filter the software list to zoneinfo > Install required timezone files from the listing
Refresh the OpenWRT page then select Services > uHTTPd from the top navigation menu
Select the Full Web Server Settings tab
On the Index page(s) field, add an entry for index.php
On the CGI filetype handler field, add an entry for .php=/usr/bin/php-cgi
Scroll to the bottom of the page > Click Save & Apply
SSH into the OpenWRT device
Run the following command to create a test php file
# create a phpinfo test file echo "<?php phpinfo(); ?>" > /www/phpinfo.php
Open a new tab in the web browser and navigate to http://DNSorIP/phpinfo.php
Installing TinyFileManager
Back in the SSH session, run the following commands