Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
php or mod_php?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
milanuk
n00b
n00b


Joined: 09 Nov 2003
Posts: 24
Location: North Central Washington

PostPosted: Sat Nov 29, 2003 5:17 am    Post subject: php or mod_php? Reply with quote

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
View user's profile Send private message
dontremember
Apprentice
Apprentice


Joined: 21 Sep 2002
Posts: 151
Location: Oklahoma

PostPosted: Sat Nov 29, 2003 5:56 am    Post subject: Re: php or mod_php? Reply with quote

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
View user's profile Send private message
milanuk
n00b
n00b


Joined: 09 Nov 2003
Posts: 24
Location: North Central Washington

PostPosted: Sat Nov 29, 2003 10:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
puggy
Bodhisattva
Bodhisattva


Joined: 28 Feb 2003
Posts: 1992
Location: Oxford, UK

PostPosted: Sun Nov 30, 2003 7:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
MacMasta
Guru
Guru


Joined: 18 Apr 2002
Posts: 545
Location: Anchorage, AK

PostPosted: Sun Nov 30, 2003 10:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
milanuk
n00b
n00b


Joined: 09 Nov 2003
Posts: 24
Location: North Central Washington

PostPosted: Mon Dec 01, 2003 12:26 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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