How to run php server on android phone or iphone using

How to run php server on android phone or iphone using termux.

Tue-22-Sep-2020-22-20

  • About Us
  • |
  • Contact Us
  • |
  • Login
  • |
  • Subscribe
How to run php server on android phone or iphone using termux.
Requirements 1. Install Termux and Termux api from playstore or app store if iphone. 2. Data connection Steps 1. Open termux. 2. Run the command
"apt upgrade"
and
"apt update"
. It will prompt you to continue by typing either y/n which means yes/no so type y to continue. 3. Run the command
"apt install git"
. 4. Run the command
"apt install php"
. If php has been installed successfully, type the command
"php -v"
you will see something like PHP 7.4.7 which is the version of php installed. If not, PHP has not been installed successfully. NEXT 5. Move the current working directory in Termux to the root directory. Run
"cd /storage/emulated/0"
if you're using Android phone. Then run
"mkdir htdocs"
. Now you should have htdocs in your root folder. 6. Run this command
"php -S localhost:8000 -t /storage/emulated/0/htdocs/"
. You should see
"PHP 7.4.7 Development Server (localhost:8000) started"
. 7. Create an index.php file in the htdocs folder. 8. Go to your browser and visit localhost:8000. Now your server should be running!

Like this article? Share with your friends.

Please SUBSCRIBE to our Channel

REVIEW:

So,Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

  • Joseph

    33 Articles, 3 Followers
    View all posts by:

    Visit my main portfolio @ http://ipowertel.com.ng/ict


Leave a comment