Re: [PHP] Apache 1.3/PHP
Tom Ray [List] wrote: As far as AddType goes for PHP this is what I have: AddType application/x-httpd-php3 .php3 AddType application/x-httpd-php3-source .php3s AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps AddType application/x-httpd-php3-source .php3s <--- Here <--- Here AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps Apache started with no problems with that config? I added the AddType line outside of that and it's still not working. Thanks for the suggestion, please if you have any others I would love to know. I'm going to need to build a couple more FreeBSD boxes soon, and I want to have those go a little smoother :) How did you compile Apache / php? DSO? -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [users@httpd] Re: [PHP] Apache 1.3/PHP
Tom Ray [List] wrote: >[snip...] > >AddType application/x-httpd-php .php >AddType application/x-httpd-php-source .phps > > >AddType application/x-httpd-php3-source .php3s > > Seems you have two ''s in continuation. Did you restart your appache server and did not get a complaint? > >AddType application/x-httpd-php .php >AddType application/x-httpd-php-source .phps > > > Also here, you have repeated the pair. So, somehow your httpd.conf is messed up. >I added the AddType line outside of that and it's still not working. Thanks for the >suggestion, please if you have any >others I would love to know. I'm going to need to build a couple more FreeBSD boxes >soon, and I want to have those go a >little smoother :) > > Also, I noticed in your original mail that you installed php as CGI not as module, have you tried to put your testing php file to the CGI directory after adding .php as a CGI extension? BTW, you are cross posting, but it seems your question is closely related to the both lists. Best Bao >Thanks again, >Tom > >-Original Message- >From: BAO RuiXian <[EMAIL PROTECTED]> >To: "Tom Ray [List]" <[EMAIL PROTECTED]> >Cc: PHP General <[EMAIL PROTECTED]>, [EMAIL PROTECTED] >Date: Fri, 23 Jan 2004 00:11:42 +0200 >Subject: Re: [PHP] Apache 1.3/PHP > > > >>Tom Ray [List] wrote: >> >> >> >>>[snip]... >>> >>>>>print "Test 123"; >>>?> >>> >>>I'm sure I'm missing a line or two in my httpd.conf, but I really don't know what >>>they would be. Anyone with >>> >>> >>experience >> >> >>>with FreeBSD/Apache/PHP give me a hand? >>> >>> >>> >>> >>Do you have the following line in your httpd.conf: >> >>AddType application/x-httpd-php .php >> >>Best >> >>Bao >> >> > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache 1.3/PHP
--- "Tom Ray [List]" <[EMAIL PROTECTED]> wrote: > As far as AddType goes for PHP this is what I have: [snip] > > AddType application/x-httpd-php .php > AddType application/x-httpd-php-source .phps > My bet is that you didn't build Apache with PHP support, so it skips the AddType directives due to failing the IfModule. Which installation instructions did you follow? The manual at php.net has some good examples that should work for you. Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security Handbook Coming mid-2004 HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache 1.3/PHP
--- "Tom Ray [List]" <[EMAIL PROTECTED]> wrote: > It seems that everything is ok, but when I try to use a .php > file it does not run it through the parser. Make sure this is in your httpd.conf: AddType application/x-httpd-php .php Of course, also make sure you have PHP. :-) Chris = Chris Shiflett - http://shiflett.org/ PHP Security Handbook Coming mid-2004 HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [users@httpd] Re: [PHP] Apache 1.3/PHP
"Tom Ray [List]" <[EMAIL PROTECTED]To: "BAO RuiXian" <[EMAIL PROTECTED]>, "PHP General" os.com> <[EMAIL PROTECTED]>, [EMAIL PROTECTED] cc: 01/22/2004 05:25 Subject: [EMAIL PROTECTED] Re: [PHP] Apache 1.3/PHP PM Please respond to users As far as AddType goes for PHP this is what I have: AddType application/x-httpd-php3 .php3 AddType application/x-httpd-php3-source .php3s AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps AddType application/x-httpd-php3-source .php3s AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps are your AddModule and LoadModule directives uncommented in httpd.conf? your post suggests it but... I added the AddType line outside of that and it's still not working. Thanks for the suggestion, please if you have any others I would love to know. I'm going to need to build a couple more FreeBSD boxes soon, and I want to have those go a little smoother :) Thanks again, Tom -Original Message- From: BAO RuiXian <[EMAIL PROTECTED]> To: "Tom Ray [List]" <[EMAIL PROTECTED]> Cc: PHP General <[EMAIL PROTECTED]>, [EMAIL PROTECTED] Date: Fri, 23 Jan 2004 00:11:42 +0200 Subject: Re: [PHP] Apache 1.3/PHP > > > Tom Ray [List] wrote: > > >[snip]... > > > > >print "Test 123"; > >?> > > > >I'm sure I'm missing a line or two in my httpd.conf, but I really don't know what they would be. Anyone with > experience > >with FreeBSD/Apache/PHP give me a hand? > > > > > Do you have the following line in your httpd.conf: > > AddType application/x-httpd-php .php > > Best > > Bao > > >TIA > > > >Tom > > > > > > - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache 1.3/PHP
As far as AddType goes for PHP this is what I have: AddType application/x-httpd-php3 .php3 AddType application/x-httpd-php3-source .php3s AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps AddType application/x-httpd-php3-source .php3s AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps I added the AddType line outside of that and it's still not working. Thanks for the suggestion, please if you have any others I would love to know. I'm going to need to build a couple more FreeBSD boxes soon, and I want to have those go a little smoother :) Thanks again, Tom -Original Message- From: BAO RuiXian <[EMAIL PROTECTED]> To: "Tom Ray [List]" <[EMAIL PROTECTED]> Cc: PHP General <[EMAIL PROTECTED]>, [EMAIL PROTECTED] Date: Fri, 23 Jan 2004 00:11:42 +0200 Subject: Re: [PHP] Apache 1.3/PHP > > > Tom Ray [List] wrote: > > >[snip]... > > > > >print "Test 123"; > >?> > > > >I'm sure I'm missing a line or two in my httpd.conf, but I really don't know what > >they would be. Anyone with > experience > >with FreeBSD/Apache/PHP give me a hand? > > > > > Do you have the following line in your httpd.conf: > > AddType application/x-httpd-php .php > > Best > > Bao > > >TIA > > > >Tom > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache 1.3/PHP
Tom Ray [List] wrote: For the first time ever I installed FreeBSD 4.9, I then installed Apache 1.3 and PHP 4.3.3-CGI from /usr/ports on the machine. It seems that everything is ok, but when I try to use a .php file it does not run it through the parser. So when I hit test.php in my browser it outputs: or I'm sure I'm missing a line or two in my httpd.conf, but I really don't know what they would be. Anyone with experience with FreeBSD/Apache/PHP give me a hand? TIA Tom Chances are, you need to add this to your httpd.conf and restart Apache... AddType application/x-httpd-php .php -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache 1.3/PHP
Tom Ray [List] wrote: >[snip]... > >print "Test 123"; >?> > >I'm sure I'm missing a line or two in my httpd.conf, but I really don't know what >they would be. Anyone with experience >with FreeBSD/Apache/PHP give me a hand? > > Do you have the following line in your httpd.conf: AddType application/x-httpd-php .php Best Bao >TIA > >Tom > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php