content top

[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...

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...

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

ZFS Compression: lz4 VS lzjb

ZFS Compression: lz4 VS lzjb

ZFS offers a new compression method in the latest version: lz4. It claims to be better than lzjb. Since lzjb is pretty good already, I am curious to find out how good will lz4 be comparing to lzjb. According to my tests, lz4 is performing better than lzjb in terms of spacing saving and I/O, but not too much. lz4 VS lzjb: Space Saving Long story short, here is what I did. I set up two servers with brand new ZFS settings. One server is set...

Read More

ZFS Performance Boost/Improvement: How I push the I/O speed to 126MBps

ZFS Performance Boost/Improvement: How I push the I/O speed to 126MBps

This article is part of my main ZFS tutorial: How to improve ZFS performance. That article covers everything you need. If you already have the basic knowledge, or you just want to know how I push the I/O speed to 120+ MBps, you can skip that article and read this one. Long story short, here is the result of my iostat: sudo zpool iostat -v capacity operations bandwidth pool alloc free read write ...

Read More

How to Remote Desktop To Linux From Windows: XRDP

How to Remote Desktop To Linux From Windows: XRDP

If you are looking for ways to remote desktop to Linux from Windows, and you are sick of VNC, you are in the right place. I have been looking for a solution to do something very simple. I want to remotely access the desktop of my Linux servers from Windows machine. Of course, it must be at a usable level. I’ve tried different applications before, incluing XMing, XManager (X11 forwarding), VNC, 2X, NoMachine, ranging from open-source...

Read More

How to improve ZFS performance

How to improve ZFS performance

Last Updated: January 24, 2014 In this tutorial, I will show you how to improve the performance of your ZFS, such as pushing the transfer speed(max) to 70-80MB/s, IO speed(max) to 120MB/s etc, using the consumer-grade components. Recently, I built a FreeBSD server with ZFS file system using 12 disks. If you like to learn what I have done or understand more about ZFS, you can read the story here: ZFS+USB: Building a Super Large Server...

Read More

[FreeBSD]mount: /dev/da0p2: R/W mount of / denied. Filesystem is not clean – run fsck. Forced mount will invalidate journal contents: Operation not permitted

[FreeBSD]mount: /dev/da0p2: R/W mount of / denied. Filesystem is not clean – run fsck. Forced mount will invalidate journal contents: Operation not permitted

When I tried to mount a hard drive on FreeBSD today, I got the following error message. sudo mount -t ufs /dev/da0p2 /mnt/ mount: /dev/da0p2: R/W mount of / denied. Filesystem is not clean - run fsck. Forced mount will invalidate journal contents: Operation not permitted Here is how to fix it: sudo mount -r -t ufs /dev/da0p2 /mnt/ where ufs refers to the file system of FreeBSD. That’s it. –Derrick If you found this...

Read More
content top