Solved

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

Posted on 2011-02-20
11
279 Views
Last Modified: 2012-06-27
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 !
0
Comment
Question by:Eduardo Fuerte
11 Comments
 
LVL 4

Expert Comment

by:andreizz
ID: 34936997
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.
0
 
LVL 27

Accepted Solution

by:
Lukasz Chmielewski earned 167 total points
ID: 34937338
0
 
LVL 109

Assisted Solution

by:Ray Paseur
Ray Paseur earned 166 total points
ID: 34937726
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.
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 39

Assisted Solution

by:Aaron Tomosky
Aaron Tomosky earned 167 total points
ID: 34937741
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.
0
 

Author Comment

by:Eduardo Fuerte
ID: 34951177
Hello

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.
0
 
LVL 2

Expert Comment

by:karthi4all
ID: 34958809
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.
0
 

Author Comment

by:Eduardo Fuerte
ID: 34960540
Ok, but my doubt remains in the possibility of server application like JBoss from PHP.
0
 
LVL 2

Expert Comment

by:karthi4all
ID: 34967687
Like said before PHP is a server language which runs on apache & PHP Interpreter,  Where JBoss is a java application server
0
 

Author Comment

by:Eduardo Fuerte
ID: 34968692
My doubt is: Does PHP could use something similar (not exactly JBoss)

JavaEE : Tomcat + JBoss (and many others)
PHP:       Apache + (???)
0
 
LVL 2

Expert Comment

by:karthi4all
ID: 34979702
As I mentioned before, for PHP to work, You will need Apache and PHP Interpreter.

The following link has the PHP interpreter

http://www.php.net/

According to your OS choose binaries in download section in the above provided link.
0
 

Author Closing Comment

by:Eduardo Fuerte
ID: 34980982
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
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question