Re: PHP not interpreted.
Try again... Broken MTA settings meant the previous attempt got eaten somewhere... On Sun, Jul 06, 2003 at 01:21:41PM -0400, Bill Moran wrote: redmyrlin wrote: I originally had Apache 1.3.27 running OK with mod_php4. I decided to add SSL capability so uninstalled apache using pkg_delete -f . I then used make install in the ports tree to install apache+mod_ssl-1.3.27+2.8.14. Everything seemed to go OK and my plain html files display correctly, both on http and https. However when I point my browser at a .php page I get a text listing of the code and not the interpreted html page. I'm sure I've broken or misconfigured something and just need someone to point out my stupidity. Please, what have I done wrong and how can I correct it? The apache config file (in /usr/local/etc/apache/httpd.conf) no longer has the config information for php. I prefer to hack the Makefile in the ports to refer to apache+modssl instead of just apache, and then install php from ports (which modifies the conf file for you), but you can also manually add the required configuration information. See the php docs if you want to do it that way. I found a neat way of achieving the same thing with the portupgrade config file, /usr/local/etc/pkgtools.conf. It has the benefit that it won't get overwritten next time you cvsup your ports tree, so you won't have to risk forgetting to modify the Makefile for ports you install or upgrade. It is also a more general solution - this one change affects all ports that depend on apache13, not just those whose Makefiles you change. Look for ALT_PKGDEP, and add this: 'www/apache13' = 'www/apache13-modssl', with all quotes and commas intact. Effectively, it tells portupgrade to use apache13-modssl whenever a port claims dependency on apache13. I think this appeared in a fairly recent update to portupgrade, so you might need to portupgrade portupgrade... ;-) HTH Dan -- Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ pgp0.pgp Description: PGP signature
Re: PHP not interpreted.
Try again... First posting seems to have been eaten... ;-) On Sun, Jul 06, 2003 at 01:21:41PM -0400, Bill Moran wrote: redmyrlin wrote: I originally had Apache 1.3.27 running OK with mod_php4. I decided to add SSL capability so uninstalled apache using pkg_delete -f . I then used make install in the ports tree to install apache+mod_ssl-1.3.27+2.8.14. Everything seemed to go OK and my plain html files display correctly, both on http and https. However when I point my browser at a .php page I get a text listing of the code and not the interpreted html page. I'm sure I've broken or misconfigured something and just need someone to point out my stupidity. Please, what have I done wrong and how can I correct it? The apache config file (in /usr/local/etc/apache/httpd.conf) no longer has the config information for php. I prefer to hack the Makefile in the ports to refer to apache+modssl instead of just apache, and then install php from ports (which modifies the conf file for you), but you can also manually add the required configuration information. See the php docs if you want to do it that way. I found a neat way of achieving the same thing with the portupgrade config file, /usr/local/etc/pkgtools.conf. It has the benefit that it won't get overwritten next time you cvsup your ports tree, so you won't have to risk forgetting to modify the Makefile for ports you install or upgrade. It is also a more general solution - this one change affects all ports that depend on apache13, not just those whose Makefiles you change. Look for ALT_PKGDEP, and add this: 'www/apache13' = 'www/apache13-modssl', with all quotes and commas intact. Effectively, it tells portupgrade to use apache13-modssl whenever a port claims dependency on apache13. I think this appeared in a fairly recent update to portupgrade, so you might need to portupgrade portupgrade... ;-) HTH Dan -- Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ pgp0.pgp Description: PGP signature
Re: PHP not interpreted.
On Sun, Jul 06, 2003 at 01:21:41PM -0400, Bill Moran wrote: redmyrlin wrote: I originally had Apache 1.3.27 running OK with mod_php4. I decided to add SSL capability so uninstalled apache using pkg_delete -f . I then used make install in the ports tree to install apache+mod_ssl-1.3.27+2.8.14. Everything seemed to go OK and my plain html files display correctly, both on http and https. However when I point my browser at a .php page I get a text listing of the code and not the interpreted html page. I'm sure I've broken or misconfigured something and just need someone to point out my stupidity. Please, what have I done wrong and how can I correct it? The apache config file (in /usr/local/etc/apache/httpd.conf) no longer has the config information for php. I prefer to hack the Makefile in the ports to refer to apache+modssl instead of just apache, and then install php from ports (which modifies the conf file for you), but you can also manually add the required configuration information. See the php docs if you want to do it that way. I found a neat way of achieving the same thing with the portupgrade config file, /usr/local/etc/pkgtools.conf. It has the benefit that it won't get overwritten next time you cvsup your ports tree, so you won't have to risk forgetting to modify the Makefile for ports you install or upgrade. It is also a more general solution - this one change affects all ports that depend on apache13, not just those whose Makefiles you change. Look for ALT_PKGDEP, and add this: 'www/apache13' = 'www/apache13-modssl', with all quotes and commas intact. Effectively, it tells portupgrade to use apache13-modssl whenever a port claims dependency on apache13. I think this appeared in a fairly recent update to portupgrade, so you might need to portupgrade portupgrade... ;-) HTH Dan -- Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ pgp0.pgp Description: PGP signature
Re: PHP not interpreted.
~blush~ Sincere apologies for the noise... Once might have been interesting, three times is a bit brain-dead though. Sorry.. Dan -- Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ pgp0.pgp Description: PGP signature
PHP not interpreted.
I originally had Apache 1.3.27 running OK with mod_php4. I decided to add SSL capability so uninstalled apache using pkg_delete -f . I then used make install in the ports tree to install apache+mod_ssl-1.3.27+2.8.14. Everything seemed to go OK and my plain html files display correctly, both on http and https. However when I point my browser at a .php page I get a text listing of the code and not the interpreted html page. I'm sure I've broken or misconfigured something and just need someone to point out my stupidity. Please, what have I done wrong and how can I correct it? TIA Graeme ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: PHP not interpreted.
redmyrlin wrote: I originally had Apache 1.3.27 running OK with mod_php4. I decided to add SSL capability so uninstalled apache using pkg_delete -f . I then used make install in the ports tree to install apache+mod_ssl-1.3.27+2.8.14. Everything seemed to go OK and my plain html files display correctly, both on http and https. However when I point my browser at a .php page I get a text listing of the code and not the interpreted html page. I'm sure I've broken or misconfigured something and just need someone to point out my stupidity. Please, what have I done wrong and how can I correct it? The apache config file (in /usr/local/etc/apache/httpd.conf) no longer has the config information for php. I prefer to hack the Makefile in the ports to refer to apache+modssl instead of just apache, and then install php from ports (which modifies the conf file for you), but you can also manually add the required configuration information. See the php docs if you want to do it that way. -- Bill Moran Potential Technologies http://www.potentialtech.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
apache13-modssl + mod_php4, php not interpreted
Hello, I have a problem with php not being interpreted now that I have started using apache13-modssl instead of apache13. I am running freebsd 4.6-RELEASE. The procedure I went through was removing mod_php4 then removing apache. I then changed the dependency of mod_php4 to use apache13-modssl and recompiled. The web server starts fine using ssl but the php web pages are not interpreted. I have the following lines in my http.conf file which leads me to believe the php modules are being loaded --- IfDefine SSL LoadModule ssl_module libexec/apache/libssl.so LoadModule php4_modulelibexec/apache/libphp4.so /IfDefine . . . . IfDefine SSL AddModule mod_ssl.c AddModule mod_php4.c /IfDefine --- Does anybody have any ideas? Thanks, Nigel To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: apache13-modssl + mod_php4, php not interpreted
First, did you start your server with SSL? Second, unless you want php to run ONLY with SSL, I would move it out of that block so that it will start anytime. Lastly, make sure you have the following in your config. [...] DirectoryIndex index.php index.html [...] AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps [...] Tom Veldhouse - Original Message - From: Nigel Soon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 03, 2002 1:15 PM Subject: apache13-modssl + mod_php4, php not interpreted Hello, I have a problem with php not being interpreted now that I have started using apache13-modssl instead of apache13. I am running freebsd 4.6-RELEASE. The procedure I went through was removing mod_php4 then removing apache. I then changed the dependency of mod_php4 to use apache13-modssl and recompiled. The web server starts fine using ssl but the php web pages are not interpreted. I have the following lines in my http.conf file which leads me to believe the php modules are being loaded --- IfDefine SSL LoadModule ssl_module libexec/apache/libssl.so LoadModule php4_modulelibexec/apache/libphp4.so /IfDefine . . . . IfDefine SSL AddModule mod_ssl.c AddModule mod_php4.c /IfDefine --- Does anybody have any ideas? Thanks, Nigel To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: apache13-modssl + mod_php4, php not interpreted
Hi Tom, Thanks I was missing the 'Addtype ...' lines in my http.conf file. Once I added those and restarted the server everything worked. Thanks again, Nigel On Thu, 03 Oct 2002, Thomas T. Veldhouse wrote: First, did you start your server with SSL? Second, unless you want php to run ONLY with SSL, I would move it out of that block so that it will start anytime. Lastly, make sure you have the following in your config. [...] DirectoryIndex index.php index.html [...] AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps [...] Tom Veldhouse - Original Message - From: Nigel Soon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 03, 2002 1:15 PM Subject: apache13-modssl + mod_php4, php not interpreted Hello, I have a problem with php not being interpreted now that I have started using apache13-modssl instead of apache13. I am running freebsd 4.6-RELEASE. The procedure I went through was removing mod_php4 then removing apache. I then changed the dependency of mod_php4 to use apache13-modssl and recompiled. The web server starts fine using ssl but the php web pages are not interpreted. I have the following lines in my http.conf file which leads me to believe the php modules are being loaded --- IfDefine SSL LoadModule ssl_module libexec/apache/libssl.so LoadModule php4_modulelibexec/apache/libphp4.so /IfDefine . . . . IfDefine SSL AddModule mod_ssl.c AddModule mod_php4.c /IfDefine --- Does anybody have any ideas? Thanks, Nigel To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message