Re[2]: [PHP] apache and php
| From: | Submission.org.ru Team | Date: | Fri, 10 Jan 2003 06:14:21 +0000 |
| Subject: | Re[2]: [PHP] apache and php | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-131053@lists.php.net to get a copy of this message | ||
Hello Gareth,
Well I've the same problems here what I added to Mine httpd.conf
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</files>
LoadModule php4_module modules/libphp4.so
Thats all it works. But be carefull with 2.0.40 it's shouldn't used
for production. PHP is (!)EXPERIMENTAL(!) for it.
Hope it will help
Thursday, January 9, 2003, 7:52:12 PM, you wrote:
GT> Tim,
GT> thanks but it still doesn't work. What puzzles me is that last night I
GT> reinstalled a 'vanilla' install of RedHat 8 from the distribution where I
GT> selected PHP and Apache. So now I am running PHP 4.2.2 and Apache 2.0.40, I
GT> make the change you recommened to httpd.conf, stop and restart the service
GT> and it still simply ignores the PHP code...this is driving me insane.
GT> Gareth
GT> "Timothy Hitchens )" <phplists@hitcho.com.au> wrote in message
GT> news:007101c2b784$652736b0$0500a8c0@bambino...
>> Your settings should be something similar to this:
>>
>> <IfModule mod_php4.c>
>> AddType application/x-httpd-php .php .html
>> AddType application/x-httpd-php-source .phps
>> </IfModule>
>>
>> Do you have the page remotely available to see what is happening for
>> you??
>>
>>
>>
>> Timothy Hitchens (HiTCHO)
>> Open Platform Consulting
>> e-mail: tim@hitcho.com.au
>>
>> > -----Original Message-----
>> > From: Gareth Thomas [mailto:gdthomas@mercurysoft.com]
>> > Sent: Thursday, 9 January 2003 12:03 PM
>> > To: php-general@lists.php.net
>> > Subject: [PHP] apache and php
>> >
>> >
>> > I am trying to run a PHP page from my browser (Mozilla) and
>> > each time I load the page it is attempting to force a dowload
>> > of the page instead, based on the mime-type. I had been
>> > developing a command line PHP application which works fine
>> > and then had just started on a web interface and realised
>> > that Apache may not be configured correctly. So I edited
>> > httpd.conf and added the Add Type line for x-type-httpd .php.
>> > I am running Apache 2.0.40 on RedHat 8 and PHP 4.3.0pre2. Can
>> > anyone tell me what I am doing wrong? What should the
>> > modifications be to httpd.conf for PHP?
>> >
>> > Thanks in advance
>> >
>> >
>> >
>> >
>> >
>> > --
>> > PHP General Mailing List (http://www.php.net/)
>> > To unsubscribe, visit: http://www.php.net/unsub.php
>> >
>>
--
Best regards,
Submission.org.ru mailto:freeman@submission.org.ru