Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Apache with PHP Configuration |
|
Author |
|
chkaufmann
Joined: 30 Aug 2018 Posts: 2 Location: Switzerland, Berne
|
Posted: Fri 31 Aug '18 10:39 Post subject: Apache with PHP Configuration |
|
|
Hi,
I have to setup Apache with PHP on a Win2012 Server. Data comes from a PostgreSQL database (using PDO driver) and there are about 100'000 pageviews each day.
Even after reading many posts and blogs, it's not easy for me to make the right decision:
* Apache 2.4: 64bit or 32bit?
* PHP 7.2.9: module or fastcgi?
Christian |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Fri 31 Aug '18 13:37 Post subject: |
|
|
Hi Christian,
in short: Apache 64 bit and PHP over mod_fcgid.
Long answer: For most users from AL PHP over mod_fcgid works much better than the module. Apache does not bloat in memory and the handling of static content is faster. For most users PHP NOT thread safe works ( which is a little faster than the thread safe variant). However some user including me have have PHP crashes and use the thread safe variant anyway. if PHP crashes or script runs amok apache will just start another PHP instance to handle the other requests. For me that works better than FPM. Plus you can run different PHP versions at the same time. For example for upgrading PHp and see if your software still works.
We have a tutorial how to set up apache with PHP[1]
if you still have a question please ask again.
[1] http://www.apachelounge.com/viewtopic.php?t=2394 |
|
Back to top |
|
|
|
|
|
|