h1. installing thttpd and tor to create a .onion website jun 1, 2016 whew. took a while. a lot of fussing. by i have an onion website running on my linux computer in my home. zwdqwr2p2xwkpbyv.onion hr. installing on my home linux computer. http://www.acme.com/software/thttpd downloaded thttpd-2.27.tar.gz su to root tar -zxvf thttpd-2.27.tar.gz cd into directory ./configure make make install hr. my files: /usr/local/sbin/thttpd /usr/local/www/thttpd_config /usr/local/sbin/thttpd_wrapper /usr/local/www/data/index.html hr. https://www.torproject.org/docs/tor-hidden-service.html.en http://nekhbet.com/nginx_onion.shtml https://www.deepdotweb.com/2013/10/19/how-to-safely-host-your-own-tor-hidden-service/ /home/veery/tor/tor-browser_en-US/Browser/TorBrowser/Data/Tor https://gitweb.torproject.org/tor.git/tree/src/config/torrc.sample.in http://tor.stackexchange.com/questions/6662/my-hidden-service-doesnt-load-unless-the-tor-browser-is-open-on-the-server http://stackoverflow.com/questions/13060096/why-tor-cant-access-localhost-pages https://wiki.archlinux.org/index.php/tor http://tor.stackexchange.com/questions/1065/what-happened-to-torrc-in-tor-browser-bundle kill -USR1 `cat /var/run/tor/tor.pid` /usr/sbin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc --hush hr. http://www.onlamp.com/pub/a/bsd/2005/10/13/thttpd.html?page=3 http://linux.derkeiler.com/Newsgroups/comp.os.linux/2005-11/0109.html http://www.acme.com/software/thttpd/notes.html https://www.pantz.org/software/thttpd/thttpdconfig.html http://nginxlibrary.com/running-cgi-scripts-using-thttpd/ http://www.techrepublic.com/article/use-thttpd-as-your-web-server-when-apache-is-overkill/ https://calomel.org/thttpd.html https://ubuntuforums.org/showthread.php?t=1648470 hr. sudo apt-get install tor created directory called: hidden_service in /var/lib/tor while in /var/lib/tor chown -R debian-tor:debian-tor hidden_service vim /usr/share/tor/tor-service-defaults-torrc add two lines: HiddenServiceDir /var/lib/tor/hidden_service/ HiddenServicePort 80 127.0.0.1:8080 tor daemon log file: /var/log/tor/log ps aux | grep tor start up tor if not already running: /usr/sbin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc --hush or restart tor daemon kill -USR1 `cat /var/run/tor/tor.pid` then in the hidden_service directory, two new files will be created: private_key hostname the hostname file contains the .onion address that points to the website hosted by the thttpd install above. hr. git clone my wren web publishing app. hr. http://jothut.com/cgi-bin/junco.pl/blogpost/21154/14May2015/Installing-nodejs-nginx-mysql-junco-and-ghost-on-Digital-Ocean-Droplet#Installing-Nginx installed nginx installed fastcgi **** do this and not the first method mentioned in the above install doc: apt-get install nginx spawn-fcgi fcgiwrap q. update 20nov2013 - problems with cgi app executing another cgi app on same server. seems to be a problem with fast cgi. trying a different wrapper mentioned here: https://library.linode.com/web-servers/nginx/perl-fastcgi/ubuntu-12.04-precise-pangolin q.. the above link redirects to here: https://www.linode.com/docs/websites/nginx/nginx-and-perlfastcgi-on-ubuntu-12-04-lts-precise-pangolin/ edit: /etc/init.d/fcgiwrap and change the following: FCGI_CHILDREN="1" to FCGI_CHILDREN="5" ensure user and group match the web server daemon user and group. br. installed wren, which meant installing perl modules perl -MCPAN -e 'install HTML::Template' this is a big install that takes a few minutes. perl -MCPAN -e 'install JSON::Any' perl -MCPAN -e 'install JSON::XS' moron. i should have installed only JSON::PP instead of the two json modules above. perl -MCPAN -e 'install WWW::Mailgun' hr. /etc/init.d /usr/local/etc/rc.d --- not used