Re: [gentoo-user] PHP problems

2003-07-17 Thread Matt Broughton
hit the nail right on the head.

Thank you!

-Matt


- Original Message - 
From: "Andrew Dacey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 17, 2003 4:01 PM
Subject: Re: [gentoo-user] PHP problems


> - Original Message - 
> From: "Matt Broughton" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, July 17, 2003 12:24 AM
> Subject: Re: [gentoo-user] PHP problems
>
>
> > hrm...theres just one instance of each in /etc/config.d/apache
>
> Yes, but there can be more than one entry in /etc/apache/conf/apache.conf
> that has something like:
>
> 
>
> and each of those entries is going to try to load the the mod_php module.
My
> guess would be that you had done the ebuild step multiple times because
> that's what adds those entries in. Remove the extra entries and that
should
> get rid of the complaints about the module already being loaded.
>
> Andrew "frugal" Dacey
> [EMAIL PROTECTED]
> http://www.tildefrugal.net/
>
>
> --
> [EMAIL PROTECTED] mailing list
>
>


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] PHP problems

2003-07-17 Thread Andrew Dacey
- Original Message - 
From: "Matt Broughton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 17, 2003 12:24 AM
Subject: Re: [gentoo-user] PHP problems


> hrm...theres just one instance of each in /etc/config.d/apache

Yes, but there can be more than one entry in /etc/apache/conf/apache.conf
that has something like:



and each of those entries is going to try to load the the mod_php module. My
guess would be that you had done the ebuild step multiple times because
that's what adds those entries in. Remove the extra entries and that should
get rid of the complaints about the module already being loaded.

Andrew "frugal" Dacey
[EMAIL PROTECTED]
http://www.tildefrugal.net/


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] PHP problems

2003-07-16 Thread Matt Broughton



it appears that its trying to load mod_php 3 times 
for some reason.  
 
[warn] module php4_module is already loaded, 
skipping x3
[warn] module mod_php4.c is already added, skipping 
x3
 
 
 
- Original Message - 

  From: 
  Steven Ringwald 
  
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, July 16, 2003 11:55 
  PM
  Subject: Re: [gentoo-user] PHP 
  problems
  Matt Broughton wrote:
  



ok heres what happens...
 
I uncomment the APACHE_OPTS="-D SSL -D PHP4" 
line and /etc/init.d/apache restart
 
this pops up:
 
[warn] module php4_module is already loaded, skipping.[warn] module 
ssl_module is already loaded, skipping.[warn] module php4_module is 
already loaded skipping.[warn] module mod_php4.c is already added, 
skpping[warn] mod_ssl.c is already added, skipping[warn] mod_php4.c 
is already added, skipping[warn] _default_ VirtualHost overlap on port 
443, the first has precedence
 
and the server evidently doesnt start correctly 
(nothing will display)
 
if i comment that line back the server starts 
fine but the php document displays the php code unparsed (of 
course)
 
I cant figure out why when i uncomment that 
line its throwing all those warnings and refusing to start.
 Have you tried just enabling one or the other, 
  to narrow down which configuration section (the SSL or PHP) causes the bad 
  start-up?Steve Ringwald


Re: [gentoo-user] PHP problems

2003-07-16 Thread Steven Ringwald






Matt Broughton wrote:

  
  
  
  
  ok heres what happens...
   
  I uncomment the APACHE_OPTS="-D SSL
-D PHP4" line and /etc/init.d/apache restart
   
  this pops up:
   
  [warn] module php4_module is already loaded, skipping.
[warn] module ssl_module is already loaded, skipping.
[warn] module php4_module is already loaded skipping.
[warn] module mod_php4.c is already added, skpping
[warn] mod_ssl.c is already added, skipping
[warn] mod_php4.c is already added, skipping
[warn] _default_ VirtualHost overlap on port 443, the first has
precedence
   
  and the server evidently doesnt
start correctly (nothing will display)
   
  if i comment that line back the
server starts fine but the php document displays the php code unparsed
(of course)
   
  I cant figure out why when i
uncomment that line its throwing all those warnings and refusing to
start.
   

Have you tried just enabling one or the other, to narrow down which
configuration section (the SSL or PHP) causes the bad start-up?

Steve Ringwald




Re: [gentoo-user] PHP problems

2003-07-16 Thread Bryan D. Stine
The emerge unmerge part uninstalls it ;)

On Wed, 2003-07-16 at 23:48, Matt Broughton wrote:
> how would i go about uninstalling it? 
> 
> - Original Message - 
> From: "Bryan D. Stine" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, July 16, 2003 11:43 PM
> Subject: Re: [gentoo-user] PHP problems
> 
> 
> 
> --
> [EMAIL PROTECTED] mailing list
> 


signature.asc
Description: This is a digitally signed message part


Re: [gentoo-user] PHP problems

2003-07-16 Thread Matt Broughton
how would i go about uninstalling it? 

- Original Message - 
From: "Bryan D. Stine" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 16, 2003 11:43 PM
Subject: Re: [gentoo-user] PHP problems



--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] PHP problems

2003-07-16 Thread Bryan D. Stine
emerge unmerge mod_php ; emerge mod_php

Not sure if that would yield you any results, as this could just as
easily be an apache problem. Worth a try though, I guess.

On Wed, 2003-07-16 at 23:40, Matt Broughton wrote:
> I'm wondering if I should just uninstall mod_php and reinstall it...is there
> a simple way to do this?
> 
> 
> - Original Message - 
> From: "Matt Broughton" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, July 16, 2003 11:24 PM
> Subject: Re: [gentoo-user] PHP problems
> 
> 
> > hrm...theres just one instance of each in /etc/config.d/apache
> >
> >
> > - Original Message - 
> > From: "Andrew Dacey" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, July 16, 2003 11:21 PM
> > Subject: Re: [gentoo-user] PHP problems
> >
> >
> > > On 7/17/03 12:10 AM, "Matt Broughton" <[EMAIL PROTECTED]> wrote:
> > >
> > > > ok heres what happens...
> > > >
> > > > I uncomment the APACHE_OPTS="-D SSL -D PHP4" line and
> /etc/init.d/apache
> > > > restart
> > > >
> > > > this pops up:
> > > >
> > > > [warn] module php4_module is already loaded, skipping.
> > > > [warn] module ssl_module is already loaded, skipping.
> > > > [warn] module php4_module is already loaded skipping.
> > > > [warn] module mod_php4.c is already added, skpping
> > > > [warn] mod_ssl.c is already added, skipping
> > > > [warn] mod_php4.c is already added, skipping
> > > > [warn] _default_ VirtualHost overlap on port 443, the first has
> > precedence
> > > >
> > > > and the server evidently doesnt start correctly (nothing will display)
> > > >
> > > > if i comment that line back the server starts fine but the php
> document
> > > > displays the php code unparsed (of course)
> > > >
> > > > I cant figure out why when i uncomment that line its throwing all
> those
> > > > warnings and refusing to start.
> > >
> > > It looks as if the apache.conf (or apache2.conf) is set to load the php
> > and
> > > ssl modules multiple times. Edit the file and see if there's multiple
> > > entries for each of those modules and remove the duplicates. The other
> > > problem sounds like your virtual host configuration is messed up. This
> is
> > > probably from mod_ssl as it's config file adds in some virtual host
> > > configuration for ssl and may be conflicting with your other virtual
> > hosts.
> > >
> > > -- 
> > > Andrew "Frugal" Dacey
> > > [EMAIL PROTECTED]
> > > http://www.tildefrugal.net/
> > >
> > >
> > > --
> > > [EMAIL PROTECTED] mailing list
> > >
> > >
> >
> >
> > --
> > [EMAIL PROTECTED] mailing list
> >
> >
> 
> 
> --
> [EMAIL PROTECTED] mailing list
> 


signature.asc
Description: This is a digitally signed message part


Re: [gentoo-user] PHP problems

2003-07-16 Thread Matt Broughton
I'm wondering if I should just uninstall mod_php and reinstall it...is there
a simple way to do this?


- Original Message - 
From: "Matt Broughton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 16, 2003 11:24 PM
Subject: Re: [gentoo-user] PHP problems


> hrm...theres just one instance of each in /etc/config.d/apache
>
>
> - Original Message - 
> From: "Andrew Dacey" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, July 16, 2003 11:21 PM
> Subject: Re: [gentoo-user] PHP problems
>
>
> > On 7/17/03 12:10 AM, "Matt Broughton" <[EMAIL PROTECTED]> wrote:
> >
> > > ok heres what happens...
> > >
> > > I uncomment the APACHE_OPTS="-D SSL -D PHP4" line and
/etc/init.d/apache
> > > restart
> > >
> > > this pops up:
> > >
> > > [warn] module php4_module is already loaded, skipping.
> > > [warn] module ssl_module is already loaded, skipping.
> > > [warn] module php4_module is already loaded skipping.
> > > [warn] module mod_php4.c is already added, skpping
> > > [warn] mod_ssl.c is already added, skipping
> > > [warn] mod_php4.c is already added, skipping
> > > [warn] _default_ VirtualHost overlap on port 443, the first has
> precedence
> > >
> > > and the server evidently doesnt start correctly (nothing will display)
> > >
> > > if i comment that line back the server starts fine but the php
document
> > > displays the php code unparsed (of course)
> > >
> > > I cant figure out why when i uncomment that line its throwing all
those
> > > warnings and refusing to start.
> >
> > It looks as if the apache.conf (or apache2.conf) is set to load the php
> and
> > ssl modules multiple times. Edit the file and see if there's multiple
> > entries for each of those modules and remove the duplicates. The other
> > problem sounds like your virtual host configuration is messed up. This
is
> > probably from mod_ssl as it's config file adds in some virtual host
> > configuration for ssl and may be conflicting with your other virtual
> hosts.
> >
> > -- 
> > Andrew "Frugal" Dacey
> > [EMAIL PROTECTED]
> > http://www.tildefrugal.net/
> >
> >
> > --
> > [EMAIL PROTECTED] mailing list
> >
> >
>
>
> --
> [EMAIL PROTECTED] mailing list
>
>


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] PHP problems

2003-07-16 Thread Matt Broughton
hrm...theres just one instance of each in /etc/config.d/apache


- Original Message - 
From: "Andrew Dacey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 16, 2003 11:21 PM
Subject: Re: [gentoo-user] PHP problems


> On 7/17/03 12:10 AM, "Matt Broughton" <[EMAIL PROTECTED]> wrote:
>
> > ok heres what happens...
> >
> > I uncomment the APACHE_OPTS="-D SSL -D PHP4" line and /etc/init.d/apache
> > restart
> >
> > this pops up:
> >
> > [warn] module php4_module is already loaded, skipping.
> > [warn] module ssl_module is already loaded, skipping.
> > [warn] module php4_module is already loaded skipping.
> > [warn] module mod_php4.c is already added, skpping
> > [warn] mod_ssl.c is already added, skipping
> > [warn] mod_php4.c is already added, skipping
> > [warn] _default_ VirtualHost overlap on port 443, the first has
precedence
> >
> > and the server evidently doesnt start correctly (nothing will display)
> >
> > if i comment that line back the server starts fine but the php document
> > displays the php code unparsed (of course)
> >
> > I cant figure out why when i uncomment that line its throwing all those
> > warnings and refusing to start.
>
> It looks as if the apache.conf (or apache2.conf) is set to load the php
and
> ssl modules multiple times. Edit the file and see if there's multiple
> entries for each of those modules and remove the duplicates. The other
> problem sounds like your virtual host configuration is messed up. This is
> probably from mod_ssl as it's config file adds in some virtual host
> configuration for ssl and may be conflicting with your other virtual
hosts.
>
> -- 
> Andrew "Frugal" Dacey
> [EMAIL PROTECTED]
> http://www.tildefrugal.net/
>
>
> --
> [EMAIL PROTECTED] mailing list
>
>


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] PHP problems

2003-07-16 Thread Andrew Dacey
On 7/17/03 12:10 AM, "Matt Broughton" <[EMAIL PROTECTED]> wrote:

> ok heres what happens...
> 
> I uncomment the APACHE_OPTS="-D SSL -D PHP4" line and /etc/init.d/apache
> restart
> 
> this pops up:
> 
> [warn] module php4_module is already loaded, skipping.
> [warn] module ssl_module is already loaded, skipping.
> [warn] module php4_module is already loaded skipping.
> [warn] module mod_php4.c is already added, skpping
> [warn] mod_ssl.c is already added, skipping
> [warn] mod_php4.c is already added, skipping
> [warn] _default_ VirtualHost overlap on port 443, the first has precedence
> 
> and the server evidently doesnt start correctly (nothing will display)
> 
> if i comment that line back the server starts fine but the php document
> displays the php code unparsed (of course)
> 
> I cant figure out why when i uncomment that line its throwing all those
> warnings and refusing to start.

It looks as if the apache.conf (or apache2.conf) is set to load the php and
ssl modules multiple times. Edit the file and see if there's multiple
entries for each of those modules and remove the duplicates. The other
problem sounds like your virtual host configuration is messed up. This is
probably from mod_ssl as it's config file adds in some virtual host
configuration for ssl and may be conflicting with your other virtual hosts.

-- 
Andrew "Frugal" Dacey
[EMAIL PROTECTED]
http://www.tildefrugal.net/


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] PHP problems

2003-07-16 Thread Matt Broughton



ok heres what happens...
 
I uncomment the APACHE_OPTS="-D SSL -D PHP4" line 
and /etc/init.d/apache restart
 
this pops up:
 
[warn] module php4_module is already loaded, skipping.[warn] module 
ssl_module is already loaded, skipping.[warn] module php4_module is already 
loaded skipping.[warn] module mod_php4.c is already added, skpping[warn] 
mod_ssl.c is already added, skipping[warn] mod_php4.c is already added, 
skipping[warn] _default_ VirtualHost overlap on port 443, the first has 
precedence
 
and the server evidently doesnt start correctly 
(nothing will display)
 
if i comment that line back the server starts fine 
but the php document displays the php code unparsed (of course)
 
I cant figure out why when i uncomment that line 
its throwing all those warnings and refusing to start.
 
 

  - Original Message - 
  From: 
  Steven R. Ringwald 
  
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, July 16, 2003 10:46 
  PM
  Subject: Re: [gentoo-user] PHP 
  problems
  Matt Broughton wrote:
  

Ok, I've emerged Apache, PHP, mod_php, and mod_ssl and installed them 
exactly like the how-to on gentoos website states.  Apache is working 
nicely, but only with HTML documents.  It refuses to parse the PHP docs 
and does not start SSL either.  Ok. On the php 
  documents. Does it actually show you 
  the php document source code? (This would imply that it is not an file access 
  issue). Does the log indicate that the mod_php*.so was loaded with no errors? 
  Do you have PHP4 and SSL enabled in the /etc/conf.d/apache file? 
  
Anyone have this problem?  Also, once I get that working, how do I 
get MySQL to work with it?  I've got mysql installed and working 
nicely...just dont know if i need to put anything in the apache config 
files. When you get the apache server to use mod_php, 
  create a page called test.php (or something) that just 
  containsWhen you look at this in a 
  browser, if there is a section for MySQL, then you have everything you need to 
  access the SQL server and make web-pages. I would then direct you to http://www.php.net, 
  and the documentation link for the function reference and usage.Steve 
  Ringwald


Re: [gentoo-user] PHP problems

2003-07-16 Thread Steven R. Ringwald




Matt Broughton wrote:

  
   Ok, I've emerged Apache, PHP, mod_php, and mod_ssl and
installed them exactly like the how-to on gentoos website states. 
Apache is working nicely, but only with HTML documents.  It refuses to
parse the PHP docs and does not start SSL either.  


Ok. On the php documents. Does it actually show you the php document source
code? (This would imply that it is not an file access issue). Does the
log indicate that the mod_php*.so was loaded with no errors? Do you
have PHP4 and SSL enabled in the /etc/conf.d/apache file? 



  Anyone have this problem?  Also, once I get that working, how do
I get MySQL to work with it?  I've got mysql installed and working
nicely...just dont know if i need to put anything in the apache config
files. 


When you get the apache server to use mod_php, create a page called
test.php (or something) that just contains


When you look at this in a browser, if there is a section for MySQL,
then you have everything you need to access the SQL server and make
web-pages. I would then direct you to http://www.php.net, and the
documentation link for the function reference and usage.

Steve Ringwald




Re: [gentoo-user] PHP problems

2003-07-16 Thread Matt Broughton

says 

[warn] module php4_module is already loaded, skipping.
[warn] module ssl_module is already loaded, skipping.
[warn] module php4_module is already loaded skipping.
[warn] module mod_php4.c is already added, skpping
[warn] mod_ssl.c is already added, skipping
[warn] mod_php4.c is already added, skipping
[warn] _default_ VirtualHost overlap on port 443, the first has precedence


- Original Message - 
From: "Bryan D. Stine" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 16, 2003 10:15 PM
Subject: Re: [gentoo-user] PHP problems



--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] PHP problems

2003-07-16 Thread Bryan D. Stine
Do the apache logs show the modules being loaded?

On Wed, 2003-07-16 at 22:13, Matt Broughton wrote:
> I have that in there, and its uncommented.  I've restarted the server
> multiple times, but no luck.
> 
> 
> - Original Message - 
> From: "Bryan D. Stine" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, July 16, 2003 10:09 PM
> Subject: Re: [gentoo-user] PHP problems
> 
> 
> 
> --
> [EMAIL PROTECTED] mailing list
> 


signature.asc
Description: This is a digitally signed message part


Re: [gentoo-user] PHP problems

2003-07-16 Thread Matt Broughton
I have that in there, and its uncommented.  I've restarted the server
multiple times, but no luck.


- Original Message - 
From: "Bryan D. Stine" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 16, 2003 10:09 PM
Subject: Re: [gentoo-user] PHP problems



--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] PHP problems

2003-07-16 Thread Bryan D. Stine
You need to edit /etc/conf.d/apache (or apache2, depending on which
version you have) and add to that -D PHP4 and -D SSL (don't forget to
uncomment the line.

On Wed, 2003-07-16 at 21:52, Matt Broughton wrote:
> Ok, I've emerged Apache, PHP, mod_php, and mod_ssl and installed them
> exactly like the how-to on gentoos website states.  Apache is working
> nicely, but only with HTML documents.  It refuses to parse the PHP
> docs and does not start SSL either.  Anyone have this problem?  Also,
> once I get that working, how do I get MySQL to work with it?  I've got
> mysql installed and working nicely...just dont know if i need to put
> anything in the apache config files.
>  
> Thanks!
> Matt


signature.asc
Description: This is a digitally signed message part