How to install or add a package in FreeBSD
To install a Port: (ImageMagick as an example)
cd /usr/ports/graphics/ImageMagick/ && make install clean
If you do not have a source of local packages (such as a FreeBSD CD-ROM set) then it will probably be easier to use the -r option to pkg_add(1). This will cause the utility to automatically determine the correct object format and release and then fetch and install the package from an FTP site.
The example above would download the correct package and add it without any further user intervention.
pkg_info(1) is a utility that lists and describes the various packages installed.
To remove a previously installed software package, use the pkg_delete(1) utility.
Establishing a trust relationship and synchronize DNS records.
We can establish a master/primary nameserver relationship at server setup level. If you do set up a primary nameserver, we need to establish a trust relationship between the two servers so that you can add all DNS entries from the primary nameserver. This saves you having to log on to multiple servers to set up various DNS entries.
To establish a trust relationship with a primary nameserver.
1.Click on the Establish A Trust Relationship With a Primary Nameserver link in the DNS Functions menu.
2.Enter the root password for the trusted nameserver in the Master Server Root Password field.
Once you have established a trust relationship with a primary nameserver, you will need to synchronize the DNS records between the primary and secondary nameservers after you have added new DNS entries.
To synchronize DNS records with the primary nameserver:
1.Click on the Synchronize DNS Records with Primary Nameserver link in the DNS Functions menu.
Setting up a remote MySQL server for cPanel/WHM server.
You can change the MySQL server from the local server (”localhost”) to point to a remote server.
This allows MySQL functions to be performed by another computer.
To set up a remote MySQL server:
1.Click on the Setup Remote MySQL server link.
2.Enter the name of the remote server in the Remote Mysql Host field and its password in the Remote Mysql Host’s Root Password field.
Note: Do not enter the root password for the remote MySQL server in the Remote Mysql Host’s Root Password field.
3.Click on the Setup button.
PCRE - Perl Compatible Regular Expressions on Cpanel Servers.
The PCRE library is a set of functions that implement regular expression pattern matching using the same syntax and semantics as Perl 5.
The latest release of the PCRE library is 8.10. You can download it from its official home via anonymous FTP:
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.10.tar.gz
tar xvzf pcre-8.10.tar.gz
cd pcre-8.10
./configure
make
make install
More at the man page - http://www.pcre.org/pcre.txt
How to uninstall RVSiteBuilder
First we need to back up the configuration files.
mkdir /var/cpanel/.rvglobalsoft
cd /var/cpanel/.rvglobalsoft
cp -a /var/cpanel/rvglobalsoft/rvsitebuilder/var ./
cp -a /var/cpanel/rvglobalsoft/rvsitebuilder/www/project ./
Second Step is to remove the RVSiteBuilder files
rm -rf /usr/local/cpanel/whostmgr/docroot/cgi/rvsitebuilderinstaller.tar
rm -rf /usr/local/cpanel/whostmgr/docroot/cgi/rvsitebuilderinstaller
rm -rf /usr/local/cpanel/whostmgr/docroot/cgi/rvsitebuilder
rm -f /usr/local/cpanel/whostmgr/docroot/cgi/addon_rvsitebuilder.cgi
rm -rf /var/cpanel/rvglobalsoft
rm -rf /usr/local/cpanel/base/frontend/*/rvsitebuilder
rm -f /usr/local/cpanel/base/frontend/x/cells/rvsitebuilder.htm
rm -f /usr/local/cpanel/base/frontend/x3/dynamicui/dynamicui_rvsitebuilder.conf
Drop the rvsitebuilderdb from MySQL database.
#mysql
mysql> drop database yourdbnamehere;
mysql> exit
RVSiteBuilder is now uninstalled.