php-install Digest 20 Dec 2001 22:07:32 -0000 Issue 611
Topics (messages 5348 through 5358):
php/apache error: Cannot remove module mod_php4.c: not found in module list
5348 by: Serge Yatsenko
5349 by: Serge Yatsenko
Bcmath support when installed with RPM files
5350 by: Bård Tommy Nilsen
Problem installing 4.1.0 with Apache 1.3.22
5351 by: Stuart Grimshaw
5352 by: Jonathan Hilgeman
FreeBSD 4.4, PHP 4.1.0, GD, Error
5353 by: Ben Halsted
windows 2000 + PHP4.10 + gd1.8.4
5354 by: Marc Maniscalco
5357 by: Jonathan Hilgeman
web server crashing with either 4.1.0 or 4.0.6
5355 by: Ian McNish
Different virtual web sites using different PHP versions?
5356 by: Richard Morris
PHP-4.1.0 and Frontpage 2002 extensions install problems
5358 by: Russell Premont
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 ---
Hello,
I've installed Apache 13.22 and it works. Then I installed PHP410 and
configured the config httpd.conf as this:
--------------------------------------
LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php
--------------------------------------
Also I have copied php's dll to system32/ directory and php.ini to windows/
dir.
and when I'm trying to access .php files I get the browser's File download
window.
And the string in the subject line at apache's error.log.
It is all running under WinXP.
What should I do?
Thank you,
Serge.
--- End Message ---
--- Begin Message ---
Thanks,
Problem is solved. But I found the needed note only at the PHP site not at
the local install "readme".
Serge
"Serge Yatsenko" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello,
>
> I've installed Apache 13.22 and it works. Then I installed PHP410 and
> configured the config httpd.conf as this:
> --------------------------------------
> LoadModule php4_module c:/php/sapi/php4apache.dll
> AddType application/x-httpd-php .php
> --------------------------------------
> Also I have copied php's dll to system32/ directory and php.ini to
windows/
> dir.
--- End Message ---
--- Begin Message ---
Can anyone tell me how to install Bcmath support, when
I have installed php with RPM file.???
PLEASE HELP
Bård Tommy Nilsen
--- End Message ---
--- Begin Message ---
I'm trying to install the latest PHP after I've upgraded Apache. The Apache
install works OK.
When I try & configure PHP, I get the following from ./configure
garner:/home/downloads/Linux/php-4.1.0# ./configure
--with-apxs=/usr/local/apache/bin/apxs --enable-force-cgi-redirect
--enable-ftp --enable-gd-native-ttf --with-pgsql=/usr/local/pgsql/lib
--enable-trans-sid --with-png-dir=/usr/lib --with-zlib-dir=/usr/lib --with-gd
--enable-magic-quotes --with-mysql=/usr/local/mysql
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of Makefiles... no
checking host system type... i686-pc-linux-gnu
checking for gawk... no
checking for mawk... mawk
checking for bison... bison -y
checking bison version... 1.28 (ok)
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking whether gcc and cc understand -c and -o together... yes
checking whether ln -s works... yes
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for working const... yes
checking for pthreads_cflags... -pthread
checking for pthreads_lib...
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache module support via DSO through APXS...
Sorry, I was not able to successfully run APXS. Possible reasons:
1. Perl is not installed;
2. Apache was not compiled with DSO support (--enable-module=so);
3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs
The output of /usr/local/apache/bin/apxs follows
Usage: apxs -g [-S <var>=<val>] -n <modname>
apxs -q [-S <var>=<val>] <query> ...
apxs -c [-S <var>=<val>] [-o <dsofile>] [-D <name>[=<value>]]
[-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>]
[-Wl,<flags>] <files> ...
apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
configure: error: Aborting
I installed 4.1.0 on my old Apache install the other day, and that worked
fine, so all I can assume is that there something different about Apache
1.3.22's apxs?
I've read the suggestions in the FAQ about apxs, and the first problem was
present, but adding the entries suggested made no difference.
--
| Stuart Grimshaw <[EMAIL PROTECTED]>
| Chief Operations Officer
| Football Networks Ltd
|-
| t:07976 625221
| f:0870 7060260
--- End Message ---
--- Begin Message ---
I would take what's behind door number 2:
Apache was not compiled with DSO support
When you open up your Apache config file, do you have this line in there?
AddModule mod_so.c
If you don't, then you'll need to either recompile Apache for DSO's
(recommended), or you can compile Apache and PHP "statically", which also
involves re-making Apache:
----- SNIPPET -----
QUICK INSTALL (Static)
$ gunzip -c apache_1.3.x.tar.gz | tar xf -
$ cd apache_1.3.x
$ ./configure
$ cd ..
$ gunzip -c php-4.0.x.tar.gz | tar xf -
$ cd php-4.0.x
$ ./configure --with-mysql --with-apache=../apache_1.3.x --enable-track-vars
$ make
$ make install
$ cd ../apache_1.3.x
$ ./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a
(The above line is correct! Yes, we know libphp4.a does not exist at this
stage. It isn't supposed to. It will be created.)
$ make
(you should now have an httpd binary which you can copy to your Apache bin
dir if
is is your first install then you need to "make install" as well)
$ cd ../php-4.0.x
$ cp php.ini-dist /usr/local/lib/php.ini
You can edit /usr/local/lib/php.ini file to set PHP options.
Edit your httpd.conf or srm.conf file and add:
AddType application/x-httpd-php .php
----- SNIPPET -----
- Jonathan
-----Original Message-----
From: Stuart Grimshaw [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 7:34 AM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] Problem installing 4.1.0 with Apache 1.3.22
I'm trying to install the latest PHP after I've upgraded Apache. The Apache
install works OK.
When I try & configure PHP, I get the following from ./configure
garner:/home/downloads/Linux/php-4.1.0# ./configure
--with-apxs=/usr/local/apache/bin/apxs --enable-force-cgi-redirect
--enable-ftp --enable-gd-native-ttf --with-pgsql=/usr/local/pgsql/lib
--enable-trans-sid --with-png-dir=/usr/lib --with-zlib-dir=/usr/lib
--with-gd
--enable-magic-quotes --with-mysql=/usr/local/mysql
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of Makefiles... no
checking host system type... i686-pc-linux-gnu
checking for gawk... no
checking for mawk... mawk
checking for bison... bison -y
checking bison version... 1.28 (ok)
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking whether gcc and cc understand -c and -o together... yes
checking whether ln -s works... yes
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for working const... yes
checking for pthreads_cflags... -pthread
checking for pthreads_lib...
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache module support via DSO through APXS...
Sorry, I was not able to successfully run APXS. Possible reasons:
1. Perl is not installed;
2. Apache was not compiled with DSO support (--enable-module=so);
3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs
The output of /usr/local/apache/bin/apxs follows
Usage: apxs -g [-S <var>=<val>] -n <modname>
apxs -q [-S <var>=<val>] <query> ...
apxs -c [-S <var>=<val>] [-o <dsofile>] [-D <name>[=<value>]]
[-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>]
[-Wl,<flags>] <files> ...
apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
configure: error: Aborting
I installed 4.1.0 on my old Apache install the other day, and that worked
fine, so all I can assume is that there something different about Apache
1.3.22's apxs?
I've read the suggestions in the FAQ about apxs, and the first problem was
present, but adding the entries suggested made no difference.
--
| Stuart Grimshaw <[EMAIL PROTECTED]>
| Chief Operations Officer
| Football Networks Ltd
|-
| t:07976 625221
| f:0870 7060260
--
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]
--- End Message ---
--- Begin Message ---
I was wondering if anybody knew how to fix this, I've tried 4.6 and don't
seem to have a problem with the compile, but I get this error with 4.1.0.
Here is my config script
./configure \
--with-prefix=/usr/local/psa/apache \
--with-apxs=/usr/local/psa/apache/bin/apxs \
--with-config-file-path=/usr/local/psa/apache/conf \
--with-system-regex \
--disable-pear \
--enable-sockets \
--enable-track-vars \
--with-curl=/usr/local \
--with-openssl=/usr \
--with-gdbm \
--enable-ftp \
--with-gd=/usr/local \
--with-jpeg-dir=/usr/local \
--enable-gd-native-ttf \
--with-png-dir=/usr/local \
--with-freetype-dir=/usr/local \
--with-imap=/usr/local \
--with-mcrypt=/usr/local \
--with-mysql=/usr/local/psa/mysql \
--with-iodbc=/usr/local \
--enable-wddx \
--disable-xml \
--enable-xslt \
--with-xslt-sablot \
--with-expat-dir=/usr/local \
--with-zlib=/usr/local \
--with-ttf=/usr/local
### Error Follows ###
gmake
Making all in Zend
(Stuff goes here...)
Making all in TSRM
gmake[1]: Entering directory `/usr/local/psa/php/php-4.1.0/TSRM'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/usr/local/psa/php/php-4.1.0/TSRM'
Making all in .
gmake[1]: Entering directory `/usr/local/psa/php/php-4.1.0'
/bin/sh /usr/local/psa/php/php-4.1.0/libtool --silent --mode=link
gcc -I. -I/usr/local/psa/php/php-4.1.0/ -I/usr/local/psa/php/php-4.1.0/main
-I/usr/local/psa/php/php-4.1.0 -I/usr/local/psa/apache/include -I/usr/local
/psa/php/php-4.1.0/Zend -I/usr/local/include -I/usr/local/include/freetype2/
freetype -I/usr/local/include/c-client -I/usr/local/psa/mysql/include/mysql
-I/usr/local/include -DHARD_SERVER_LIMIT=2048 -DDEFAULT_PATH="/usr/local/ps
a/apache/bin:/bin:/usr/bin" -DMOD_SSL=208103 -DMOD_PERL -DUSE_PERL_SSI -DEAP
I -DEAPI_MM -DUSE_EXPAT -I/usr/local/psa/php/php-4.1.0/TSRM -g -O2 -prefer-p
ic -o libphp4.la -rpath
/usr/local/psa/php/php-4.1.0/libs -avoid-version -L/usr/local/lib -L/usr/loc
al/psa/mysql/lib/mysql -R /usr/local/lib -R /usr/local/psa/mysql/lib/mysql
stub.lo Zend/libZend.la sapi/apache/libsapi.la main/libmain.la
ext/zlib/libzlib.la ext/curl/libcurl.la ext/dba/libdba.la ext/ftp/libftp.la
ext/gd/libgd.la ext/imap/libimap.la ext/mcrypt/libmcrypt.la
ext/mysql/libmysql.la ext/odbc/libodbc.la ext/
openssl/libopenssl.la ext/pcre/libpcre.la ext/posix/libposix.la
ext/session/libsession.la ext/sockets/libsockets.la
ext/standard/libstandard.la ext/wddx/libwddx.la ext/xml/libxml.la
ext/xslt/libxslt.la
TSRM/libtsrm.la -L/usr/local/lib -liodbc -lpam -lc-client4 -lsablot -liconv
-lexpat -lexpat -lexpat -liodbc -lmysqlclient -lz -lmcrypt -lltdl -lcrypt -l
pam -lgd -lfreetype -lpng -lz -ljpeg -lgdbm -lcurl -lcrypto -lssl -lcurl -lz
-lcrypt -lssl -lcrypto -lm -lcrypt
/usr/local/lib/libjpeg.a(jcapimin.o): In function `jpeg_CreateCompress':
jcapimin.o(.text+0x0): multiple definition of `jpeg_CreateCompress'
Zend/.libs/libZend.al(jcapimin.o)(.text+0x0): first defined here
/usr/local/lib/libjpeg.a(jcapimin.o): In function `jpeg_destroy_compress':
jcapimin.o(.text+0x108): multiple definition of `jpeg_destroy_compress'
Zend/.libs/libZend.al(jcapimin.o)(.text+0x108): first defined here
(MORE GOES HERE...)
/usr/local/lib/libjpeg.a(jmemnobs.o): In function `jpeg_mem_available':
jmemnobs.o(.text+0x50): multiple definition of `jpeg_mem_available'
Zend/.libs/libZend.al(jmemnobs.o)(.text+0x50): first defined here
/usr/local/lib/libjpeg.a(jmemnobs.o): In function `jpeg_open_backing_store':
jmemnobs.o(.text+0x58): multiple definition of `jpeg_open_backing_store'
Zend/.libs/libZend.al(jmemnobs.o)(.text+0x58): first defined here
/usr/local/lib/libjpeg.a(jmemnobs.o): In function `jpeg_mem_init':
jmemnobs.o(.text+0x78): multiple definition of `jpeg_mem_init'
Zend/.libs/libZend.al(jmemnobs.o)(.text+0x78): first defined here
/usr/local/lib/libjpeg.a(jmemnobs.o): In function `jpeg_mem_term':
jmemnobs.o(.text+0x80): multiple definition of `jpeg_mem_term'
Zend/.libs/libZend.al(jmemnobs.o)(.text+0x80): first defined here
gmake[1]: *** [libphp4.la] Error 1
gmake[1]: Leaving directory `/usr/local/psa/php/php-4.1.0'
gmake: *** [all-recursive] Error 1
### End Error ###
I'd really appreciate any help with this.
Thanks!
Ben
--- End Message ---
--- Begin Message ---
I am trying to use a PHP script called
jpgraph(http://www.aditus.nu/jpgraph/index.php), but I need GD-1.8.4
installed first. I have read through the documentation on the gd web site
(http://www.boutell.com/gd/), and I cannot figure it out. In windows I do
not have the slightest idea how to compile the code. I have Visual C++ 6.0,
and I have tried to compile it, but it keeps asking for the zlib.h header
file. I do not know enough about the compiler to include new static
libraries, or dlls. Is there anyway you guys could make a windows binary
for me to use or explain in plain english how to do it? I am unfortunately
not a very good windows programmer.
Here is a list of the files I have donwloaded:
GD-1.8.4
PHP-4.10
JPEG-6B
ZLIB113
LIBPNG1011
I know I need the zlib, and libpng libraries inorder to compile gd. In the
libpng they have a project already started, so I opened it and compiled the
code. It created the .lib for libpng, and zlib. Now I think I need the
dlls? But I'm not sure, and if I do need them I don't have them. I added
the .lib to my library's directory in the ms directory. I try to compile
gd.c and it says it can't find zlib.h. I then copied zlib.h(and zconf.h it
is included in zlib.h) into the include directory for ms. Then I get the
errors:
gd.obj : error LNK2001: unresolved external symbol _gdCalloc
gd.obj : error LNK2001: unresolved external symbol _gdMalloc
gd.obj : error LNK2001: unresolved external symbol _gdFree
gd.obj : error LNK2001: unresolved external symbol _gdSinT
gd.obj : error LNK2001: unresolved external symbol _gdCosT
gd.obj : error LNK2001: unresolved external symbol _gdRealloc
I also get warnings about converting doubles to ints.
I am lost at this point, any help would be appriciated. I also figured that
someone would have create a binary for GD but I cannot find it. Why doesn't
PHP include support for gd? It would make life easier (for me hahaha).
Thanks for any help,
Marc Maniscalco
--- End Message ---
--- Begin Message ---
You should be able to download the PHP4.10 Windows binary with the GD
extension already compiled in, from PHP's web site.... what else do you
need?
- Jonathan
-----Original Message-----
From: Marc Maniscalco [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 1:16 PM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] windows 2000 + PHP4.10 + gd1.8.4
I am trying to use a PHP script called
jpgraph(http://www.aditus.nu/jpgraph/index.php), but I need GD-1.8.4
installed first. I have read through the documentation on the gd web site
(http://www.boutell.com/gd/), and I cannot figure it out. In windows I do
not have the slightest idea how to compile the code. I have Visual C++ 6.0,
and I have tried to compile it, but it keeps asking for the zlib.h header
file. I do not know enough about the compiler to include new static
libraries, or dlls. Is there anyway you guys could make a windows binary
for me to use or explain in plain english how to do it? I am unfortunately
not a very good windows programmer.
Here is a list of the files I have donwloaded:
GD-1.8.4
PHP-4.10
JPEG-6B
ZLIB113
LIBPNG1011
I know I need the zlib, and libpng libraries inorder to compile gd. In the
libpng they have a project already started, so I opened it and compiled the
code. It created the .lib for libpng, and zlib. Now I think I need the
dlls? But I'm not sure, and if I do need them I don't have them. I added
the .lib to my library's directory in the ms directory. I try to compile
gd.c and it says it can't find zlib.h. I then copied zlib.h(and zconf.h it
is included in zlib.h) into the include directory for ms. Then I get the
errors:
gd.obj : error LNK2001: unresolved external symbol _gdCalloc
gd.obj : error LNK2001: unresolved external symbol _gdMalloc
gd.obj : error LNK2001: unresolved external symbol _gdFree
gd.obj : error LNK2001: unresolved external symbol _gdSinT
gd.obj : error LNK2001: unresolved external symbol _gdCosT
gd.obj : error LNK2001: unresolved external symbol _gdRealloc
I also get warnings about converting doubles to ints.
I am lost at this point, any help would be appriciated. I also figured that
someone would have create a binary for GD but I cannot find it. Why doesn't
PHP include support for gd? It would make life easier (for me hahaha).
Thanks for any help,
Marc Maniscalco
--
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]
--- End Message ---
--- Begin Message ---
when trying at access any php scripts my web server is crashing. i'm
experiencing this problem with both php 4.0.6 and 4.1.0 on iplanet
enterprise 6.0sp1 on solaris 8. my web server is logging the following
error:
catastrophe (21929): Server crash detected (signal SIGSEGV)
info (21929): Crash occurred in NSAPI SAF php4_execute
info (21929): Crash occurred in function _pthread_mutex_lock from module
/usr/lib/libthread.so.1
i'm getting this behavior with php code as simple as:
<?php
phpinfo();
?>
any help would be appreciated.
--- End Message ---
--- Begin Message ---
Hello,
I was wondering if it is possible to use different versions of php with
different virtual web sites under IIS 5.0? For example, maybe one web site
will run PHP 4.0.5 and another web site will run PHP 4.1.0. If I install
each php version in its own directory and have the .php extension mapped on
the server to the appropriate version, I should be able to get the right
version to execute. However, I am wondering about the configuration file.
Since the configuration file is generally stored in the windows directory,
how do you seperate out each PHP version's configuration file?
The reason that I ask is that I was told by someone that there is a problem
in the PHP 4.0.6 GD library that causes problems with using True Type Fonts
and something to do with the PNG alpha channel (or something like that).
So, they would like to use PHP 4.0.5 on their web site. However, I would
like to give the other PHP sites the ability to use the most up to date
version (or even possibly their choice of what version to use). What I
would like to know, can this be done without have the different versions
interfere with themselves?
Thank you.
Richard Morris
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
I am trying to install frontpage 2002 sever extensions and PHP 4.1.0 on a
box running Solaris 8 for Sparc with Apache 1.3.19. I can get FP extensions
or PHP to intall but not both. When I try to install both I get the error
below no matter what order I try.
<=== src/modules/standard
===> src/modules/php4
make[4]: *** No rule to make target `all'. Stop.
make[3]: *** [all] Error 1
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/www_data/installed/apache_1.3.19/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/www_data/installed/apache_1.3.19'
make: *** [build] Error 2
TIA Russell
--- End Message ---