Re: apache & php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Andrew,

Either remove
   <Files *.php>
    SetOutputFilter PHP
    SetInputFilter PHP
    LimitRequestBody 524288
    </Files>

or

  AddType application/x-httpd-php .php      # for PHP 4


You can't have both. (My personal recommendation is to get rid of the Files directive)

On 12/13/06, Andrew Long < along@xxxxxxxxxxxxxx> wrote:
Problem on one server with php... php test file in doc root works well
and returns variables, status, etc... But when trying to open a php
under a subdir, the client browser will attempt to download the file.

I post here since php(4) is working, so I think it's an Apache config
issue.

There are are no directory options defined for the dir. (It is is for
phpMyAdmin, and requires no settings in http.conf)

In php.conf under conf.d:

   LoadModule php4_module modules/libphp4.so
   AddType application/x-httpd-php .php      # for PHP 4

   <Files *.php>
    SetOutputFilter PHP
    SetInputFilter PHP
    LimitRequestBody 524288
    </Files>

    DirectoryIndex index.php

Thanks in advance-
Andrew Long





---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux