Posts tagged as:

FreeBSD

Problem starting Apache 2.2.0 Freebsd

by Perk1z on February 6, 2008

[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 OK
Starting apache22.
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

Just fix your hosts file and httpd conf

1. Edit hosts file :
[root@pisangraja ~]# hostname
pisangraja.jc
[root@pisangraja ~]# vi /etc/hosts

::1                     localhost
127.0.0.1               localhost
192.168.12.200          pisangraja
192.168.12.200          pisangraja.jc

2. Edit httpd conf
[root@pisangraja ~]# vi /usr/local/etc/apache22/httpd.conf
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn’t have a registered DNS name, enter its IP address here.
#
ServerName www.pisangraja.jc:80

[root@pisangraja ~]# /usr/local/etc/rc.d/apache22 restart
Performing sanity check on apache22 configuration:
Syntax OK
apache22 not running? (check /var/run/httpd.pid).
Performing sanity check on apache22 configuration:
Syntax OK
Starting apache22.

DOne

Popularity: 56% [?]

{ 0 comments }

Install Awstats on FreeBSD

by Perk1z on October 24, 2007

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

[click to continue...]

Popularity: 44% [?]

{ 0 comments }

Stickies : Linux - FreeBSD commands

by Perk1z on July 14, 2007

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 -E . -type f -regex “.*\.(java|class)”

Show open files and programs:
{linux}$ lsof
{freebsd}$ fstat

Some networking
Show open ports and apps connected to them:
{linux}$ netstat -apne –inet
{freebsd}$ sockstat

Kernel issues
Show loaded modules:
{linux}$ lsmod
{freebsd}$ kldstat

Load kernel module:
{linux}$ modprobe SomeModule
{freebsd}$ kldload SomeModule

Remove loaded module:
{linux}$ rmmod SomeModule
{freebsd}$ kldunload SomeModule

[click to continue...]

Popularity: 10% [?]

{ 0 comments }

Stickies Today : How to change IP address on FreeBSD

by Perk1z on July 14, 2007

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 ifconfig -a command.

3) Again re-run /etc/netstart script.

SourceÂ

Popularity: 8% [?]

{ 0 comments }