View previous topic :: View next topic |
Author |
Message |
chaos421 n00b
Joined: 21 Jan 2003 Posts: 40
|
Posted: Mon Feb 10, 2003 4:41 pm Post subject: emerge : apache, php, mysql, ssl working together |
|
|
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 |
|
|
rizzo Retired Dev
Joined: 30 Apr 2002 Posts: 1067 Location: Manitowoc, WI, USA
|
Posted: Mon Feb 10, 2003 6:00 pm Post subject: |
|
|
have 'ssl' and 'mysql' in your USE flag.
then:
Code: | emerge mysql apache mod_php mod_ssl |
|
|
Back to top |
|
|
rizzo Retired Dev
Joined: 30 Apr 2002 Posts: 1067 Location: Manitowoc, WI, USA
|
Posted: Mon Feb 10, 2003 6:01 pm Post subject: Re: emerge : apache, php, mysql, ssl working together |
|
|
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 |
|
|
chaos421 n00b
Joined: 21 Jan 2003 Posts: 40
|
Posted: Mon Feb 10, 2003 6:39 pm Post subject: |
|
|
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 |
|
|
rizzo Retired Dev
Joined: 30 Apr 2002 Posts: 1067 Location: Manitowoc, WI, USA
|
Posted: Mon Feb 10, 2003 7:02 pm Post subject: |
|
|
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 |
|
|
chaos421 n00b
Joined: 21 Jan 2003 Posts: 40
|
Posted: Thu Feb 13, 2003 8:26 pm Post subject: |
|
|
i must have screwed up. here's what i did:
i added the following line to /etc/make.conf
then i executed the following:
Code: | emerge apache mod_php mod_ssl |
and finally:
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 |
|
|
rizzo Retired Dev
Joined: 30 Apr 2002 Posts: 1067 Location: Manitowoc, WI, USA
|
Posted: Thu Feb 13, 2003 8:31 pm Post subject: |
|
|
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 |
|
|
chaos421 n00b
Joined: 21 Jan 2003 Posts: 40
|
Posted: Thu Feb 13, 2003 8:36 pm Post subject: |
|
|
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 |
|
|
rizzo Retired Dev
Joined: 30 Apr 2002 Posts: 1067 Location: Manitowoc, WI, USA
|
Posted: Thu Feb 13, 2003 8:42 pm Post subject: |
|
|
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 |
|
|
chaos421 n00b
Joined: 21 Jan 2003 Posts: 40
|
Posted: Thu Feb 13, 2003 8:44 pm Post subject: |
|
|
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 |
|
|
chaos421 n00b
Joined: 21 Jan 2003 Posts: 40
|
|
Back to top |
|
|
|