php-install Digest 23 Mar 2002 04:18:05 -0000 Issue 757

Topics (messages 6440 through 6445):

Apache/PHP
        6440 by: Dale Rowley
        6441 by: Chris Hewitt

Problems installing PHP - configure errors
        6442 by: Bronwen Hodgkinson

HTTP_WSER_AGENT
        6443 by: Chris Cover

Windows Install works first page load then I get Http 500 error
        6444 by: Gary Herman

build problems
        6445 by: bjlockie.lockie.ca

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Hi,

I have installed Apache 1.3.20 and PHP 4.1.3 on a NT4 SP6a box as a
development server.
I have followed the instructions in install.txt.
I start apache in console mode and get the following text on screen:
Apache/1.3.20 (Win32) PHP/4.1.3-dev running...
I have created the file test.php with the following:
<?php phpinfo(); ?>
When I point IE6 towards http://127.0.0.1/test.php I get the following on
screen:
<?php phpinfo(); ?>
No error messages, can anyone help with this problem?

Cheers,

Dale

--- End Message ---
--- Begin Message ---
Dale,

Did you add the "AddType" line into httpd.conf?

HTH
Regards
Chris

Dale Rowley wrote:

>Hi,
>
>I have installed Apache 1.3.20 and PHP 4.1.3 on a NT4 SP6a box as a
>development server.
>I have followed the instructions in install.txt.
>I start apache in console mode and get the following text on screen:
>Apache/1.3.20 (Win32) PHP/4.1.3-dev running...
>I have created the file test.php with the following:
><?php phpinfo(); ?>
>When I point IE6 towards http://127.0.0.1/test.php I get the following on
>screen:
><?php phpinfo(); ?>
>No error messages, can anyone help with this problem?
>
>Cheers,
>
>Dale
>
>



--- End Message ---
--- Begin Message ---
I'm having a terrible time trying to update PHP on my server. First I tried
to update it to 4.0.6, then I tried 4.1.2. Neither worked. I'm new to this
so it's probably my ignorance of something that's causing the errors I'm
getting.

My server is a Cobalt RaQ4i with Red Hat Linux and Apache - it came with PHP
4.0.3 installed, and MySQL 32.23.10 was installed by my web host (it's a
dedicated server).

When I try to configure PHP, I get the error "configure: error: unable to
find required gettext library". Then after I remove "--with-gettext" from
the configure command, I get the error "error: cannot find header files
under /usr/sbin/mysqld". Then after I remove "--with-mysql", I get this
message "Something is likely to be messed up here, because the configure
script was not able to detect a simple feature on your platform. This is
often caused by incorrect configuration parameters".

Here is the debug.log:

CONFIGURE:   './configure' '--prefix=/usr' '--with-apxs=/usr/sbin/apxs'
'--with-gd' '--enable-safe-mode' '--with-config-file-path=/etc/httpd'
'--with-exec-dir=/usr/bin' '--with-zlib' '--enable-magic-quotes'
'--with-regex=system' '--with-ttf=/usr/lib/libttf.so' '--enable-track-vars'
'--enable-xml' '--disable-debug' '--with-db' '--with-interbase=shared'
'--with-pgsql=shared' '--with-ldap' '--with-imap' '--with-imap-ssl'
CC:         gcc
CFLAGS:     -g -O2
CPPFLAGS:    -DLINUX=22 -DMOD_SSL=208104 -DMOD_PERL -DUSE_PERL_SSI -Dbool=ch
ar -DHAS_BOOL -DEAPI -DBIG_SECURITY_HOLE -DCOBALT_RAQ_LED
CXX:
CXXFLAGS:
INCLUDES:    -I/usr/include/apache  -I$(top_builddir)/Zend  -I/usr/include/f
reetype -I/usr/include/imap -I/usr/interbase/include -I/usr/local/src/php-4.
1.2/ext/mysql/libmysql
LDFLAGS:
LIBS:       -lldap -llber -lcrypt -lgd -lttf -lz -lcrypt -lresolv -lm -ldl -
lnsl  -lresolv -lcrypt
DLIBS:      -lcrypto -lssl -lc-client
SAPI:       apache
PHP_RPATHS:
uname -a:   Linux admin.host.lshd.com 2.2.16C28_III #1 Mon Jul 30 22:07:58
PDT 2001 i586 unknown

gcc -o
conftest -g -O2  -DLINUX=22 -DMOD_SSL=208104 -DMOD_PERL -DUSE_PERL_SSI -Dboo
l=char -DHAS_BOOL -DEAPI -DBIG_SECURITY_HOLE -DCOBALT_RAQ_LED

conftest.c -lldap -llber -lcrypt -lgd -lttf -lz -lcrypt -lresolv -lm -ldl -l
nsl  -lresolv -lcrypt 1>&5
/usr/bin/ld: cannot find -lgd
collect2: ld returned 1 exit status


I'm very frustrated. Can someone please help? Thanks!

 --Bronwen Hodgkinson


--- End Message ---
--- Begin Message ---
Will you take a look at http://devel.foamandform.com/phpinfo.php,
please? The page uses phpinfo() to show that both in the "PHP Variables"
section and the "Apache Environment" section that HTTP_USER_AGENT has
somehow become HTTP_WSER_AGENT.

$HTTP_SERVER_VARS["HTTP_WSER_AGENT"]
HTTP_WSER_AGENT

Of course, the PHP var should be $HTTP_SERVER_VARS["HTTP_USER_AGENT"].

The value of the variable, for me, is UCDDJBLVLMHAALPTCXLYRWTQTIPWIGYOKS.

I've never seen this. I find no useful information about it
via a Google search for HTTP_WSER_AGENT. What is this, and 
how can it be corrected?

Thanks for any help!

-C.

Chris Cover <[EMAIL PROTECTED]>


--- End Message ---
--- Begin Message ---
I installed PHP using the Windows installer package (920k), I am running IIS
5.0, Windows 2000.  On first try everything seems to be fine.  I created a
test file with one line in it <?php phpinfo();?> on a new site with all
read, write, execute, and browse attributes turned on.  Once I browse to the
directory I see the file there and click on it.  It loads perfectly and
runs.  If I click the 'Back' button in my browser and try to repeat the
execution of this file, I get an HTTP 500 error.  I have created some other
PHP files that do the exact same thing.  Anyone have a clue?


--- End Message ---
--- Begin Message ---
I'm trying to compile php-4.1.2 as a DSO module for Apache-0.32.
I don't have enough space in the default location so I put them both in
/d2/usr2/local/...

I couldn't make the stable/release versions on Apache or PHP compile so I
tried the latest versions of each.

For the Apache I used:
./configure --prefix=/d2/usr2/local/apache --enable-so --with-mpm=prefork
It seems to behave fine.

For the PHP I used:
./configure --prefix=/d2/usr2/local/php --with-apxs2=/d2/usr2/local/apache/b
in/apxs
It configures fine but fails on the make:

make[3]: Entering directory `/d2/downloads/php-4.2.0RC1/sapi/apache2filter'
/bin/sh /d2/downloads/php-4.2.0RC1/libtool --silent --mode=compile
gcc  -I. -I/d2/downloads/php-4.2.0RC1/sapi/apache2filter -I/d2/downloads/php
-4.2.0RC1/main -I/d2/downloads/php-4.2.0RC1 -I/d2/usr2/local/apache/include 
-I/d2/downloads/php-4.2.0RC1/Zend -I/d2/downloads/php-4.2.0RC1/ext/mysql/lib
mysql -I/d2/downloads/php-4.2.0RC1/ext/xml/expat  -D_REENTRANT -I/d2/downloa
ds/php-4.2.0RC1/TSRM -DTHREAD=1 -g -O2 -pthread -DZTS -prefer-pic  -c
sapi_apache2.c
sapi_apache2.c: In function `php_register_hook':
sapi_apache2.c:473: `AP_FTYPE_RESOURCE' undeclared (first use in this
function)
sapi_apache2.c:473: (Each undeclared identifier is reported only once
sapi_apache2.c:473: for each function it appears in.)
make[3]: *** [sapi_apache2.lo] Error 1






--- End Message ---

Reply via email to