php-install Digest 30 Apr 2002 19:21:29 -0000 Issue 812

Topics (messages 6786 through 6796):

Re: PHP4.2.0 + Apache2 prints code
        6786 by: Yasuo Ohgaki
        6791 by: Bertrand PERRINE

Re: Problem with msession when compiling Apache 1.3.24 and PHP 4.2.0 (FreeBSD 4.5)
        6787 by: Yasuo Ohgaki

Re: PHP_SELF
        6788 by: Yasuo Ohgaki

Re: PHP error when starting Apache, Undefined symbol "pthread_getspecific", what's 
this???
        6789 by: Yasuo Ohgaki

Re: Blank page - one possible resolution.....
        6790 by: Yasuo Ohgaki

Re: Apache 2 ?
        6792 by: Yasuo Ohgaki

libphp4 Undefined symboll:uncompress.....help me
        6793 by: Julio Cesar

PHP 4.2 with Apache 2 under WinXP Pro
        6794 by: Serge Druzhinin

Upgrading RH 7.2 RPMS
        6795 by: Brian Speck

php 4.2.0 on Digital Unix V4.0F  (Rev. 1229)
        6796 by: Renato Arruda

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 ---
James Stuart wrote:
> I've installed Apache 2.0.35 with PHP 4.2.0 on both FreeBSD and Linux, and
> both yield the same result.  When the test.php page is accessed it returns
> "<?php phpinfo(); ?>" instead of actually processing it.
> 
> I have the lines:
> LoadModule php4_module        modules/libphp4.so
> AddType application/x-httpd-php .php
> in my httpd.conf files, and the /server-info page displays the server as:
> Server Version: Apache/2.0.35 (Unix) PHP/4.2.0
> It also indicates that "sapi_apache2.c" is loaded.  I've tried making the
> php files +x, and also accessing them in directories that are set as Options
> ExecCGI, but nothing causes apache to actually process the php.
> 
> I have to be doing something wrong here, but for the life of me I can't
> figure out what it is.  The only thing I can think of that might help is an
> AddHandler line, but I don't know what I'd put there as a handler.
> 
> Any thoughts/comments/ideas would be greatly appreciated.
> 

Read README file in the SAPI directory.

sapi/apache2filter/README

--
Yasuo Ohgaki

--- End Message ---
--- Begin Message ---
        Read the Apache doc.

        Greetings
        B.

        PS : Apache 2.0.35 and PHP 4.2.0 work together on my debian box.

Le mar 30/04/2002 à 10:45, Yasuo Ohgaki a écrit :
> James Stuart wrote:
> > I've installed Apache 2.0.35 with PHP 4.2.0 on both FreeBSD and Linux, and
> > both yield the same result.  When the test.php page is accessed it returns
> > "<?php phpinfo(); ?>" instead of actually processing it.
> > 
> > I have the lines:
> > LoadModule php4_module        modules/libphp4.so
> > AddType application/x-httpd-php .php
> > in my httpd.conf files, and the /server-info page displays the server as:
> > Server Version: Apache/2.0.35 (Unix) PHP/4.2.0
> > It also indicates that "sapi_apache2.c" is loaded.  I've tried making the
> > php files +x, and also accessing them in directories that are set as Options
> > ExecCGI, but nothing causes apache to actually process the php.
> > 
> > I have to be doing something wrong here, but for the life of me I can't
> > figure out what it is.  The only thing I can think of that might help is an
> > AddHandler line, but I don't know what I'd put there as a handler.
> > 
> > Any thoughts/comments/ideas would be greatly appreciated.
> > 
> 
> Read README file in the SAPI directory.
> 
> sapi/apache2filter/README
> 
> --
> Yasuo Ohgaki
> 
> 
> -- 
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---

Are you sure you have libphoenix?

--
Yasuo Ohgaki

Carsten Gehling wrote:
> I have problems compiling Apache 1.3.24 after configuring PHP 4.2.0
> 
> The technical stuff:
> OS: FreeBSD 4.5 (tiny)
> Apache: 1.3.24
> PHP: 4.2.0
> MySQL: 2.23.49 (just to be verbose)
> 
> I've configured PHP with the following options:
> 
> ./configure --with-mysql=/usr/local/mysql --with-apache=/usr/local/src/apach
> e_1.3.24 --with-config-file-path=/usr/www/conf --with-msession=/usr/local/ph
> oenix/msession
> 
> "gmake" and "gmake install" runs fine for PHP
> 
> Apache is configured like this:
> 
> ./configure --with-layout=Apache --prefix=/usr/local/apache
> --activate-module=src/modules/php4/libphp4.a --enable-module=rewrite
> 
> But gmake produces errors, when it tries to compile msession.o - one of
> these errors are:
> ----------------------------
> modules/php4/libphp4.a(msession.o): In function `zif_msession_call':
> /usr/local/src/php-4.2.0/ext/msession/msession.c(.text+0x27c3): undefined
> reference to `FormatRequestStrings'
> ----------------------------
> 
> The other errors are similar, only the function names are different.
> 
> I've tried to configure PHP *without* the path to msession (ie.
> just --with-msession) - but it didn't help.
> 
> I've searched the archives, but didn't find anything related to this
> problem.
> 
> Mohawk Soft dosn't state anything yet about php 4.2.0 on their website.
> 
> What should I do?
> 

--- End Message ---
--- Begin Message ---
Scott McAnally wrote:
> I am relatively new to PHP, but I have a problem that no one else has talk
> about, so I'm guessing it's something simple.
> I'm running PHP on WinXP (with IIS). I upgraded from PHP 4.1.2 to PHP 4.2,
> and now all of of my scripts that use the variable PHP_SELF do not work.
> Undefined variable.
> I figured I had done something wrong, but when I uninstalled PHP 4.2 and
> reinstalled 4.1.2 all of my scripts worked again.
> Scratch, scratch. Please help.
> Scott
> 
> 

Read NEWS file when you upgrade anything at least...
It's mentioned in NEWS file.

register_globals=Off by default from 4.2.0

--
Yasuo Ohgaki




--- End Message ---
--- Begin Message ---
Marcus Uddenhed wrote:
> I get an error when i try to start Apache
> when i have made PHP as an module.
> 
> The error says:
> 
> Cannot load /websrv/progrs/apache2/modules/libphp4.so
> into server: /websrv/progrs/apache2/modules/libphp4.so: Undefined Symbol
> "pthread_getspecific"
> 
> And Apache refuses to start.
> 
> This is how i configured PHP and installed it:
> 
> ./configure --prefix=/websrv/progs/php --with-mysql --with-apxs2=/websrv/pro
> gs/apache2/bin/axps
> 
> make
> 
> make install --with-config-file-path=/websrv/progs/php
> 
> The system that i do this on is FreeBSD 4.5
>

I don't use FreeBSD, but are you sure you have pthread?
You may try other thead lib. Do ./configure --help
for other options.

--
Yasuo Ohgaki




--- End Message ---
--- Begin Message ---
James Lai wrote:
> I had the same problem before until I found out the problem is not httpd
> or php.conf but because the file extension was not saved with a *.php
> extension. Make sure you open a command line and verify the test file
> has a php extension.
>  

If you are using Apache and you can execute .php scsripts.
You should be able to change php file extension like

     AddType application/x-httpd-php .html .php .phtml

.html, .php or .pthml are treated as php script by Apache
with this example.


--
Yasuo Ohgaki

--- End Message ---
--- Begin Message ---
Sven David Hildebrandt wrote:
> Hello!
> 
> How come you're bragging on the www.php.net MAIN page about having support for 
>Apache 2, when this
> is not at all mentioned in the install.txt document that comes along with the 
>php-4.2.0-Win32 zip package???
> 

Since Apache2 support is _NOT_ for general public.

It's only good if you are willing to find out bugs
and fill out _good_ bug reports for Apache2.

--
Yasuo Ohgaki

--- End Message ---
--- Begin Message ---
On Solaris 2.5, starting Apache I get this error:
Syntax error on line 26 of /usr/local/etc/apache/conf/httpd.conf:
Cannot load /usr/local/etc/apache/libexec/libphp4.so into server:
ld.so.1: /usr/local/etc/apache/bin/httpd: fatal: relocation error: file
/usr/local/etc/apache/libexec/libphp4.so: symbol dn_skipname: referenced
symbol not found ./apachectl start: httpd could not be started

Line 26 in the httpd.conf file is:
LoadModule php4_module        libexec/libphp4.so


Both Apache 1.3.3. and PHP 4.1.2. compiled without errors and installed
cleanly.

Help me please.

thak you



--- End Message ---
--- Begin Message ---
How to install PHP 4.2 with Apache 2 under WinXP Pro (or other Win NT based
system). Can't find relating info in faqs/docs, thanx for any info about.

Best wishes, DrSerge


--- End Message ---
--- Begin Message ---
I was wondering if Anyone has experience upgraded from 4.0.6 ( RH 7.2
RPMS)
To the New 4.2..
If so Can someone Advised me what to do..
 
Do I have to remove the RPMS and then do a standard Install like I would
from scratch.. or is thre an Upgrade?
 
 
Brian Speck
 

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

I am trying to get PHP 4.2.0 to work on Digital Unix V4.0F  (Rev. 1229) with 
apache 2.0 with openssl and a few other packages.

The configure command works just fine:
./configure     --enable-dbx --enable-ftp --enable-sockets --enable-ctype     
--enable-trans-sid --enable-calendar --enable-mailparse   --enable-shmop 
--enable-dio --enable-track-vars      --enable-exif --enable-dbase  
--enable-sysvshm     --enable-magic-quotes --enable-dba --enable-bcmath    
--with-expat-dir=$PREFIX    --with-xml     --with-curl=$PREFIX 
--with-gmp=$PREFIX --with-mhash=$PREFIX     --with-bz2=$PREFIX 
--with-zlib=$PREFIX --with-zip=$PREFIX      --with-pgsql=$PREFIX    
--with-ldap=/usr/local/openldap --with-imap=$PREFIX 
--with-imap-ssl=/usr/local/openssl     --with-openssl=/usr/local/openssl     
--with-apxs2=$PREFIX/apache2/bin/apxs     --with-png-dir=$PREFIX 
--with-tiff-dir=$PREFIX      --with-cpdflib=$PREFIX     --with-gd=$PREFIX 
--without-mysql

on make i get a cryptic error though:

make[1]: Entering directory `/users/rit7/g2/webdev/src/build/php-4.2.0'
/bin/ksh /users/rit7/g2/webdev/src/build/php-4.2.0/libtool --silent 
--mode=compile gcc  -I. -I/users/rit7/g2/webdev/src/build/php-4.2.0/ 
-I/users/rit7/g2/webdev/src/build/php-4.2.0/main 
-I/users/rit7/g2/webdev/src/build/php-4.2.0 
-I/users/rit7/g2/webdev/local/apache2/include 
-I/users/rit7/g2/webdev/src/build/php-4.2.0/Zend 
-I/usr/local/openssl/include -I/users/rit7/g2/webdev/local/include 
-I/usr/local/openldap/include  
-I/users/rit7/g2/webdev/src/build/php-4.2.0/TSRM -g -O2 -pthread -DZTS 
-prefer-pic  -c stub.c
/bin/ksh /users/rit7/g2/webdev/src/build/php-4.2.0/libtool --silent 
--mode=link gcc  -I. -I/users/rit7/g2/webdev/src/build/php-4.2.0/ 
-I/users/rit7/g2/webdev/src/build/php-4.2.0/main 
-I/users/rit7/g2/webdev/src/build/php-4.2.0 
-I/users/rit7/g2/webdev/local/apache2/include 
-I/users/rit7/g2/webdev/src/build/php-4.2.0/Zend 
-I/usr/local/openssl/include -I/users/rit7/g2/webdev/local/include 
-I/usr/local/openldap/include  
-I/users/rit7/g2/webdev/src/build/php-4.2.0/TSRM -g -O2 -pthread -DZTS 
-prefer-pic   -o libphp4.la -rpath 
/users/rit7/g2/webdev/src/build/php-4.2.0/libs -avoid-version 
-L/usr/local/openssl/lib -L/users/rit7/g2/webdev/local/lib 
-L/usr/local/openldap/lib  -R /usr/local/openssl/lib -R 
/users/rit7/g2/webdev/local/lib -R /usr/local/openldap/lib stub.lo  
Zend/libZend.la sapi/apache2filter/libsapi.la main/libmain.la 
regex/libregex.la 
/users/rit7/g2/webdev/src/build/php-4.2.0/ext/zlib/libzlib.la 
/users/rit7/g2/webdev/src/build/php-4.2.0/ext/bcmath/libbcmath.la 
/users/rit7/g2/webdev/src/build/php-4.2.0/ext/bz2/libbz2.la 
/users/rit7/g2/webdev/src/build/php-4.2.0/ext/calendar/libcalendar.la 
/users/rit7/g2/webdev/src/build/php-4.2.0/ext/cpdf/libcpdf.la 
/users/rit7/g2/webdev/src/build/php-4.2.0/ext/ctype/libctype.la 
/users/rit7/g2/webdev/src/build/php-4.2.0/ext/curl/libcurl.la 
/users/rit7/g2/webdev/src/build/php-4.2.0/ext/dbase/libdbase.la 
/users/rit7/g2/webdev/src/build/php-4.2.0/ext/dbx/libdbx.la 
/users/rit7/g2/webdev/src/build/php-4.2.0/ext/dio/libdio.la 
/users/rit7/g2/webdev/src/build/php-4.2.0/ext/exif/libexif.la 
/users/rit7/g2/webdev/src/build/php-4.2.0/ext/ftp/libftp.la 
/users/rit7/g2/webdev/src/build/php-4.2.0/ext/gd/libgd.la 
/users/rit7/g2/webdev/src/build/php-4.2.0/ext/gmp/libgmp.la 
/users/rit7/g2/webdev/src/build/php-4.2.0/ext/imap/libimap.la 
/users/rit7/g2/webdev/src/build/php-4.2.0/ext/ldap/libldap.la 
/users/rit7/g2/webdev/src/build/php-4.2.0/ext/mhash/libmhash.la 
/users/rit7/g2/webdev/src/build/php-4.2.0/ext/openssl/libopenssl.la 
/users/rit7/g2/webdev/src/build/php-4.2.0/ext/pcre/libpcre.la 
/users/rit7/g2/webdev/src/build/php-4.2.0/ext/pgsql/libpgsql.la 
/users/rit7/g2/webdev/src/build/php-4.2.0/ext/posix/libposix.la 
/users/rit7/g2/webdev/src/build/php-4.2.0/ext/session/libsession.la 
/users/rit7/g2/webdev/src/build/php-4.2.0/ext/shmop/libshmop.la 
/users/rit7/g2/webdev/src/build/php-4.2.0/ext/sockets/libsockets.la 
/users/rit7/g2/webdev/src/build/php-4.2.0/ext/standard/libstandard.la 
/users/rit7/g2/webdev/src/build/php-4.2.0/ext/sysvshm/libsysvshm.la 
/users/rit7/g2/webdev/src/build/php-4.2.0/ext/xml/libxml.la 
/users/rit7/g2/webdev/src/build/php-4.2.0/ext/zip/libzip.la TSRM/libtsrm.la 
-lcrypto -lssl -lc-client -lzzip -lexpat -lpq -lmhash -lldap -llber -lgmp 
-lgd -lpng -lz -lcurl -lcrypto -lssl -lcurl -lcpdf -lbz2 -lz -lssl -lcrypto 
-lresolv -lm -lresolv
/usr/ucb/ld:
Warning: des_SPtrans defined as GLOBAL RCONST but is defined in a shared lib 
as a GLOBAL OBJECT
make[1]: Leaving directory `/users/rit7/g2/webdev/src/build/php-4.2.0'

Anyone has any ideas?
--- End Message ---

Reply via email to