Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge : apache, php, mysql, ssl working together
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
chaos421
n00b
n00b


Joined: 21 Jan 2003
Posts: 40

PostPosted: Mon Feb 10, 2003 4:41 pm    Post subject: emerge : apache, php, mysql, ssl working together Reply with quote

now i know how to do this when compiling the different packages by myself... but how can i get these guys to know about each other?

also, as a side note, is it possible to set the --prefix? or do we just have to let emerge stick stuff where it wants to?

thanks,
/keith
Back to top
View user's profile Send private message
rizzo
Retired Dev
Retired Dev


Joined: 30 Apr 2002
Posts: 1067
Location: Manitowoc, WI, USA

PostPosted: Mon Feb 10, 2003 6:00 pm    Post subject: Reply with quote

have 'ssl' and 'mysql' in your USE flag.

then:
Code:
emerge mysql apache mod_php mod_ssl
Back to top
View user's profile Send private message
rizzo
Retired Dev
Retired Dev


Joined: 30 Apr 2002
Posts: 1067
Location: Manitowoc, WI, USA

PostPosted: Mon Feb 10, 2003 6:01 pm    Post subject: Re: emerge : apache, php, mysql, ssl working together Reply with quote

chaos421 wrote:
also, as a side note, is it possible to set the --prefix? or do we just have to let emerge stick stuff where it wants to?


You can edit the ebuild file if you like. The ebuild already sets --prefix. For best results I highly recommend letting emerge do what it wants.
Back to top
View user's profile Send private message
chaos421
n00b
n00b


Joined: 21 Jan 2003
Posts: 40

PostPosted: Mon Feb 10, 2003 6:39 pm    Post subject: Reply with quote

rizzo wrote:
have 'ssl' and 'mysql' in your USE flag.

then:
Code:
emerge mysql apache mod_php mod_ssl


okay... so if i've already emerged mysql, can i just add ssl and mysql to the USE flag and run emerge apache mod_php mod_ssl?

thanks,
/keith
Back to top
View user's profile Send private message
rizzo
Retired Dev
Retired Dev


Joined: 30 Apr 2002
Posts: 1067
Location: Manitowoc, WI, USA

PostPosted: Mon Feb 10, 2003 7:02 pm    Post subject: Reply with quote

Yes that sounds fine. Basically mod_php needs to be compiled with the 'mysql' USE flag or it won't add in the mysql support.
Back to top
View user's profile Send private message
chaos421
n00b
n00b


Joined: 21 Jan 2003
Posts: 40

PostPosted: Thu Feb 13, 2003 8:26 pm    Post subject: Reply with quote

i must have screwed up. here's what i did:

Code:
emerge mysql


i added the following line to /etc/make.conf
Code:
USE="ssl mysql"


then i executed the following:
Code:
emerge apache mod_php mod_ssl


and finally:
Code:
emerge php


but when i check modules, i am disappointed:
Code:
#apache -l
Compiled-in modules:
  http_core.c
  mod_so.c
suexec: enabled; valid wrapper /usr/sbin/suexec


what am i missing?
Back to top
View user's profile Send private message
rizzo
Retired Dev
Retired Dev


Joined: 30 Apr 2002
Posts: 1067
Location: Manitowoc, WI, USA

PostPosted: Thu Feb 13, 2003 8:31 pm    Post subject: Reply with quote

You don't need to emerge php. Just mod_php.

And where did you "add" that USE line? I'm hoping you mean you added those vars to the existing USE var.

I recommend starting apache and seeing the head of the logs.
Back to top
View user's profile Send private message
chaos421
n00b
n00b


Joined: 21 Jan 2003
Posts: 40

PostPosted: Thu Feb 13, 2003 8:36 pm    Post subject: Reply with quote

nope. i added the line. just below one that was commented out as an example.

Code:
# Example:
#USE="X gtk gnome -alsa"
USE="ssl mysql"


/etc/apache/logs/error_log only contains errors related to the domain name (which i have yet to configure).

is /etc/make.conf not the correct place for the USE variable? any idea what i did wrong?
Back to top
View user's profile Send private message
rizzo
Retired Dev
Retired Dev


Joined: 30 Apr 2002
Posts: 1067
Location: Manitowoc, WI, USA

PostPosted: Thu Feb 13, 2003 8:42 pm    Post subject: Reply with quote

What version of apache are you using? If you are using apache 2 or greater, you need to have "apache2" in your USE var as well before building mod_php.
Back to top
View user's profile Send private message
chaos421
n00b
n00b


Joined: 21 Jan 2003
Posts: 40

PostPosted: Thu Feb 13, 2003 8:44 pm    Post subject: Reply with quote

rizzo wrote:
What version of apache are you using? If you are using apache 2 or greater, you need to have "apache2" in your USE var as well before building mod_php.


"emerge apache" appears to give you apache 1.3.27-r1
Back to top
View user's profile Send private message
chaos421
n00b
n00b


Joined: 21 Jan 2003
Posts: 40

PostPosted: Fri Feb 14, 2003 3:03 am    Post subject: Reply with quote

i found my answers here
https://forums.gentoo.org/viewtopic.php?t=10737
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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