Click to See Complete Forum and Search --> : PHP/SSL not working


Anon
04-14-2002, 05:12 PM
Apache-1.3.24, RH 7.2, MySQL, PHP4

I have a bit of a problem that because of my relative lack of experience with PHP, I am having trouble fixing. When I view a php page all I see is text. Now, I have seached thru the archives and most people point to the httpd.conf file saying there is a config error. I have gone thru the file and it all appears fine. I have even tried to comment out the <IF DEFINE> tags so that the modules always load but to no avail. The funny thing is that everything including SSL was working fine but something seems to have broken the installation. The other weird thing is that SSL does not seem to be working anymore either. Wehn I view the server default page it is fine unless I try to use https and then it cannot find the index page. There does not seem to be any logs to help troubleshoot and so I am wondering if anyone out there cvan give me some guidance, short of re-installation, on how to troubleshoot and get this working again. One hint is that I have been generating some dsa keys for use with rsync so maybe I broke something with the SSL because of that. I am a bit confused here so any help would be appreciated.

Cheers

Dave

Anon
04-14-2002, 08:37 PM
okay, php:
first you need to have the module loaded: so you should have a line in httpd.conf tht looks like this:

LoadModule php4_module libexec/libphp4.so

farther down there will be a lot of add module calls... you gotta have on for php too:

AddModule mod_php4.c

of course apache needs to know that files that end with php are php files, so you need this line too:

AddType application/x-httpd-php .php

as far as ssl goes... have you added any virt hosts since the last time it worked?