≡ Menu

ports

OpenBSD Install Ports Tree Collection

I have installed OpenBSD operating system but ports collection is missing at /usr/ports directory. How do I install ports from ftp / http site under OpenBSD?
[click to continue…]

I'd like to switch from mod_php5 to mod_fastcgi. I'm using FreeBSD 7 release along with following software:

+ Apache 2.2
+ PHP as mod_php5
+ MySQL DB 5.1.23 server
How do I configure php as FastCGI server?
[click to continue…]

Q. How do I install Strace utility under FreeBSD operating system so that I can trace and debug my applications and report 3rd party software bugs?

A. Strace is a process tracer, i.e. a debugging tool that prints out a trace of all the system calls made and signals received by a process itself or a process and its descendants.

Strace is similar to the native BSD truss utility, but it's output style is more convenient in most cases.

For strace to work, procfs has to be mounted. FreeBSD does not mount it by default.

WARNING! These examples only work for i386 32 bit FreeBSD computer (strace is not ported to amd64 arch [64 bit]).

Install strace

First update FreeBSD ports collection and install strace from /usr/ports/devel/strace:
# portsnap fetch update
# cd /usr/ports/devel/strace
# make install clean

Mount /proc file system

You need to mount /proc filesystem to use trace command under FreeBSD, enter:
# mount -t procfs proc /proc

How do I use Strace tool?

Please see our previous FAQ / tutorials about strace command:

  1. Debugging Tip: Trace the Process and See What It is Doing with strace
  2. Truss like command under Linux to monitor and diagnostic the system calls

Q. While installing any FreeBSD port I'm getting following error message:
....
===> FreeBSD WARNING: Vulnerability Database Out of Date, Checking Anyway
...

How do I fix this warning message?
[click to continue…]

While building Apache port I was presented with a menu from which I selected certain build options. However, certain option giving out error as follows:
===> apache-2.2.8 mod_mem_cache requires WITH_THREADS.
*** Error code 1

All I wanted to do is disable mod_mem_cache and build Apache again. Unfortunately, it is not allowing me to clear out configuration option. How do I remove all selected options and allow me to start over again?
[click to continue…]

Configure HTTPD To Listen on Multiple Ports

How do I configure Apache HTTPD to listen on multiple ports under RHEL / Fedora / CentOS Linux Server?
[click to continue…]

FreeBSD Install gnupg Cryptographic Software

Q. How do I install gnugp security Cryptographic software on my FreeBSD 6.x server from a shell prompt over ssh session?
[click to continue…]