• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 298
  • Last Modified:

How much PHP server is scalable compared with the other web application servers ?

Hi Experts

I'd like to know how much PHP server is scalable compared with the other web application servers like Tomcat etc...

(Let's say If a application grows up from 50 to 1,000 users connected)

Thanks in advance !
Eduardo Fuerte
Eduardo Fuerte
3 Solutions
Well it depends on your script mostly, but since i launched my website info.tm.edu.ro, from 0 day when i had 0 users to now when i have 2000 i didn't have to do a thing.
Ray PaseurCommented:
Facebook is a PHP machine, as are many parts of Yahoo.  So if your site is going to be bigger than Facebook, you might need an alternative.  Until then, you will be able to do anything you want with PHP, without any risk of performance problems.

As a practical matter, the performance of your site will depend on the I/O subsystem, not the scripting language you choose.  In web applications that almost always means the data base.  Index your data base appropriately, write your queries correctly, use normalization and you will be fine.  When it comes time to start looking for high-performance options, consider APC and memcacheD.
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Aaron TomoskyTechnology ConsultantCommented:
Don't confuse the webserver with the serverSide language. Iis and apache are web servers. Apache can use php or ruby or many other languages as it's server side language. Iis can do .net but also php and other languages. Tomcat is a special program that runs jsp (java server pages) and while it can run on its own, it's usually paired with apache.
Eduardo FuerteAuthor Commented:

So as I understood  the point is:
Saying all script issues are well solved DB well designed, etc,..)
Scalability/ performance  is a matter of load balancing, I/O optimization, server capacity - in a word infrastructure solutions - ok ?

Only for my knowing and to conclude:

I've thought  that Java   technologies due the use of EJB (and it's special application server) could give a better scalability results. By the way PHP could use an similar resource ?
Thanks again.
Java fits for other purposes.

In project manager's view, its easy to train team and bring productivity on php side for some projects*.

If I want scalability, load balancing can be done within php itself just like facebook did.
Eduardo FuerteAuthor Commented:
Ok, but my doubt remains in the possibility of server application like JBoss from PHP.
Like said before PHP is a server language which runs on apache & PHP Interpreter,  Where JBoss is a java application server
Eduardo FuerteAuthor Commented:
My doubt is: Does PHP could use something similar (not exactly JBoss)

JavaEE : Tomcat + JBoss (and many others)
PHP:       Apache + (???)
As I mentioned before, for PHP to work, You will need Apache and PHP Interpreter.

The following link has the PHP interpreter


According to your OS choose binaries in download section in the above provided link.
Eduardo FuerteAuthor Commented:
I had a technichal question but I think it's been misunderstood.
I'm actually owning a PHP/ Flash website - all developed by me. Few years ago I've got the needed software.
JavaEE can use two kinds  web servers Tomcat and  Jboss (and others) each one with different purposes with performance improvement.
My doubt was about  PHP could use the second kind of web server (It doesn't need to be of a JavaEE flavor)
I'm assuming PHP uses only Apache
Thank you for the significant technical replies (but  partial) about my doubts
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now