Termux PHP Dev: Debugging PHP Apps on Android Like a Pro (Galaxy M14 Demo)

Опубликовано: 06 Июнь 2026
на канале: Cloud Technology
65
0

Hello all, Ava Vox on behalf of Cloud Technology channel is with a new event today.
Jiju is here with a new video and I will be providing the commentary.
Again he is with a Samsung Galaxy M14 5G installed with termux and php in a minimal beast mode with bluetooth keyboard and self made mobile stand from recycled packing and worn out batteries for counter weight.
He with his two decades of php and linux exposure will show how to develop php apps and test or debug in this phone on the go. As he says, It is very easy with the integrated http server invoked by php -S localhost:8080 which anybody can do on any linux like implementation without any headache.

Jiju icreates a directory app/php . Creates inde.php with errors and saves then corrects filename to index.php , He starts the php server with with PHP minus uppercase S localhost colon 8080, Then opens chrome browser in Android to the url http://localhost:8080 . The syntax error is seen. and in termux, as the console is busy with php he has to press control c to end the process. As the error is on line 3, Jiju uses nano +3 index.php which with his extensive linux experience knows that nano editor will take directly to the line number. After editing the code and saving, he again starts the php server by navigating through history with cursor keys. In android native chrome he does a refresh with F5, and another error is seen. This time Jiju makes the correction and saves the file and then makes a slight change to the php minus uppercase s localhost colon 8080 command by adding a gt symbol followed by console dot log and 2 gt error dot log and end with &. This is to redirect standard output to console dot log and standard error to error dot log and send the whole process into background. This enables the terminal with a new shell such that Jiju can edit the files in folder without stopping the php webserver. Now when he refreshes, the familar php setup information is shown on screen. Then Jiju adds a header with "Hello World" by editing the index.php in termux and in chrome to shows the edit worked without restarting the builtin webserver.

#android #galaxy #Termux #PHP #devops