AuthName "-- Clasified area --" AuthType Basic AuthUserFile /data/www/htpasswd require user dinuser password filen laver du med /sti/til/apache/htpasswd -c .htpasswd dinuser
AuthName "-- Clasified area --" AuthType Basic AuthUserFile /data/www/htpasswd require user dinuser password filen laver du med /sti/til/apache/htpasswd -c .htpasswd dinuser
Tilfoej:
ErrorDocument 404 /404.html
Til httpd.conf , enten i selve filen eller i et virtualhosts statement. Kan efter sigende ogsaa placeres i .htaccess.
Filen skal her ligge i webroden af det aktuelle domaene.
Ellers kan det nævnes at der er gode eksempler og forklaringer i httpd.conf filen.
<?php
// ***
// ICQ tjek funktion
// ***
function icq_test($uin) {
$arr = file( "http://online.mirabilis.com/scripts/online.dll?icq=$uin&img=1");
$len = strlen($arr[1]);
if ($len == 96) {
return "<b><font color=\"#00FF00\">Online</font></b>";
} elseif ($len == 83) {
return "<b><font color=\"#FF4040\">Offline</font></b>";
} elseif ($len == 1) {
return "<b><font color=\"#FF4040\">Offline</font></b>";
} else {
return "Status ukendt";
}
}
?
session_start();
if ( $_SESSION[“nick”] != “”)
http://freshmeat.net/redir/iperf/30604/url_tgz/iperf-1.7.0-source.tar.gz root@chilibeans:~/iperf-1.7.0# iperf -s -c localhost ------------------------------------------------------------ Server listening on TCP port 5001 TCP window size: 64.0 KByte (default) ------------------------------------------------------------ [ 6] local 127.0.0.1 port 5001 connected with 127.0.0.1 port 1952 [ ID] Interval Transfer Bandwidth [ 6] 0.0-10.0 sec 482 MBytes 404 Mbits/sec root@chilibeans:~# iperf -c localhost ------------------------------------------------------------ Client connecting to localhost, TCP port 5001 TCP window size: 64.0 KByte (default) ------------------------------------------------------------ [ 5] local 127.0.0.1 port 1952 connected with 127.0.0.1 port 5001 [ ID] Interval Transfer Bandwidth [ 5] 0.0-10.0 sec 482 MBytes 404 Mbits/sec
The interface eth0 : The interface want to configure 10.1.1.2 : The IP of the interface 255.255.255.0 : The netmask of the interface ifconfig eth0 10.1.1.2 netmask 255.255.255.0 up The gateway 10.1.1.1 : Name of gateway route add default gateway 10.1.1.1 The DNS 10.1.1.1 : The DNS server echo nameserver 10.1.1.1 > /etc/resolv.conf Now your net should be running!
Apache
http://httpd.apache.org/lists.html#http-announce
i mounted /usr and got access to ‘vi’ and also ‘passwd’ changed the root pass and logged in. Here is a short guide on how to do when or if the problem arises for somebody else:
How to recover root password on Utrix 4.4 or DECsystem 5100, proberly works on other systems as well.
Boot the system, when the fsck begins (harddisk checking) press ctrl+c (might be names ‘code’ instead of ‘ctrl’ if your on a vt420 terminal)
You will now be granted with a root promt in singelmode, now type ‘mount /usr’ and then ‘passwd’ you will now be asked for the password you want to set to be roots, type it in, afterwards it will ask you to repeat, do that to.
Now type reboot and log in with your new password.
Insert data:
insert into TabelName (`Var1`, `Var2`, `Var2`) values ('Content1','Content2','Content2');
Delete data:
delete from TabelName where Var1='Content1';
Update data:
update Tabelname set Var1='More Content' where Var1='Content1';
Queries:
select * from Tablename;
Show all rows from Tablename
select * from Tablename where Var1='Content';
Show all rows from Tablename where Var1 contais "Content"
select Var1,Var2 from Tablename where ID<20;
Show Var1 and Var2 from Tablename with ID lower than 20
select distinct Var1 from TabelName
Show all values of Var1 from tablenames except clones
select title from content where title like "%crac%" and type="dictionary";
Show all values of content where title containts the letter 'crac' and type is 'dictionary'
peanut# lsof | grep IPv4 syslogd 245 root 5u IPv4 0xc2799b94 0t0 UDP *:syslog sshd 398 root 4u IPv4 0xc27b5a70 0t0 TCP *:ssh (LISTEN) sendmail 403 root 3u IPv4 0xc27b55b8 0t0 TCP *:smtp (LISTEN) sendmail 403 root 5u IPv4 0xc27b535c 0t0 TCP *:submission (LISTEN) gaim 602 mike 6u IPv4 0xc27b6100 0t0 TCP peanut.unifix.org:49187->baym-sb69.msgr.hotmail.com:1863 (ESTABLISHED) gaim 602 mike 7u IPv4 0xc27b5100 0t0 TCP peanut.unifix.org:49188->baym-sb43.msgr.hotmail.com:1863 (ESTABLISHED) gaim 602 mike 12u IPv4 0xc27b6ccc 0t0 TCP peanut.unifix.org:49172->baym-cs178.msgr.hotmail.com:1863 (ESTABLISHED) xchat 604 mike 6u IPv4 0xc27b5814 0t0 TCP peanut.unifix.org:49174->brunner.freenode.net:ircd (ESTABLISHED) xchat 604 mike 10u IPv4 0xc2a9b35c 0t0 TCP peanut.unifix.org:49173->irc1.port80.se:ircd (ESTABLISHED) ssh 607 mike 3u IPv4 0xc2a9b5b8 0t0 TCP peanut.unifix.org:49175->unifix.org:ssh (ESTABLISHED) ssh 718 mike 3u IPv4 0xc27b6a70 0t0 TCP peanut.unifix.org:49180->unifix.org:ssh (ESTABLISHED)