View previous topic :: View next topic |
Author |
Message |
milanuk n00b
Joined: 09 Nov 2003 Posts: 24 Location: North Central Washington
|
Posted: Sat Nov 29, 2003 5:17 am Post subject: php or mod_php? |
|
|
Hello,
For setting up a basic apache-php-mysql server, do I need to emerge php, or mod_php? Any benefits one way or the other?
TIA,
Monte |
|
Back to top |
|
|
dontremember Apprentice
Joined: 21 Sep 2002 Posts: 151 Location: Oklahoma
|
Posted: Sat Nov 29, 2003 5:56 am Post subject: Re: php or mod_php? |
|
|
milanuk wrote: | Hello,
For setting up a basic apache-php-mysql server, do I need to emerge php, or mod_php? Any benefits one way or the other?
TIA,
Monte |
mod_php gets loaded when Apache starts up, so when it serves up a php page, there's minimal initialization. Sticks in memory, though, so if you only have a few php pages, the memory usage may be unacceptable.
php can be used as a shell for CGI scripts, or as a standalone scripting language. I've got a couple of php scripts that run from cron, for example, and they don't have anything to do with web pages. It was convenient for string-handling and ease of MySQL access. As a CGI processor, it won't have the continual memory overhead, but it will take time to start up. |
|
Back to top |
|
|
milanuk n00b
Joined: 09 Nov 2003 Posts: 24 Location: North Central Washington
|
Posted: Sat Nov 29, 2003 10:13 pm Post subject: |
|
|
How much memory usage are we talking here? I'm looking at using this mainly on a small home server, a Celeron 266 w/ 64MB of RAM, but then again, I'm not planning on running a whole bunch of pages or having a lot of users (probably not more than 2 or 3) accessing it at the same time.
TIA,
Monte |
|
Back to top |
|
|
puggy Bodhisattva
Joined: 28 Feb 2003 Posts: 1992 Location: Oxford, UK
|
Posted: Sun Nov 30, 2003 7:24 pm Post subject: |
|
|
milanuk wrote: | How much memory usage are we talking here? I'm looking at using this mainly on a small home server, a Celeron 266 w/ 64MB of RAM, but then again, I'm not planning on running a whole bunch of pages or having a lot of users (probably not more than 2 or 3) accessing it at the same time.
TIA,
Monte |
Should be ok. But if you don't need it, save the RAM.
Puggy _________________ Where there's open source , there's a way. |
|
Back to top |
|
|
MacMasta Guru
Joined: 18 Apr 2002 Posts: 545 Location: Anchorage, AK
|
Posted: Sun Nov 30, 2003 10:38 pm Post subject: |
|
|
I've handled 3-5 users at a time on a pentium-200 with 32 megs of ram running apache, mysql, and php, so (for light loads) you'll be fine.
~Mac~ |
|
Back to top |
|
|
milanuk n00b
Joined: 09 Nov 2003 Posts: 24 Location: North Central Washington
|
Posted: Mon Dec 01, 2003 12:26 am Post subject: |
|
|
Well, I guess I'll go w/ mod_php then, and see how it goes. I have a feeling my php usage is going to be fairly light for a while to come
Thanks,
Monte |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|