Kategoriarkiv: Lamp

Enabling directory indexes in Apache (2)

The default setting should be something like: <Directory /> Options FollowSymLinks AllowOverride All </Directory> Just add indexes: <Directory /> Options FollowSymLinks indexes AllowOverride All </Directory>

Udgivet i Apache, FreeBSD, Knowledge Base, Lamp, Linux, Old Base | Skriv en kommentar

.htaccess password protection

The htaccess file: AuthName “– Clasified area –” AuthType Basic AuthUserFile /www/htpasswd require user rip rap rup To initialize the passwd file: , file must be outside wwwroot root@chilibeans:/root# htpasswd -c /www/htpasswd mike New password: Re-type new password: Adding password … Læs resten

Udgivet i Apache, FreeBSD, Knowledge Base, Lamp, Linux, Old Base | Skriv en kommentar

Sjov med PHP [DoggyStyle or devel]

Hvis man bag sin PHP fil sætter følgende kode: ?=PHPE9568F36-D428-11d2-A769-00AA001ACF42 Får man et sjovt -hidden-icon- 🙂 eksempel: http://www.fujang.dk/?=PHPE9568F36-D428-11d2-A769-00AA001ACF42 hehe 🙂 Fis og ballade! Keep Ya Cool Daniel Bahl Pingvinen http://danielbahl.info

Udgivet i Knowledge Base, Lamp, Old Base, Uncategorized | Skriv en kommentar

How to search in sql databases.

To find a cell contain a specific word you can use the following line in sql. “select * from tabel where felt like \”%$variable%\” order by felt” // Vladimirr – Vladimirr.dk

Udgivet i Knowledge Base, Lamp, Old Base, SQL | Skriv en kommentar

Apache 2 og PHP 4.3.1

wget http://www.php.net/get/php-4.3.1.tar.gz/from/dk2.php. wget <apache> tar zxf httpd-2.0.44.tar.gz tar zxf php-4.3.1.tar.gz cd httpd-2.0.44 mkdir /www ./configure –prefix=/www –enable-so make make install cd ../php-4.3.1 ./configure –with-apxs2=/www/bin/apxs –prefix=/www/php make make install cp php.ini-dist /www/php/lib/php.ini echo ‘LoadModule php4_module modules/libphp4.so’ >> /www/conf/httpd.conf echo ‘AddType application/x-httpd-php … Læs resten

Udgivet i Apache, Knowledge Base, Lamp, Linux, Old Base | Skriv en kommentar