FreeBSD Jails (VPS)

Q. I’m trying to upgrade my PHP version from 5.2.6 to 5.2.8 using portupgrade command. But I’m getting following errors:

*** Error code 1

Stop in /usr/ports/lang/php5.
*** Error code 1

Stop in /usr/ports/lang/php5.
*** Error code 1

Stop in /usr/ports/lang/php5.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.42275.0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=php5-pcre-5.2.6_2 UPGRADE_PORT_VER=5.2.6_2 make reinstall
—> Restoring the old version
pkg_add: warning: package ‘php5-pcre-5.2.6_2′ requires ‘php5-5.2.8′, but ‘php5-pcre-5.2.6_2′ is installed
** Fix the installation problem and try again.
[Updating the pkgdb
in /var/db/pkg … – 62 packages found (-0 +1) . done]
** Listing the failed packages (-:ignored / *:skipped / !:failed)
! lang/php5 (php5-pcre-5.2.6_2) (install error)

How do I fix this problem and upgrade php5-pcre?

{ 1 comment }

Q. I’ve installed FreeBSD server without ports. When installing my FreeBSD system, sysinstall asked my, if I would like to install the Ports Collection? I chose not to install it. Now, how do I obtain and install the FreeBSD ports collection in /usr/ports?

{ 3 comments }

Question: I’ve vsftpd ftp server configured under FreeBSD 7.x and PF firewall. Both PF and FTP server running on a dedicated FreeBSD web server. How do I configure PASSIVE FTP PF firewall configuration so that my vsftpd work? How do I configure PF firewall to protect an FTP server and open port 21?

{ 1 comment }

Q. I’m trying to build PHP5 under FreeBSD jail and I’m getting an error that read as follows:

m4.info-[0-9][0-9] ./m4.i[0-9] ./m4.i[0-9][0-9]; do if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; done; else :; fi && cd “$am__cwd”; if makeinfo –no-split -I . -o ./m4.info ./m4.texinfo; then rc=0; cd .; else rc=$?; cd . && $restore $backupdir/* `echo “././m4.info” | sed ‘s|[^/]*$||’`; fi; rm -rf $backupdir; exit $rc
makeinfo: not found
*** Error code 127

Stop in /usr/ports/devel/m4.
*** Error code 1

Stop in /usr/ports/devel/autoconf262.
*** Error code 1

Stop in /usr/ports/lang/php5.
*** Error code 1

How do I get rid of this problem and compile applications?

{ 5 comments }

Q. I’d like to save disk space for my FreeBSD 7 ISP server. We run webserver, nameserver from various jails under powerful HP RAID 10 server. How do I export /usr/ports from host to each jail hosted on /jail/ volume such as /jail/www, /jail/ns, /jail/sql etc?

{ 7 comments }

Q. How do I Change the IP Address of a Domain or Host under BIND 8 or 9?

{ 1 comment }

How do I create a secondary djbdns dns name server to resolve names if primary went down?

{ 0 comments }