Installing & Configuring Lighttpd
If you’re installing on an x86_64 machine:
"wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm"
If you’re installing on an i386 machine:
"wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm"
#yum install lighttpd
#service lighttpd start
Lighttpd’s default document root is /srv/www/lighttpd, you can use this or...
add this on nginx.conf or vhost conf file:
[codesyntax lang="apache"]
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?q=$1 last;
break;
}
}
[/codesyntax]
[codesyntax lang="apache"]
location / {
root /var/www/html;
index index.php index.html index.htm;
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?q=$1 last;
break;
}
...
Which pages does DroidSheep support?
- amazon.de
– facebook.com
– flickr.com
– twitter.com
– linkedin.com
– yahoo.com
– live.com
– google.de (only the non-encrypted services like “maps”)
What do you need to run DroidSheep?
- You need an android-powered device, running at least version 2.1 of Android
- You need Root-Access on your phone (link)
- You need DroidSheep (You can get it in the “GET IT”...
create directory for vhost
[codesyntax lang="powershell"]
cd /var/www
mkdir -p fr3akz.com/{public_html,logs,stats}
mkdir -p fr3akz.org/{public_html,logs,stats}
[/codesyntax]
create new vhost conf file fr3akz.com
[codesyntax lang="powershell"]
nano /etc/nginx/conf.d/fr3akz.com.conf
server {
listen 80;
server_name fr3akz.com www.fr3akz.com;
access_log /var/www/fr3akz.com/logs/access.log...
Configure Simple VirtualHost directory
# mkdir -p /srv/www/lighttpd/(www.domain.com)/html
Enable mod_simple_vhost for VirtualHost
nano /etc/lighttpd/modules.conf
#
server.modules = (
"mod_simple_vhost",
etc... )
Edit /etc/lighttpd/conf.d/simple_vhost.conf and add:
$HTTP["host"] != "me.domain.com" {
simple-vhost.server-root =...
Just fire up your SSH client (PUTTY)
Enter to your server by using root privileges.
Then you need to find and edit lighttpd.conf file on your server.
[codesyntax lang="powershell"]
#nano /etc/lighttpd/lighttpd.conf
[/codesyntax]
Then add this simple line to your lighttpd.conf file.
[codesyntax lang="powershell"]
server.error-handler-404 = "/index.php"
[/codesyntax]
save and close
[codesyntax lang="powershell"]
#/etc/init.d/lighttpd...
Install dependencies
[codesyntax lang="powershell"]
yum install gcc make
yum -y install openssl-devel curl-devel libevent-devel intltool.i386 gettext wget nano
[/codesyntax]
[codesyntax lang="powershell"]
wget http://download.m0k.org/transmission/files/transmission-2.33.tar.bz2
tar xjvf transmission-2.33.tar.bz2
cd transmission-2.33
./configure make && make install
[/codesyntax]
start transmission
[codesyntax...
Add repositories for nginx and PHP-fpm
[codesyntax lang="powershell"]
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
[/codesyntax]
Install nginx and PHP-fpm
[codesyntax lang="powershell"]
yum --enablerepo=remi install php-fpm nginx
[/codesyntax]
[codesyntax lang="powershell"]
yum --enablerepo=remi install mysql...
Create SSL certs and enable https with Lighttpd
setup your certificate.
[codesyntax lang="powershell"]
# mkdir -p /etc/lighttpd/ssl
# cd /etc/lighttpd/ssl
# openssl req -new -x509 -keyout server.pem -out server.pem -days 3650 -nodes
[/codesyntax]
protect your ssl cert and directory.
[codesyntax lang="powershell"]
# chown -R lighttpd:lighttpd /etc/lighttpd/ssl
# chmod 0600 /etc/lighttpd/ssl
[/codesyntax]
edit...
Install dependensi PHP, modul, and tools
[codesyntax lang="powershell"]
#yum -y install gcc gcc-c++ glibc make automake GeoIP GeoIP-devel GeoIP-data fontconfig fontconfig-devel gd gd-devel pam pam-devel openldap openldap-devel libXpm libXpm-devel libtool libaio libaio-devel libtool-ltdl libtool-ltdl-devel libmcrypt libmcrypt-devel mhash mhash-devel unixODBC unixODBC-devel zip unzip nano perl openssl openssl-devel pcre pcre-devel bzip2...