Skip to content
April 28, 2011 / ffstefan

PHP, FastCGI, Apache and FPM setup

Problem: You want multiple, concurrent PHP versions on you Server. Minor versions.

Issues: No way with mod_php. But: one version can be the module while all other versions run as CGI. Now, I of course want FastCGI.

Solution: Hopefully you run a linux system comparable with gentoo. We’ve tried many ways and ended up using this solution. Fast, easy and everything works as described. The key indeed is mod_fastcgi_handler, which makes things A LOT more easier.

Notes:

– works even with multiple accelerators against multiple PHP engines

April 16, 2011 / ffstefan

Mac OSX 10.6.7 pdf print problem solved, fonts

Issue: The OSX 10.6.7 update makes printing to PDF impossible to a lot of applications. Usually, switching fonts may help but thats of course not a solution.

Solution: Hopefully, you have a time machine backup from the previous OSX version, preferably 10.6.6. If so, here is the easy fix:

– open time machine

– restore this folder from 10.6.6:

/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework

done. PDF export / printing works.

Additional Notes:

We found this problem initially on a clients MS Office installation. Many other applications are affected, its not a MS related problem. We consider this a major issue. Also, here are a couple more related links:

https://discussions.apple.com/thread/2794186?threadID=2794186&tstart=90

https://discussions.apple.com/thread/2792142?start=0&tstart=0

Update: Apple published a Snow Leopard software update on April 30th to fix the issue. We did not try this patch yet. See http://support.apple.com/kb/HT4605

July 5, 2010 / ffstefan

OKI Mac OSX printing problem, snow leopard

recently upgraded snow leopard from 10.6.3 to 10.6.4. Suddenly, my OOKI MC560 would not print on the network anymore.

Solution: reinstall driver, install OKI driver fix, add printer with IP and select “Line Printer Daemon” as IP driver, not IPP – worked. OKI should note that somewhere

June 28, 2010 / ffstefan

Exchange Server 2010 create public folder permission denied

During a Exchange Server 2010 fresh setup, I cannot create public folders using outlook. I get permission denied errors. Even with the Public Folders Management Role assigned to a administrative user, there was no success.

Solution: see this MS post – it also works for exchange server 2010!

Note: all that is strange. I dont get the point why Microsoft includes the “Manage Public Folder” user role when it does not work on a stock installation.

June 18, 2010 / ffstefan

Windows Server 2008 R2 Network copy performance problem

Driving me Nuts: From my Mac, I can copy to a fresh Windows Server 2008 R2 install, but performance is really bad. The other way arround works much better: loging into the Server and copy from / to a Share on the Mac (using explorer) performs 4 times faster. Huh?

Reason: in my case (Snow Leopard 10.6.3 client with Windows Server 2008 R2 Server), forced digital signing by the server caused those the performance problems.

Solution: try to turn off forced Network signing in the 2008 Server. See this page (a german site, unfortunately)

Result: performance is 3times better (went from 15 MBytes/sec to 45 MBytes/sec)

Notes:

  • although you can change the Registry Key on the server itself (MACHINE \System \CurrentControlSet \Services \LanManServer \Parameters \RequireSecuritySignature), you might need to adjust Domain or Local Policies in order to make those changes persistent after a reboot.
  • Same thing happened when I had a Windows XP client connected. After the changes, Performance boosted up.
May 10, 2010 / ffstefan

file system performance benchmark ext4, jfs, xfs, reiserfs

This is not a real benchmark. We simply did some testing before we have setup our new server. We wanted to compare the file systems and see what happens. The results were quite surprising.

Method: simple shell script to copy ~220.000 files (2.4G, Linux /usr content) and delete them again. The files are copied on the same Volume. To do that, the script unmounts the volume, copies a branch to the empty volume, calls system sync, clears the system cache and starts duplicating / copying that branch. Basically, all caching is bypassed this way.

Hardware: 3ware 9690 8ai, Raid 6, 8*2TB SATA disks, Intel S5520hc board, 3*4G RAM (Triple channel)

System: gentoo linux Kernel 2.6.32 (64bit)

Test Volume: ~11,9 TB (varied due to varying file systems), read ahead 16384 (blockdev –setra)

Results:

m:ss fs + mount options
1:26 ext4 noatime,data=writeback,barrier=0,nobh,0 2 (–setra 16384)
1:32 ext4 noatime,data=writeback,barrier=0,nobh,0 2 (–setra 256)
2:07 xfs noatime
2:08 xfs noatime,nodiratime,nobarrier,logbufs=8
2:11 xfs noatime,nodiratime,logbufs=8
5:02 jfs noatime
0:00 reiserfs3 failed with I/O error

Conclusion

To be honest, we wanted to switch from Reiser (used for years) to XFS or JFS. But we thought since EXT4 got a couple of nice reviews, we give it a try. Reiser is not an option for a production environment at the moment since a server needs to work a couple of years and we have no clue on what’s gonna happen with ReiserFS in the future. So we needed to switch. Too bad reiser3 failed in the test. It gave an I/O error while copying. We tried 3 times (format, mount, run the test) – every time the journal got broken. So we gave up.

Since copying a Linux /usr branch involves all kinds of files with all kinds of sizes and permissions, that test delivered quite comparable results. I guess the biggest surprise was to see EXT4 winning by far. We did not measure throughput but rather the time it takes to execute overall. Good job, ext4!

April 26, 2010 / ffstefan

jFinalizer Update

Last week we have updated our free joomla plugin jFinalizer. This is a major update and adds more compatibility and performance improvements. We encourage all jFinalizer users to upgrade and try the new DeTab compression mode. Download site