Sorry for the long post but I have include config files where appropriate. I have trierd for 4 days to get this combo to work and am at a complete
loss on what to try next.
Thanks for your help!

This post contains the following error and config files:

USE section from make.conf
ERROR MESSAGE from starting apache
apache.conf
end of my rc.conf for the line APACHE_OPTS="-D SSL -D PHP4"
mod_php.conf
mod_ssl.conf

I have emerged, re emerged and selectively emerged individual packages to satisfy dependencies. I have mod_ssl, apache, php all emerged with no problems except serving up pages via ssl and serving php pages.

SSL comes up with page not found and php info page comes up without being parsed and I do have the correct mime types entered-> .php .php3 .php4

Apache can serve up web pages from /home/httpd/htdocs. My section with the USE clause in make.conf follows:

I have even ran the ebuild script that makes the necessary changes to apache.conf I have commented the php section because starting apache with that section uncommented produces the following error and apache will not start with the php add module lines unless I comment or remove them:

###
### Global Configuration
###
# Splitting up apache.conf into two files makes it possible to support
# multiple configurations on the same serer. In commonapache.conf
# you keep directives that apply to all implementations and in this
# file you keep server-specific directives. While we don't yet have
# multiple configurations out-of-the-box, this allows us to do that
# in the future easily.
Include conf/commonapache.conf

###
### IP Address/Port
###
#BindAddress *
Port 80
Listen 80

###
### Log configuration Section
###
# Single logfile with access, agent and referer information
# This is the default, if vlogs are not defined for the main server
CustomLog logs/access_log combined env=!VLOG
# If VLOG is defined in conf/vhosts/Vhosts.conf, we use this entry
#CustomLog "|/usr/sbin/apachesplitlogfile" vhost env=VLOG

###
### Virtual Hosts
###
# We include different templates for Virtual Hosting. Have a look in the
# vhosts directory and modify to suit your needs.
#Include conf/vhosts/Vhosts.conf
#Include conf/vhosts/DynamicVhosts.conf
#Include conf/vhosts/VirtualHomePages.conf

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 15

#
# Server-pool size regulation. Rather than making you guess how many
# server processes you need, Apache dynamically adapts to the load it
# sees --- that is, it tries to maintain enough server processes to
# handle the current load, plus a few spare servers to handle transient
# load spikes (e.g., multiple simultaneous requests from a single
# Netscape browser).
#
# It does this by periodically checking how many servers are waiting
# for a request. If there are fewer than MinSpareServers, it creates
# a new spare. If there are more than MaxSpareServers, some of the
# spares die off. The default values are probably OK for most sites.
#
MinSpareServers 4
MaxSpareServers 10

#
# Number of servers to start initially --- should be a reasonable ballpark
# figure.
#
StartServers 4

#
# Limit on total number of servers running, i.e., limit on the number
# of clients who can simultaneously connect --- if this limit is ever
# reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.
# It is intended mainly as a brake to keep a runaway server from taking
# the system with it as it spirals down...
#
MaxClients 150

#
# MaxRequestsPerChild: the number of requests each child process is
# allowed to process before the child dies. The child will exit so
# as to avoid problems after prolonged use when Apache (and maybe the
# libraries it uses) leak memory or other resources. On most systems, this
# isn't really needed, but a few (such as Solaris) do have notable leaks
# in the libraries. For these platforms, set to something like 10000
# or so; a setting of 0 means unlimited.
#
# NOTE: This value does not include keepalive requests after the initial
# request per connection. For example, if a child process handles
# an initial request and 10 subsequent "keptalive" requests, it
# would only count as 1 request towards this limit.
#
MaxRequestsPerChild 500

Include conf/addon-modules/mod_php.conf
Include conf/addon-modules/mod_ssl.conf

#OLD SETTINGS; not currently supported
#SULOGIN=no # Set to yes if you want sulogin to be spawned on bootup
#DELAYLOGIN=yes # Set to no if you want to be able to login over telnet/rlogi
n
# before system startup is complete (as soon as inetd is star
ted)

Well, for starters, I think your USE settings are incorrect. There is no "mod_ssl" USE variable -- I believe you want just "ssl". Additionally, I'm not sure if USE variables are case-sensitive. If they are, then it should be "X" instead of "x".

Do you really need all those variables? You've got everything but the kitchen sink in there, including support for four different databases. Not sure if it will fix your problem, but certainl the less cruft that's installed, the less that can go wrong.

Just my $.02, though.

Finally, you might try searching the archives of the gentoo-user mailing list. I remember seeing some stuff about apache and ssl on there in the last couple of days. Might be worth a look.

--kurt_________________The problem with political jokes is that they get elected

Hi kurt, thanks for the response. I have checked the archives on apache ssl php libphp4.so etc-->anything relating to installing these beasts. Also there is a package for mod_ssl. I included everything but the kitchen sink on a reccomendation I read in a post not sure if on here or google...

I am still at a loss. I have never had this much of a problem getting apache php ssl mysql going. I am not a newbie but I am also not a linux guru!

Yes, but I don't think there's a use variable for it. Just because a package exists in Gentoo doesn't mean that you can control support for that package by sticking the package name in your use config.

Check /usr/portage/profiles/use.desc for a comprehensive list of use variables.

--kurt_________________The problem with political jokes is that they get elected