SSH into your server (as root or sudo user):
apt update && apt upgrade -y
apt install tor apache2 php php-mysql mariadb-server -y
Edit Tor config:
nano /etc/tor/torrc
Find or add these lines:
HiddenServiceDir /var/lib/tor/image_host/
HiddenServicePort 80 127.0.0.1:80
Save, then restart Tor:
systemctl enable tor
systemctl restart tor
Get your .onion address:
cat /var/lib/tor/image_host/hostname
→ copy that address (e.g., abc123def456.onion)
From the server itself:
curl http://localhost/
If you see the installer or home page, it works.
Then try via Tor Browser:
http://abc123def456.onion (replace with your actual .onion)
Since Tor listens on port 80 but routes to localhost:80, your Apache must bind to 127.0.0.1:80 only (not 0.0.0.0 for extra safety).
Edit /etc/apache2/ports.conf:
Listen 127.0.0.1:80
Edit default site config /etc/apache2/sites-available/000-default.conf:
<VirtualHost 127.0.0.1:80>
DocumentRoot /var/www/html
...
</VirtualHost>
Restart Apache:
systemctl restart apache2
Before typing a single command, ensure you have the following:
This assumes you want to run the image host only on Tor (not clearnet) for privacy/anonymity, using a basic LAMP stack.
The mention of "txt" implies that the links you are looking for are likely not openly published on the "clear web" (the standard internet). In niche online communities, links to Tor-hidden image hosts are often shared via:
Warning regarding "TXT" downloads: Be extremely cautious when downloading .txt files from unknown sources or file-sharing sites. While text files themselves cannot execute viruses, they often contain malicious links. Clicking links inside a random text file can lead to phishing sites, malware downloads, or illegal content.
sudo apt install tor -y
Edit /etc/tor/torrc:
HiddenServiceDir /var/lib/tor/imagehost/
HiddenServicePort 80 127.0.0.1:8080
Restart Tor:
systemctl restart tor
cat /var/lib/tor/imagehost/hostname
That .onion address is your image host.