Your PHP installation appears to be missing the MySQL extension which is required by WordPress Error and Solution

Posted on in Categories , , , last updated May 27, 2013

I’m setting up Wordpress based blog system under Debian or Ubuntu Linux. I am getting an error which read as follows:

Your PHP installation appears to be missing the MySQL extension which is required by WordPress

How do I fix this problem under Debian or Ubuntu Linux?

Cannot ping Linux / UNIX / Windows server by name but can ping by its IP address

Posted on in Categories , , , , , , , , , , last updated October 8, 2007

Q. I have Debian Linux server in remote data center. I can ping server by its IP but not by hostname such as server.domain.com. How do I ping server by hostname?

A. This is client side DNS problem. All you have to do is setup correct DNS server:

=> Linux DNS Client Configuration

=> Solaris DNS Client Configuration

Linux change my hostname / computer system name

Posted on in Categories , last updated July 26, 2007

Q. I’m using Ubuntu Linux. How do I change my hostname or the machine name?

A.. You need to use hostname command, which is used to either set or display the current host or domain name of the system. This name is used by many of the networking programs to identify the machine.

Following instructions should work on both Debian and Ubuntu Linux systems.

Task: Display current hostname

Just type hostname command print the name of the system:
$ hostname
Output:

vivek-desktop.gite.in

Task: Change hostname

Set hostname to desktop.nixcraft.com:
# hostname desktop.nixcraft.com
# hostname

Output:

desktop.nixcraft.com

Task: Change hostname permanently

You need to edit a file called /etc/hostname:
# vi /etc/hostname
Set new hostname:

desktop.nixcraft.com

Save and close the file.

A note for Redhat / CentOS Linux users

If you are using CentOS or Fedora or Redhat (RHEL) Linux, see this FAQ.