Fiber Hosting

Affordable Professional Dedicated and Co-Location Services

Documentation and Tutorials by Fiber-Hosting LLC

Created for the novice server administrator of unix and linux powered servers.

Can’t locate DBD/mysql.pm

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

Can’t locate DBI.pm in @INC

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 […]

Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’

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 […]

Working Debian with HyperVM

February 13th, 2008

We are not sure if everyone has this error, but Debian on Xen was not connecting to the Internet with default information. SSH was not starting due to errors. This is how we fixed out system

 Editing

vi /etc/network/interface  <—edit IP and other Gateway information
ifdown eth0
ifup eth0
cd /dev/
./MAKEDEV generic
ls -la | grep urandom <–see if urandom is […]

How to install HyperVM on Linux

February 13th, 2008

How to install HyperVM:
HyperVM is a web based application that will allow you to create and manage different Virtual Machines each with each vps having its own Operating System. HyperVM also allows you to run multiple HyperVM servers linked together providing a tree of host servers.
HyperVM advanced features allow you to manage your vps […]

How to install UT2004 DEMO

February 7th, 2008

This tutorial is for Fiber-Hosting customers or anyone else who wants to install Unreal Tournament 2004 demo. The game version in this demo is 3334. This version of the game can be downloaded at
Downloads.com or here at Fiber Hosting.

Downloading the game

wget www.fiber-hosting.com/ut2004-lnx-demo3334.run
Or you can use Downloads.com

Installing the game

chmod +x ut2004-lnx-demo3334.run
./ut2004-lnx-demo3334.run –target /home/YOURHOMEDIR/UTFOLDER
cd /YOURDIR/UTFOLDER
tar jxvf […]

Securing “ps”

February 7th, 2008

 This is one way we secure ps to keep normal users from reading all the processes on the server. We know there are other ways to do this and if you would like to share please do.

 Moving ps

mv /bin/ps /usr

Editing new ps

vi /bin/ps
We are creating a bash script listed below:

#!/bin/bash
if [ “$(whoami)” != “root” ]; […]

How to connect to your unix or linux server

February 5th, 2008

1. You must first download Putty from this post.
2. Run putty.exe add in server address or host name.
3. Click Open.
4. When login prompt comes up enter in the user information you were e-mailed with in the Activation Email.

How to recompile a Linux Kernel

February 5th, 2008

Getting the Kernel Sources

The most recent releases of the kernel sources are available on ftp.kernel.org. You will want to wget the file to /usr/src or use FTP to upload it.

Configuring For a Build

If /usr/src/linux is not found you can cd /usr/src;mkdir linux;ln -s linux-2.* linux
cd /usr/src/linux
make menuconfig or make oldconfig to carry over your old […]

How to install Apache on a Linux server

February 5th, 2008

The Apache HTTP Server, commonly referred to simply as Apache, is a web server notable for playing a key role in the initial growth of the World Wide Web. Fiber-Hosting recommends downloading the latest stable release. The best place to get Apache is from the Apache HTTP Server download site listed below.

Downloading Apache

Go to the […]

DDoS protected network available on our GigE Network. For information and pricing please email sales@fiber-hosting.com.


Entries (RSS) and Comments (RSS).