Close Menu
NCIJ Network NCIJ Network
    What's Hot

    Murder arrest over death of Jacqueline Causton in Zante

    October 22, 2026

    Angry scenes at Senedd as Reform call for ban on Muslim face coverings

    October 22, 2026

    The ‘trillion pound’ oil fund the government believes Britain could have built

    October 22, 2026
    Facebook X (Twitter) Instagram
    Trending
    • Murder arrest over death of Jacqueline Causton in Zante
    • Angry scenes at Senedd as Reform call for ban on Muslim face coverings
    • The ‘trillion pound’ oil fund the government believes Britain could have built
    • Google Chrome Adds ClickFix Warnings to Stop Users From Running Malicious Commands
    • Scientists discover ghostly, eyeless creature hidden in Chinese cave
    • Bank credit remains scarce in Bangladesh where climate risks are highest
    • $6 billion deepwater oil project crosses 50% mark as Angolan partners track subsea gear’s buildout progress
    • Is this Prince Harry or David Brent in The Office? Either way, we’re watching a masterclass in awkwardness | Emma Brockes
    • About
      • Our Team
      • Editorial Policy
      • Editorial Independence
      • International Support
    • Trust & Standards
      • AI Usage Policy
      • Conflict of Interest Policy
      • Corrections Policy
      • Ethics Policy
      • Fact-Checking Policy
      • Source Protection
    • Get Involved
      • Guide for Sources
      • Support Independent Journalism
    • Legal
      • Cookie Policy
      • Privacy Policy
      • Terms of Use
    Facebook X (Twitter) Instagram
    NCIJ Network NCIJ Network
    Thursday, October 22
    • Home
    • World
    • Ai
    • Business
    • Politics
    • Health
    • Crypto
    • Science
    • Technology
    • Cybersecurity
    • Defense & Security
    • Economy
    • Energy
    • Europe
    • More
      • Fact Check
      • Investigations
      • Opinion & Analysis
      • Environment
    NCIJ Network NCIJ Network
    Home»Technology

    I turned an old Android phone into a server for my LAN – here’s how and why

    NCIJ NETWNCIJ NETWORKBy NCIJ NETWNCIJ NETWORKAugust 18, 2026 Technology No Comments4 Mins Read
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Jack Wallen/ZDNET

    Follow ZDNET: Add us as a preferred source on Google.


    ZDNET’s key takeaways

    • Termux makes it easy to get a Linux terminal emulator on Android.
    • With Termux, you can turn your phone into a server.
    • Termux is free to install from F-Droid.

    I often adapt old phones and tablets for uses other than their intended purpose. Usually, it’s just for fun; sometimes there’s a method to my madness. Over the weekend, I decided to try turning a phone that had been resting silently in a drawer into a server…specifically, a Linux server.

    That’s right. I wanted to see what I could do with Apache and a few other bits and pieces. In the end, I wound up with a fun little website as a test, and now I’m going to show you how I did it.

    Also: I found a free Android app that makes deleting photos as easy as swiping left

    It starts with Termux.

    What is Termux?

    Termux is a free, open-source Linux terminal emulator that lets you run a Linux environment on Android. It’s not exactly a 1:1, perfectly binary-compatible match (there are some permissions issues and a few other quirks that prevent it from behaving exactly like a true Linux distribution), but it’s close enough.

    You can install Termux from the Google Play Store, but don’t. The version available on the Play Store is out of date. Instead, you need to install F-Droid (download the APK from the F-Droid site and then sideload it), and then install Termux from within that app.

    Also: How I converted my Android phone into the perfect bedside clock – and why it makes sense

    Once it’s installed, you’ll find yourself at a Linux terminal, where you can begin setting up your server.

    Installing the necessary packages

    What you install will depend on what you want to serve up. Let me walk you through the process of getting an Apache server up and running along with a basic PHP-based website.

    Termux

    Installing apps on Termux is actually quite easy.

    Screenshot by Jack Wallen/ZDNET

    The first thing you need to do is update the software within the emulator. To do that, issue the command:


    Show more

    pkg update

    Instead of typing everything from your phone, you can install SSH and then remote into it from a desktop (so you can type on a regular keyboard). To do that, issue the command:


    Show more

    pkg install openssh

    To find the IP address of your Termux environment, issue the command:


    Show more

    ifconfig

    Next, you need to find your username with the command whoami. You can then set a password (that you’ll use for SSH) with the command:


    Show more

    passwd

    Start the SSH server with the command:


    Show more

    sshd

    Open a terminal window on a Linux or MacOS machine (or a Windows machine with SSH installed) and connect with the command:


    Show more

    ssh USER@IP:8022

    Where USER is your username, and IP is the Termux IP address.

    Install the necessary components for the LAMP server (as well as git and wget) with the command:


    Show more

    pkg install apache2 php php-fpm mariadb git wget

    You can now start the Apache server with the command:


    Show more

    apachectl start

    Open a web browser on your network and point it to http://IP:8080 (where IP is the IP address of your Termux environment). You should see “It works!” printed on the page.


    Show more

    Create a site

    At this point, you can either start building a website from scratch or download a sample site, such as one of the ones I found from this collection of PHP sample sites. If you’re going the PHP route, you’ll need to start the PHP server with the command:

    php-fpm

    Also: My favorite SSH clients for Android – and why you need them

    You can download one of the sample sites into the Apache document root and test it out. To do that, change into the Apache document root with the command:

    cd /$PREFIX/share/apache2/default-site/htdocs

    You can use git to clone one of the sample sites with:

    git clone https://github.com/amoldalwai/E-learning-Website.git

    If you’re demoing the E-Learning site, rename it with the command:

    mv E-learning-Website learning

    Point your web browser to http://IP:8080/learning/home.php (again, where IP is the IP address of your Termux server), and the site will appear.

    Also: How to run Android apps on Linux

    Termux

    How cool is this? An E-Learning site served up by an Android phone.

    Screenshot by Jack Wallen/ZDNET

    You now have a working website running on a spare Android phone. Get creative with it: There are all kinds of experiments you can do, such as installing a Nextcloud server, a database development server, a CMS, or even (if you want to get really complicated) a home automation server.

    Android Heres LAN phone server turned
    NCIJ NETWNCIJ NETWORK
    • Website

    Keep Reading

    A gen Z protest movement could be about to oust Serbia’s strongman. Here’s why that will shake Europe | Misha Glenny

    Here’s how to get a free photo ID before the Nov. 3 election

    Poll workers may mark your ballot. Here’s why you shouldn’t worry

    Noncitizens don’t vote in large numbers in US elections. Here’s proof

    I thought my phone couldn’t be any worse for my brain – then I started watching microdramas on it | Imogen West-Knights

    We need to stop disinformation in UK political adverts. Here’s a chance to do so | Brexit

    Add A Comment
    Leave A Reply Cancel Reply

    Editors Picks

    Murder arrest over death of Jacqueline Causton in Zante

    October 22, 2026

    Angry scenes at Senedd as Reform call for ban on Muslim face coverings

    October 22, 2026

    The ‘trillion pound’ oil fund the government believes Britain could have built

    October 22, 2026

    Google Chrome Adds ClickFix Warnings to Stop Users From Running Malicious Commands

    October 22, 2026
    Latest Posts

    Leavitt to depart the White House

    August 13, 2026

    Israeli troops force families from homes amid settler terror campaign in West Bank | West Bank

    August 13, 2026

    Video of children being taught Muslim prayers does not show a school in England – Full Fact

    August 13, 2026

    Subscribe to News

    Get the latest sports news from NewsSite about world, sports and politics.

    NCIJ Network is an independent digital news platform delivering trusted investigative journalism, European and global news, in-depth analysis, and fact-based reporting with accuracy, transparency, and integrity.

    Facebook X (Twitter) Instagram Pinterest YouTube

    Murder arrest over death of Jacqueline Causton in Zante

    October 22, 2026

    Angry scenes at Senedd as Reform call for ban on Muslim face coverings

    October 22, 2026

    The ‘trillion pound’ oil fund the government believes Britain could have built

    October 22, 2026

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    Type above and press Enter to search. Press Esc to cancel.