Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Need Php support with Apache
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
Yamakasi
Apprentice
Apprentice


Joined: 28 Sep 2002
Posts: 201

PostPosted: Sat Sep 28, 2002 11:28 pm    Post subject: Need Php support with Apache Reply with quote

hi,

I have installed Apache/1.3.26 Server and then I have installed Squirrelmail.
Both using :

emerge apache
and
emerge squirrelmail

However Squirrelmail requires Php support. Apache wasnt installed with php support :(
How do I add php support with apache?

Thanks
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sat Sep 28, 2002 11:33 pm    Post subject: Reply with quote

How about
Code:
# emerge mod_php

_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Sat Sep 28, 2002 11:53 pm    Post subject: Reply with quote

Be sure to edit /etc/conf.d/apache (APACHE_OPTS="-D PHP4") as well.
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
Yamakasi
Apprentice
Apprentice


Joined: 28 Sep 2002
Posts: 201

PostPosted: Sat Sep 28, 2002 11:59 pm    Post subject: Reply with quote

I made

Code:
emerge mod_php


this module was already installed :(

and I have uncomment the line in my /etc/conf.d/apache file

Code:
APACHE_OPTS="-D SSL -D PHP4"


I have restarted apache service, but Im still viewing the php code in my browser :(
Back to top
View user's profile Send private message
El_Presidente_Pufferfish
Veteran
Veteran


Joined: 11 Jul 2002
Posts: 1179
Location: Seattle

PostPosted: Sun Sep 29, 2002 12:04 am    Post subject: Reply with quote

did you do the ebuild blahblahblah that php tells you to do after you emerge it?
Back to top
View user's profile Send private message
Yamakasi
Apprentice
Apprentice


Joined: 28 Sep 2002
Posts: 201

PostPosted: Sun Sep 29, 2002 12:38 am    Post subject: Reply with quote

didnt do the ebuilt

where can find the instructions?

thanks
Back to top
View user's profile Send private message
kyptin
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jun 2002
Posts: 95
Location: UNC (Chapel Hill, NC, USA)

PostPosted: Sun Sep 29, 2002 1:26 am    Post subject: re-emerge php Reply with quote

I suspect you could just
Code:
emerge php
It oughta run the ebuild again (hopefully not compiling everything again), and display the extra instructions afterwards. I'd tell you for sure, except I haven't (yet) installed php.

Another thing to try is to see if there's some documentation in /usr/share/doc/php-blahblahblah. There might be an "INSTALL" you could look over, I suspect that would at least point you in the right direction.

Hope this helps! Maybe when I emerge php I can be more specific....
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sun Sep 29, 2002 1:58 am    Post subject: Re: re-emerge php Reply with quote

kyptin wrote:
I suspect you could just
Code:
emerge php

php != mod_php.

Yamakasi, run
Code:
# ebuild /var/db/pkg/dev-php/PF/PF.ebuild config
...replacing PF with the name of the actual version of mod_php you have installed. Your shell's tab completion should hopefully make this easy.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Pindrop
Apprentice
Apprentice


Joined: 09 Jul 2002
Posts: 165
Location: Virginia, USA

PostPosted: Sun Sep 29, 2002 2:11 am    Post subject: Reply with quote

What's the difference between mod_php and php?
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sun Sep 29, 2002 2:12 am    Post subject: Reply with quote

Pindrop wrote:
What's the difference between mod_php and php?

mod_php is an Apache module. php is the standalone PHP interpreter.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
kyptin
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jun 2002
Posts: 95
Location: UNC (Chapel Hill, NC, USA)

PostPosted: Sun Sep 29, 2002 5:08 pm    Post subject: usefulness of php? Reply with quote

rac wrote:
Pindrop wrote:
What's the difference between mod_php and php?

mod_php is an Apache module. php is the standalone PHP interpreter.


I got to thinking about it, and the only time I have ever used PHP is through apache, i.e. through mod_php, and I can't think of any other way to use it. Is PHP by itself useful? Can you install mod_php without php? Just curious.
Back to top
View user's profile Send private message
giant
Tux's lil' helper
Tux's lil' helper


Joined: 01 Aug 2002
Posts: 107

PostPosted: Sun Sep 29, 2002 5:48 pm    Post subject: Reply with quote

You can write php shell scripts.
For that you need php installed.

For apache you only need the mod_php really.
Back to top
View user's profile Send private message
kyptin
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jun 2002
Posts: 95
Location: UNC (Chapel Hill, NC, USA)

PostPosted: Tue Oct 01, 2002 4:46 am    Post subject: Reply with quote

giant wrote:
You can write php shell scripts.
For that you need php installed.

For apache you only need the mod_php really.


Wow! You can write php shell scripts?! :D I'm so gonna start doing that! PHP OWNZ! I just found out today I could make pdf files dynamically on the fly....wow. (If you want to see PHP and PostgreSQL in action, check out my site, http://ric.uark.edu/. That's why I love PHP so much: I can do so much with it so easily!)
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