Apache/php processing unreliably

Apache/php processing unreliably

Post by K. Brun » Fri, 14 Jun 2002 10:24:00



I just installed apache 1.3.24 with php 4.2.1 compiled in on a FreeBSD
4.5 machine.  mod_php4.c *does* show up with httpd -l

In my httpd.conf:

<IfModule mod_php4.c>
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
    AddType application/x-httpd-php .phtml
    AddType application/x-httpd-php .phpt
</IfModule>

The problem:
The server will only process some php files correctly.  For others I get
a download box even though it says the file to download is of type
x-httpd-php

Most of the files in the php-4.2.1/tests directory seem to work through
apache (they all seem to work from the php command-line), but others,
like run.php, it tries to send as a download.

Has anyone seen this before?

 
 
 

1. Apache w/ PHP and SSL: w/ PHP OK - w/out PHP NOK

Hi,

        I've been assigned the task of building an Apache server with
support for Sybase, PHP4, OpenSSL 0.9.6/mod_ssl ?, and apache 1.3.14.

I followed Israel Denis Jr/Eugene Otto's "The Soothingly Seamless
Setup of Apache, SSL, MySQL, and PHP" at DevShed, but compilation of
apache fails if I add PHP.  The same procedure w/out PHP works OK
(either port 80 or port 443.) As a non-developper, I'm totally in the
dark.

[/home/samba/temp/Apache/apache_1.3.14]# SSL_BASE=../openssl-0.9.6
/configure --enable-module=ssl
--activate-module=src/modules/php4/libphp4.a --enable-module=php4
--prefix=/usr/local/apache

Configuring for Apache, Version 1.3.14
(snip)
-L/home/samba/temp/Apache/openssl-0.9.6  -o helpers/dummy
helpers/dummy.c   -rdynamic -Lmodules/php4 -L../modules/php4
-L../../modules/php4 -lmodphp4  -lpam  -ldl -lresolv -lm -ldl -lcrypt
-lnsl  -lresolv   -lm -lcrypt  -lssl -lcrypto
/usr/bin/ld: cannot find -lmodphp4
collect2: ld returned 1 exit status
make: *** [dummy] Error 1

Any idea?

Thx
FF.

2. Redhat: installing via NFS problem

3. Apache dies when killing a php spawned process

4. LILO and 2 SCSI drives

5. Apache won't process PHP files

6. linux on a HP Jornada 820

7. Apache (mySQL,PHP) slowdown due to too many processes?

8. configure apache to dump core

9. Apache Rewrite domain.com->index.php domain.org->index2.php

10. Solaris - PHP- Apache- Oracle : Problem getting PHP installed

11. Apache+PHP+mod_perl configures ok, but Apache won't build

12. Zombie processes "owned" by apache processes ...

13. In-process and Out-of-process servlet containers in apache