Link to home
Start Free TrialLog in
Avatar of Varun Malhotra
Varun Malhotra

asked on

How do Apache, PHP, and MySQL All Work Together?

This is something I am trying to grasp my head around.
Okay, so Apache simply servers files on a web server to clients. I fully understand that. But then if you install PHP, suddenly PHP code will be interpreted before those files are served by Apache. Then you install MySQL, and all of a sudden PHP can work directly with MySQL.

What is really done in the installation process that allows these three things to work so closely together? If Apache and PHP are separate programs, then how do they both work together on serving files?

Moreover, I understand that PHP is used to generate dynamic pages, but I've also heard people saying we're running a PHP based application.
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of gr8gonzo
gr8gonzo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Varun Malhotra
Varun Malhotra

ASKER

Thanks everyone. I now understand. And thanks for providing the links @Ray.....:)
Just a final note here:
Because some licensing problems, php's default interface with mysql databases is no more the one named mysql, but a different one named mysqli
Varun,

You should close this question now, allocating points to ansxer(s)