View previous topic :: View next topic |
Author |
Message |
bicolao n00b
Joined: 05 Jan 2004 Posts: 50
|
Posted: Fri Nov 05, 2004 10:05 am Post subject: PHP5 CLI with Apache2 ? |
|
|
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 |
|
|
ragnoroc n00b
Joined: 08 May 2003 Posts: 49 Location: Columbus, OH
|
Posted: Fri Nov 05, 2004 9:23 pm Post subject: |
|
|
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 |
|
|
bicolao n00b
Joined: 05 Jan 2004 Posts: 50
|
Posted: Sat Nov 06, 2004 6:25 am Post subject: |
|
|
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 |
|
|
xces Guru
Joined: 11 Oct 2002 Posts: 515
|
Posted: Sat Nov 06, 2004 11:08 am Post subject: Re: PHP5 CLI with Apache2 ? |
|
|
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 |
|
|
alain- n00b
Joined: 24 Nov 2004 Posts: 25
|
Posted: Wed Nov 24, 2004 10:23 pm Post subject: |
|
|
@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 |
|
|
|