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 -----
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 contains
<?php  phpinfo(); ?>

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

Reply via email to