content top

CentOS 7 EPEL / REMI Location

CentOS 7 EPEL / REMI Location

CentOS 7 was released about a week ago, so I decided to give it a try. As you probably know, CentOS is a clone of Red Hat Enterprise Linux(RHEL). Typically, Red Hat put the new features in Fedora first. If things go well, they will move the new features to the RHEL, which eventually will be available in CentOS. In this new version, I see a lot of familiar features which I found in the last few release in Fedora, such as the new GNOME...

Read More

How to get HP LaserJet 1000 (or any ancient HP printers) working on Windows 7/8 64-bit

How to get HP LaserJet 1000 (or any ancient HP printers) working on Windows 7/8 64-bit

I bought a HP LaserJet 1000 printer back in 2001. Still Loving it! The running cost is low and the output quality is great. It is still working great after running for 13 years! Its quality even out beats my brand new Samsung LaserJet! HP LaserJet 1000 is a almost-perfect printer except that HP no longer supplies the right driver for modern operating system. Long story short, if you are a Windows 7/8 (64-bit) user, HP wants you to dump...

Read More

Shared object “libsqlite3.so.8″ not found

Shared object “libsqlite3.so.8″ not found

I noticed some weird thing on my server today. When I ran some PHP code, I got the following error: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20121212-zts/pdo_sqlite.so' - Shared object "libsqliteo_sqlite.so" in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20121212-zts/pdo_sqlite.so' - Shared object "libsqlite3.so.ite.so" in Unknown on line 0 PHP Warning: PHP...

Read More

How to Expand ZFS

How to Expand ZFS

Today I am going to share my story with you on how to expand my ZFS storage. I have a giant ZFS pool, which consists of 8x2TB (RAIDZ2) and 4×1.5TB (RAIDZ1), with a total of 15TB usable spaces. Since I am running out of space, I decide to upgrade the ZFS by replacing the disks one at a time. So here is the ZFS structure: #zpool status NAME STATE READ WRITE CKSUM storage ONLINE 0 0 0 raidz2-0 ONLINE 0 0 0 ada0 ONLINE 0 0 0 ada1 ONLINE 0...

Read More

[FreeBSD]Shared object “libaprutil-1.so.5″ not found, required by “httpd”

[FreeBSD]Shared object “libaprutil-1.so.5″ not found, required by “httpd”

I upgraded the Apache to 2.2.27 on my FreeBSD box via portmaster. The upgrade went very smooth. After the upgrade, I decide to test the Apache by restarting the server. Oh well, I got the following error message: [FreeBSD]Shared object "libaprutil-1.so.5" not found, required by "httpd" Oh well, looks like libaprutil-1.so.5 is missing. How about I create this file by soft-linking from the newer version, such as libaprutil-1.so.6,...

Read More

[FreeBSD]PHP does not work after upgrading Apache to 2.2.27

[FreeBSD]PHP does not work after upgrading Apache to 2.2.27

I upgraded the Apache to 2.2.27 on my FreeBSD box via portmaster. The upgrade went very smooth. After the upgrade, I found that Apache no longer rendered the PHP page correctly. In the other words, it displayed the source code of the PHP files instead of executing the code. Before you start doing anything, please make sure that your website is not accessible from public. For example, most web applications like to include the password...

Read More

XAMPP – PHP Fatal error: Class ‘ZipArchive’ not found

XAMPP – PHP Fatal error:  Class ‘ZipArchive’ not found

I just finished writing a program written in PHP today. When I moved to the another environment, I found that the script didn’t work. After some investigations, I found that the program stopped running because of the following error: PHP Fatal error: Class 'ZipArchive' not found in ... The error is obvious, some PHP extensions were missing. Therefore, I ran the following to see which modules were being loaded by the php: #Make sure...

Read More

install: /usr/ports/…/doc/: Inappropriate file type or format

install: /usr/ports/…/doc/: Inappropriate file type or format

While I tried to upgrade both of my FreeBSD server (9 & 10) today, I got the following error: install: /usr/ports/…/doc/: Inappropriate file type or format Actually, here is the complete error message: ===> Staging for memcached-1.4.17_1 ===> memcached-1.4.17_1 depends on shared library: libevent-2.0.so - found ===> Generating temporary packing list /usr/bin/make install-recursive Making install in doc /usr/bin/make install-am...

Read More

The easiest way to improve the performance of MySQL server on FreeBSD

The easiest way to improve the performance of MySQL server on FreeBSD

There are many different ways to improve the MySQL performance. In general, it breaks down into two different categories: Server side and client side. On the server side, we can optimize the database and table structure, such as indexing the columns etc. On the client side, we can optimize the queue to minimize the workload, or we can cache and share the result such that the traffic to the server will be minimized. However, these methods...

Read More

How to Stress Test ZFS System

How to Stress Test ZFS System

If you have set up a ZFS system, you may want to stress test the system before putting it in a production environment. There are many different ways to stress test the system. The most common way is to fill the entire pool using dd. However, I think scrubbing the entire pool is the best. In case you are not familiar with scrubbing, basically it is a ZFS tool to test the data integrity. The system will go through every single file and...

Read More
content top