Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PHP5 CLI with Apache2 ?
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
bicolao
n00b
n00b


Joined: 05 Jan 2004
Posts: 50

PostPosted: Fri Nov 05, 2004 10:05 am    Post subject: PHP5 CLI with Apache2 ? Reply with quote

I have installed PHP5 CLI. It works fine (running from command line is ok). I want to make apache2 run php cli for files .php5. Apache2 is still running with mod_php-4 for .php
Is there any instruction to do this?
_________________
Bi Cờ Lao
Back to top
View user's profile Send private message
ragnoroc
n00b
n00b


Joined: 08 May 2003
Posts: 49
Location: Columbus, OH

PostPosted: Fri Nov 05, 2004 9:23 pm    Post subject: Reply with quote

Have you checked to make sure that mod_php is version 5?

bash-2.05b# emerge -p mod_php

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild R ] dev-php/mod_php-4.3.9

That should be mod_php-5.0.x . If you already have mod_php 5 installed then check your /etc/apache2/conf/apache2.conf and see if the php5 library is loaded. It should look something like the line below:

bash-2.05b# grep php apache2.conf
LoadModule php5_module modules/libphp5.so
Back to top
View user's profile Send private message
bicolao
n00b
n00b


Joined: 05 Jan 2004
Posts: 50

PostPosted: Sat Nov 06, 2004 6:25 am    Post subject: Reply with quote

No I don't want to install mod_php5 because doing that would remove mod_php4. I want to run both together so i installed php-5 only without mod_php-5.
_________________
Bi Cờ Lao
Back to top
View user's profile Send private message
xces
Guru
Guru


Joined: 11 Oct 2002
Posts: 515

PostPosted: Sat Nov 06, 2004 11:08 am    Post subject: Re: PHP5 CLI with Apache2 ? Reply with quote

bicolao wrote:
I have installed PHP5 CLI. It works fine (running from command line is ok). I want to make apache2 run php cli for files .php5. Apache2 is still running with mod_php-4 for .php
Is there any instruction to do this?

Are you sure you don't mix up php-cli and php-cgi?
Back to top
View user's profile Send private message
alain-
n00b
n00b


Joined: 24 Nov 2004
Posts: 25

PostPosted: Wed Nov 24, 2004 10:23 pm    Post subject: Reply with quote

@xces: have you installed suexec? i think you ought to have that running.

i would be very interested in a docu for setting up apache2 w/php-cgi. does anyone have a hint on a tutorial/howto for that?

thanks
alain
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