May 15th, 2008
This is the solution for the error “Can’t locate DBD/mysql.pm” that occurs on Linux or Unix.
How to fix this error:
wget http://www.cpan.org/modules/by-module/DBD/DBD-mysql-4.007.tar.gz
tar zxvf DBD-mysql-4.007.tar.gz
cd DBD*
perl Makefile.PL
makemake install
make clean
Found in Linux Tutorials, Unix Tutorials | No Comments »
May 15th, 2008
The error “Can’t locate DBI.pm in @INC” on a Linux or UNIX server can be fixed the same way. We have listed the solution below.
How to fix this error:
wget http://www.cpan.org/modules/by-module/DBI/DBI-1.604.tar.gz
tar zxvf DBI-1.604.tar.gz
cd DBI*
perl Makefile.PL
make
make install
make clean
This should correct the error while trying to run the perl script. If the next error you receive while trying to run the script is “Can’t locate DBD/mysql.pm” then […]
Tags: Can't locate DBI.pm, DBI msql error, DBI perl error
Found in Linux Tutorials, Unix Tutorials | No Comments »
March 23rd, 2008
PHP (PHP: Hypertext Preprocessor) is a computer scripting language, originally designed for producing dynamic web pages. It is mainly used in server-side scripting, but can be used from a command line interface or in standalone graphical applications. -definition taken from Wikipedia
Installing the PHP Port
cd /usr/ports/lang/php5make configmake install
When you run make config you will be shown a list of options […]
Tags: FreeBSD PHP, Freebsd PHP install, PHP5 Install
Found in Unix, Unix Tutorials | No Comments »
February 29th, 2008
Locking user accounts in FreeBSD is simple. This can come in handy when an account needs suspended
Locking Account
pw lock <username>
Unlocking Account
pw unlock <username>
Examples
If a user account on the machine is named “john” then the following would lock and unlock the account
pw lock john
pw unlock john
Tags: Locking users
Found in Unix Tutorials | No Comments »
February 29th, 2008
This error can be quite a pain when setting up a new server. It normally is not hard to fix so here are the ways we have used the most:
Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’
Your mysql.sock might be located elsewhere use ‘find / -name mysql.sock’
If it is located else where then ln -s [target] [nameoflink] this will link the file and allow it to start.
Permissions
If you didnt find […]
Tags: Mysql, Mysql Help
Found in Linux, Linux Tutorials, Unix, Unix Tutorials | No Comments »
February 7th, 2008
Configuration
Enable the following line in the kernel config
options QUOTA
You will need to enable disk quotas in /etc/rc.conf.
echo ‘enable_quotas=”YES” >> /etc/rc.conf
You will need to edit /etc/fstab to enable disk quotas on a per-file system basis. This is where you can either enable user or group quotas or both for all of your file systems. […]
Tags: How to enable quota, Quota
Found in Unix, Unix Tutorials | Comments Off
February 7th, 2008
This tutorial is to show you how to use Portsnap to handle the FreeBSD ports.
Installation
If you are running a previous version of FreeBSD, you will have to install portsnap:
pkg_add -r portsnapportsnap fetch extract
Once this is done the newest version of ports is installed.
To use portsnap to keep your ports up to date follow below:
portsnap fetch […]
Tags: portsnap, portsnap help, portsnap usuage
Found in Unix, Unix Tutorials | No Comments »
February 7th, 2008
Install
We will need to get the src first:
sysinstall
select Configure
select Distributions
select src
select sys [/usr/src/sys (FreeBSD Kernel)]
press Enter
select FTP
select Install
If you are not using this tutorial for a Fiber-Hosting server you may want to install from cd-rom in that case:
select CDROM
select […]
Found in Unix, Unix Tutorials | No Comments »