Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an Ubuntu EC2 instance on amazon.
The instance has an apache2 webserver serving php5 code.
I'm using APC for op-code caching, Zend Framework as my framework, and Doctrine 2.2 as my ORM.

I know there are other bottlenecks, however I am asking specifically regarding the php files aspect.
I'm using memcache for db caching and configuration files caching (if any); I'm using a CDN for static files serving; And I'm well aware of the wait for external responses such as facebook api, etc..

Which filesystems are better for serving php code ?

share|improve this question

The filesystem you use should not matter. Your bottleneck will be something other, such as database, some external resource your scripts will query, or something completely else.

share|improve this answer
I've edited the question. The question was specifically regarding the php files loading. – Doron Feb 27 '12 at 12:58
My comment still remains. A simple fopen() of your PHP files is not very performance intensive stuff to do. Everything else after that is up to PHP and the upper layers anyway, and has nothing to do with the filesystem of your choice. – Janne Pikkarainen Feb 27 '12 at 13:37
So choosing between xfs, ext3 and ext4 will have no effect whatsoever on the performance of my site ? (if that is the only difference) – Doron Feb 27 '12 at 13:46
Correct, it will have no effect whatsoever. – sciurus Feb 28 '12 at 3:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.