I have installed php-4.0.6 with Postgres 7.1.2 and Apache 1.3.20. In my
Apache
server logs I see the following in my error_log:

[Sun Aug 12 14:56:10 2001] [error] (8)Exec format error: exec of
/home/httpd/php-bin/index.php failed
[Sun Aug 12 14:56:10 2001] [error] [client 192.168.0.1] Premature end of

script headers:
/home/httpd/fr-tech/php-bin/index.php

The contents of my index.php file is this very basic script (right out
of the manual):

<html>
     <head>
          <title>PHP Prog 1</title>
     </head>
     <body>

          <?php
           echo "Hi I'm a PHP Script!";
          ?>
     </body>
</html>

I do have a file /usr/bin/php, which is version 4.0.1p12, that is from
the prior version I have
yet to delete, but even with this executable, I still get the error.  If

I run
/usr/bin/php index.php, I get the proper response and behavior.

What is more interesting is that after building php-4.0.6, I can not
find the new php executable.
It does not appear to exist.....

The only contents in the php bin directory is:

[root@joeboo lib]# ls -l /usr/local/php/bin
total 16
-rwxr-xr-x    1 root     root         1595 Aug 12 13:30 pear
-rwxr-xr-x    1 root     root          482 Aug 12 13:30 php-config
-rwxr-xr-x    1 root     root          593 Aug 12 13:30 phpextdist
-rwxr-xr-x    1 root     root          708 Aug 12 13:30 phpize
[root@joeboo lib]#

Does anyone have a clue of what could be going on?


Build details.....  ;-(

#
# Openssl build parameters
#
#

./config no-threads -fPIC --prefix=/usr/local/openssl

#
# MM build parameters
#
#

./configure --disable-shared --prefix=/usr/local/mm

#
# Mod SSL build parameters
#
./configure --with-apache=/latest/apache_1.3.20 \
--with-ssl=/latest/openssl-0.9.6b \
--with-mm=/latest/mm-1.1.3 \
--prefix=/usr/local/apache"
make
make test
make install

#
# Apache build parameters - First Pass
#
#

./configure --prefix=/usr/local/apache \
--enable-suexec \
--suexec-caller=www \
--suexec-userdir=.www \
--suexec-docroot=/usr/local/apache/htdocs \
--suexec-logfile=/usr/local/apache/logs/suexec_log \
--suexec-uidmin=1000 \
--suexec-gidmin=1000 \
--suexec-safepath="/bin:/usr/bin:/usr/local/bin" \
--enable-module=rewrite \
--enable-module=most \
--enable-shared=max
make
make certifcate
make install

#
# Postgres build parameters
#
#

cd /latest/postgresql-7.1.2
./configure --prefix=/usr/local/pgsql \
--exec-prefix=/usr/local/pgsql \
--with-openssl=/usr/local/openssl \
--with-perl=/usr/local/bin/perl
make
make install

#
# PHP4 build parameters
#
./configure --prefix=/usr/local/php \
--exec-prefix=/usr/local/php \
--with-apache=/latest/apache_1.3.20 \
--without-mysql \
--with-openssl=/usr/local/openssl \
--with-pgsql=/usr/local/pgsql
make
make install

#
# Apache build parameters - Second Pass - After all
# modules have been built......gees!  ;-(
#
#

./configure --prefix=/usr/local/apache \
--enable-suexec \
--suexec-caller=www \
--suexec-userdir=.www \
--suexec-docroot=/usr/local/apache/htdocs \
--suexec-logfile=/usr/local/apache/logs/suexec_log \
--suexec-uidmin=1000 \
--suexec-gidmin=1000 \
--suexec-safepath="/bin:/usr/bin:/usr/local/bin" \
--with-perl=/usr/local/bin/perl \
--activate-module=src/modules/php4/mod_php4.c \
--enable-module=rewrite \
--enable-module=most \
--enable-shared=max
make
make certifcate
make install





-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to