Install PureFTPd on FreeBSD

Install PureFTPd on FreeBSD
[dupre@ibm ~]$ su -
Password:
[root@ibm ~]# cd /usr/ports/
[root@ibm /usr/ports]# make search name=pure-ftp
Port:   pure-ftpd-1.0.21_2
Path:   /usr/ports/ftp/pure-ftpd
Info:   A small, easy to set up, fast and very secure FTP server
Maint:  garga@FreeBSD.org
B-deps:
R-deps: perl-5.8.8_1
WWW:    http://www.pureftpd.org/

Tags: , , ,

Filed under:How To

ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (38)

[root@ibm /var/db/mysql]# uname -a
FreeBSD ibm.jc 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008     root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
[root@ibm /var/db/mysql]# mysql
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (38)
[root@ibm /var/db/mysql]# ls -al /tmp/mysql.sock
-rw-r–r–  1 root  wheel  0 Dec  4 10:15 /tmp/mysql.sock
Just delete file /tmp/mysql.sock and restart mysql-server

Tags: , , , ,

Filed under:Error

Problem starting Apache 2.2.0 Freebsd

[root@pisangraja ~]# /usr/local/etc/rc.d/apache22 restart
Performing sanity check on apache22 configuration:
httpd: apr_sockaddr_info_get() failed for pisangraja.jc
httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
Syntax OK
Stopping apache22.
Waiting for PIDS: 11416.
Performing sanity check on apache22 configuration:
httpd: apr_sockaddr_info_get() failed for pisangraja.jc
httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
Syntax [...]

Tags: , ,

Filed under:nobody

Install Awstats on FreeBSD

1. Download & Config awstats
[me@titik.org /usr/local/www/]# wget http://prdownloads.sourceforge.net/awstats/awstats-6.7.tar.gz
[me@titik.org /usr/local/www/]# tar zxvf awstats-6.7.tar.gz
[me@titik.org /usr/local/www/]# mv awstats-6.7/ awstats/
[me@titik.org /usr/local/www/]# cd awstats/tools/
[me@titik.org /usr/local/www/awstats/tools]# ./awstats_configure.pl

Tags: ,

Filed under:How To

Stickies : Linux - FreeBSD commands

Disk, filesystem
Disk usage
{linux}$ du -sh
{freebsd}$ du -sh
Count subdirectories in current directory:
{linux}$ du –max-depth=1
{freebsd}$ du -d1
Typical approach to find biggest directories/files on disk:
{linux}$ du –max-depth=1 -kx|sort -n
{freebsd}$ du -d1 -kx|sort -n
Find some kinds of files (regex is a mask for full path, no need for begin/end marks)
{linux}$ find . -regextype posix-extended -type f -regex “.*\.(java|class)”
{freebsd}$ find [...]

Tags: , ,

Filed under:Stickies

Stickies Today : How to change IP address on FreeBSD

1) Use ifconfig command as follows:
ifconfig interface inet IP
Example(s):
ifconfig lnc0 inet 202.54.1.22
Note lnc0 is Ethernet interface name can be Obtained using ifconfig -a command.
2) To setup up ip permanently open file /etc/rc.conf ; add/modify network entries:
vi /etc/rc.conf
And setup values as follows:
hostname=”fbsdx.test.com”
ifconfig_lnc0=”inet 192.168.0.6 netmask 255.255.255.0″
Note ifconfig_lnc0 is Ethernet interface name can be Obtained using [...]

Tags: ,

Filed under:Stickies