You likely have a plain text file (.txt) with installation steps that assume a TOR-connected environment.
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: i girlx aliusswan image host need tor txt install
<VirtualHost 127.0.0.1:80>
DocumentRoot /var/www/html
...
</VirtualHost>
Restart Apache:
systemctl restart apache2
Rename config sample (if exists):
mv /var/www/html/config.sample.php /var/www/html/config.php
Edit database settings in config.php (example): You likely have a plain text file (
$db_host = 'localhost';
$db_user = 'girlxuser';
$db_pass = 'strongpassword';
$db_name = 'girlx_images';
$site_url = 'http://abc123def456.onion'; // your .onion address
Set file upload limits & allowed extensions (e.g., jpg, png, gif).
Create a new Nginx config file:
sudo nano /etc/nginx/sites-available/girlx
Paste this example configuration:
server listen 127.0.0.1:8080; server_name localhost; root /var/www/girlx/public; index index.php;location / try_files $uri $uri/ /index.php?$args; location ~ \.php$ include snippets/fastcgi-php.conf; fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
Enable the site:
sudo ln -s /etc/nginx/sites-available/girlx /etc/nginx/sites-enabled/
sudo nginx -t
sudo systemctl reload nginx
Before typing a single command, ensure you have the following: