RSS

Tag Archive | "php"

Finding out what httpd a website uses

Saturday, June 20, 2009

0 Comments

Have you ever wanted to know what httpd a website is using but didn't know how? this tutorial will be able to show you. You can simply find out the httpd by viewing the servers header. To view the headers we need curl you can install it by running the following command apt-get install curl Then we [...]

Continue reading...

Lighttpd virtual hosting

Saturday, June 13, 2009

0 Comments

Virtual hosting allows you to host many websites from one server. Setup The Folders and users adduser domain1 addgroup domain1 adduser www-data domain1 mkdir -p /home/domain1 chown domain1:domain1 -R /home/domain1 chmod 750 -R /home/domain1 adduser domain2 addgroup domain2 adduser www-data domain2 mkdir -p /home/domain2 chown domain2:domain2 -R /home/domain2 chmod 750 -R /home/domain2 Lighttpd Config Open your lighttpd.conf nano /etc/lighttpd.conf Add the following for the virtual host configuration $HTTP["host"] == "domain1.com" { server.document-root = "/home/domain1" accesslog.filename [...]

Continue reading...

Pastebin from command line

Thursday, May 28, 2009

0 Comments

Have you ever wanted to show data from your command line but couldn't copy it? there is now a solution the script below will allow you to paste the output of commands into the tuts4tech pastebin just copy the script below and save it in /usr/bin/pastebin then you'll be able to do | pastebin e.g [...]

Continue reading...

Lighttpd On Windows

Monday, April 6, 2009

0 Comments

Setting Up Lighttpd Download the lighttpd setup file from here. I chose the Setup Wizard (.exe) version. Double-click on the downloaded executable to start the installation. When the installation is done go to your lighttpd directory(by default its C:\program files\lighttpd) and run TestMode.bat A console window should open to indicate the server is started. Go to http://localhost this should [...]

Continue reading...