logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.



Apache with PHP Configuration

 
Post new topic   Reply to topic    Apache Forum Index -> Other Software



View previous topic :: View next topic  
Author Message
chkaufmann



Joined: 30 Aug 2018
Posts: 2
Location: Switzerland, Berne

PostPosted: Fri 31 Aug '18 10:39    Post subject: Apache with PHP Configuration Reply with quote

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: 6484
Location: Germany, Next to Hamburg

PostPosted: Fri 31 Aug '18 13:37    Post subject: Reply with quote

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


Post new topic   Reply to topic    Apache Forum Index -> Other Software
Page 1 of 1