php-install Digest 14 Aug 2003 15:58:13 -0000 Issue 1500
Topics (messages 11421 through 11428):
Re: command not found
11421 by: Andy
11422 by: Andy
11425 by: Andy
mod_php and content-negotiation with Apache
11423 by: Edgar Bonet
405 error when loading php file
11424 by: Tim
install problem with 4.3.2
11426 by: Boulytchev, Vasiliy
Upgrade from 4.0.3 to ver 4.3.2
11427 by: Jeff Bennett
install
11428 by: John Spencer
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 have a root-server with SuSE 8.1, Apache 1.3.27 and php 4.2.2.
After downloading and unpacking, i look into INSTALL.
i wrote "./configure --with-mysql --with-apxs".
the result was:
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
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 whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for gawk... gawk
checking for bison... no
checking for byacc... no
configure: warning: You will need bison if you want to regenerate the PHP
parsers.
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: line 2356: lex: command not
found
configure: error: cannot find output from lex; giving up
i hope you can help me
cu Andy
--- End Message ---
--- Begin Message ---
bison is installed but lex can't found
--- End Message ---
--- Begin Message ---
very good :D
i have installed the programs bison, flex, and yacc.
php is installed.
big thx @ Jim ^^
--- End Message ---
--- Begin Message ---
Hello everybody!
I am new to this list. I hope it's the right place to ask my question.
I am using PHP 4.0.6 (mod_php) / Apache 1.3.20 / Mandrake 8.1. I also
use content-negotiation on the same server. Therefore I have the
following directives in Apache's config:
LoadModule php4_module extramodules/libphp4.so
AddModule mod_php4.c
AddType application/x-httpd-php .php
Options +MultiViews
When I browse the site whith Mozilla, everything works fine. A request
for a non existent /some/file will return either /some/file.html or
/some/file.php, whichever exists. In either case Apache will give the
right (text/html) Content-Type to the browser. So far so good, that was
what I wanted.
However, when I try to spider the site with Plucker
<URL:http://www.plkr.org/>, I get this kind of errors:
HTTP/1.1 406 Not Acceptable
Alternates: {"file.php" 1 {type application/x-httpd-php} {length 5917}}
Vary: negotiate
I traced the problem to the Accept header sent by the client. Mozilla
assumes it can handle any file type, and therefore sends an Accept
header that contains the "*/*" (i.e. any) type. Plucker knows it can
only handle certain file types, so it sends a more specific Accept
header containing text/html but nothing that would match
application/x-httpd-php. Apache thinks that /some/file.php has type
application/x-httpd-php and is therefore not suitable for a client
asking for text/html, which is wrong since a request for /some/file.php
would yield Content-Type: text/html. The problem here is that for
content-negotiation to work correctly, Apache needs to know the MIME
type the script will give without running it.
I read the mod_mime documentation and it seems to me that AddType and
AddHandler are meant to associate a Content-Type and a handler,
respectively, to a file, not the other way around. Using AddType to
ensure that the files are handled by mod_php (as in AddType
application/x-httpd-php .php) seems to be the wrong thing to do.
Something like
AddType text/html .php # assuming they all output HTML
AddHandler php-script .php
looks more appropriate. However this seems to work (with an extra Action
directive) when PHP is installed as a GCI, not when it is installed as a
module.
Is there a way to tell Apache to pass the file through the PHP module
without changing its MIME type to anything other than text/html? Or any
other way to get mod_php work with content-negotiation?
Thanks,
Edgar.
--- End Message ---
--- Begin Message ---
When I access a php file using Apache 1.3, 405 error occurs
Method Not Allowed
The requested method POST is not allowed for the URL /login.php
Why was that ??? How can I solve it ???
Thx you
--- End Message ---
--- Begin Message ---
Ladies and Gents,
I am having the same problem as reported here,
http://www.phpbuilder.com/mail/php-install/2003061/0025.php
gd -lz -lresolv -lm -ldl -lnsl -lcrypt -lcrypt -o sapi/cli/php
ext/gd/gd.lo: In function `zm_deactivate_gd':
/usr/src/php/ext/gd/gd.c:382: undefined reference to `gdFreeFontCache'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
[EMAIL PROTECTED] php]# vi conf.sh
./configure \
--with-apxs2=/usr/local/apache/bin/apxs \
--with-mysql=/usr/local/mysql \
--prefix=/usr/local/apache/php \
--with-config-file-path=/usr/local/apache/php \
--enable-track-vars \
--enable-force-cgi-redirect \
--enable-cgi \
--with-zlib \
--enable-magic-quotes \
--with-gd=../gd \
--with-cybercash=/usr/src/php/ext/cybercash
PLEASE HELP!
Vasiliy Boulytchev
Colorado Information Technologies Inc.
(719) 473-2800 x15
<http://coinfotech.com/>
--- End Message ---
--- Begin Message ---
I need help upgrading from ver 4.0.3 to ver 4.3.2. I've extracted the TAR,
but when I run make install, I get an error code -1
I'm running on Unix with Apache server. I tried the ./configure
with --with-mysql --with-apxs=/www/bin/apxs
Any help would be greatly appreciated.
--- End Message ---
--- Begin Message ---
I have downloaded the win32 binaries 4.3.2 and the installer. When I run the
installer I get "Could not initialize installation. File size
expected=1060020, size returned=90139." I downloaded the two windows files
"php 4.3.2 zip package [6,107kb] and php 4.3.2 installer [1,035kb] I have
tried to run the installer with the aip package unzipped, zipped, the
installer in the unzipped folder. Any ideas about what the problem is?
--- End Message ---