php-install Digest 18 Mar 2002 20:32:04 -0000 Issue 750

Topics (messages 6392 through 6404):

[IIS]multi homing and php_value, php_admin
        6392 by: Pierre-Alain Joye

php+apache+wml
        6393 by: Fabio Spinelli
        6396 by: Jürgen Schoch

Re: GD/Zlib install problems
        6394 by: Jürgen Schoch

Re: Problem with installation under windows 98 (php4apache.dll)!!!!
        6395 by: Jürgen Schoch

Re: PHP4 configure failure...
        6397 by: Jürgen Schoch

session trouble
        6398 by: Martin

Re: windows compilation
        6399 by: Jürgen Schoch

Re: Zend compile problem on Solaris 8
        6400 by: Tony

Problems with PHP and MySQL
        6401 by: Liam Gibbs

Upgrade to 4.1.2
        6402 by: C vd Veen

4.1.2 make fails with "multiple definition of mm"
        6403 by: Kai Schaetzl

Re: RedHat 7.2 PHP install
        6404 by: Kai Schaetzl

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,

Anyone got a solution to make a host specific php configuration (especially
include_path) with IIS ?

I currently use an autoprepend and ini_set; the problem is I have to modify
it everytime I add a host, and do not look clean as I want :).

tia

pa

--- End Message ---
--- Begin Message ---
hi all, I'd like to write some WAP pages, generated by a PHP script.

I use Apache on a RedHat 7.1
If I put on the webserver a normal page .wml and I connect to this page via
mobile phone it works fine.

If I put a page .php that return a wap page I get this error:

"The WAP site you have requested () has the MIME-type text/html, which is
not handled by this browser. This usually means that the requested page is
made for WWW rather than the mobile internet, or that the content-provider's
server is misconfigured."

I tried to change some voice of the htttpd.conf file by specifying the MIME
type to handle, but without success.

Can anyone help me by telling how to configure exactly Apache to run .PHP
pages that gives an output in a MIME content that is compatible with WML?
(and also have the normal PHP pages via normal browser still working)

Thanks to everybody, Fabio Spinelli
http://www.kel666.it



--- End Message ---
--- Begin Message ---
Hi,
I hav no idea about wap, but I think by default, PHP is configured to send HTML
output to the browser. The web server does this by sending a content-type =
text/html header along with your HTML code. This tells the browser that it will
be receiving HTML.
To override this behaviour of the webserver maybe try to use in your
php-scripts:
    header("Content-type: text/wml");

Fabio Spinelli wrote:

> hi all, I'd like to write some WAP pages, generated by a PHP script.
>
> I use Apache on a RedHat 7.1
> If I put on the webserver a normal page .wml and I connect to this page via
> mobile phone it works fine.
>
> If I put a page .php that return a wap page I get this error:
>
> "The WAP site you have requested () has the MIME-type text/html, which is
> not handled by this browser. This usually means that the requested page is
> made for WWW rather than the mobile internet, or that the content-provider's
> server is misconfigured."
>
> I tried to change some voice of the htttpd.conf file by specifying the MIME
> type to handle, but without success.
>
> Can anyone help me by telling how to configure exactly Apache to run .PHP
> pages that gives an output in a MIME content that is compatible with WML?
> (and also have the normal PHP pages via normal browser still working)
>
> Thanks to everybody, Fabio Spinelli
> http://www.kel666.it

--- End Message ---
--- Begin Message ---
Sorry,
but neither the upgrade to zlib-1.1.4 nor the usage of absolute paths help

Jürgen Schoch wrote:

> Hi there,
> I am trying to install GD1.8.4 on a DEC Alpha Tru64 v5.1 with PHP4.1.2
> and Apache 3.1.19 or 3.1.23
> I installed and compiled gd-1.84., zlib-1.1.3, libpng-1.2.1,
> freetype-2.0.8. All works fine, gddemo produces nice output
>

--- End Message ---
--- Begin Message ---
Hi Andrea,
the installer will install php as a cgi-executable, not as Sapi-modul.
The manual in the file install.txt is a bit confusing, try my version instead:

> The following worked for my system (Win2000 and Apache3.1.22):
>
> 1) Download Windows binaries php-4.1.2-installer.exe and php-4.1.2-Win32.zip
> from www.php.net
>>
> 2) Don't try to install php from the zip but use the exe to install php
> without extensions as a cgi-executable. This will put all standard dlls to the right 
>place and
> do some registry entries.
> I used the path "C:\webserver\php", be sure to modify this to your settings in the 
>entries below
>
optional:
> 3) Unpack the zip and copy the extensions folder to your php install
> directory (e.g. c:\webserver\php)
>     There a precompiled php_gd.dll is contained with support for jpeg, png,
> freetype2, ttf
>
optional:
> 4) Edit php.ini which resides in %Windir%
> Locate the paths and directories section and make entries similar to below:
>     ;;;;;;;;;;;;;;;;;;;;;;;;;
>     ; Paths and Directories ;
>     ;;;;;;;;;;;;;;;;;;;;;;;;;
>     include_path=; UNIX: "/path1:/path2"  Windows: "\path1;\path2"
>     doc_root=; the root of the php pages, used only if nonempty
>     user_dir=; the directory under which php opens the script using /~username
>     ; directory in which the loadable extensions (modules) reside
>     extension_dir=c:\webserver\php\EXTENSIONS
>     extension=php_gd.dll
>     extension=php_zlib.dll
>     enable_dl=On
>
> I am not sure about dependencies, but it may be that for png support zlib is
> necessary (at least when compiling it in unix), so it may be good to enable
> php_zlib.dll too.
>
> 5) Configurate and restart your webserver
> eg. for apache in httpd.conf:
>
>     # Path to PHP.EXE directory -- change ScriptAlias to suit your config.
>     # Attention: Paths are unix style with slash not backslash, even on
>     #Windows-PCs
>     ScriptAlias /php4/ "c:/webserver/php"
>     Action application/x-httpd-php4 "/php4/php.exe"
>     AddType application/x-httpd-php4 .php
>     AddType application/x-httpd-php4 .php3
>     DirectoryIndex index.html default.htm index.php index.php3
>
> 6) Check installation by a script containing
>     <?php phpinfo(); ?>
>  If you did optional steps 3 and 4 then the output should contain a section:
> gd
>       GD Support enabled
>       GD Version 1.6.2 or higher
>       FreeType Support enabled
>       FreeType Linkage with TTF library
>       JPG Support enabled
>       PNG Support enabled
>       WBMP Support enabled


 I hope this helps.

 Jürgen Schoch


Andrea Soracchi wrote:

> Hi,
>
> I have downloaded the last installer php (920 Kb) from php.net. I have installed 
>with setup.exe and all is Ok.
> I'm reading the install.txt for use php with apache (the last version) and there is 
>wrote :
>
>             LoadModule php4_module c:/php/sapi/php4apache.dll
>             AddModule mod_php4.c
>             AddType application/x-httpd-php .php
>
> But the file php4apachedll doesn't exist. Where can i find it?!?! There is a problem

--- End Message ---
--- Begin Message ---
Hi Christophe,
I think the linker has problems finding your gd libraries. Are you sure the path
given in --with-gd=/tmp/orange/gd-1.8.4 is valid?

Christophe wrote:

> Hi,
>
> I have a Sun box (UltraSparc-IIi, 512 MB RAM,...) running Solaris 8.
>
> I have a PHP 4.1.1 source, which I want to compile CGI-mode (for testing
> only)
> with java support, essentially...
>
> the following is the contents of the debug.log file found by the PHP dir...
>
> I'm totally stuck with this...
>
> thanx alot for helping...
>
> --Christophe
>
> ------------------------------DEBUG.LOG-----------------------------------
> sparc-osm-3# cat debug.log
> CONFIGURE:   './configure' '--with-oci8=/opt/Poracle/product/8.1.6/'
> '--with-gd=/tmp/orange/gd-1.8.4' '--with-jpeg=/usr/local/lib'
> '--enable-bcmath' '--with-java=/usr/java' '--with-zlib' '--with-mysql=no'
> CC:         gcc
> CFLAGS:     -g -O2
> CPPFLAGS:    -D_POSIX_PTHREAD_SEMANTICS
> CXX:
> CXXFLAGS:
> INCLUDES:      -I$(top_builddir)/Zend -I/usr/local/include -I/tmp/orange/gd-
> 1.8.4/ -I/opt/Poracle/product/8.1.6//rdbms/public -I/opt/Poracle/product/8.1
> .6//rdbms/demo -I/opt/Poracle/product/8.1.6//network/public
> LDFLAGS:     -R/usr/ucblib -L/usr/ucblib -R/usr/local/lib/gcc-lib/sparc-sun-
> solaris2.8/3.0 -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0 -R/usr/loca
> l/lib -L/usr/local/lib -R/tmp/orange/gd-1.8.4/ -L/tmp/orange/gd-1.8.4/ -R/op
> t/Poracle/product/8.1.6//lib -L/opt/Poracle/product/8.1.6//lib
> LIBS:       -lsched -ldl -lgen -lsocket -lnsl -l -lgd -lz -lcrypt -lresolv -
> lresolv -lresolv -lm -ldl -lnsl -lsocket  -lsocket -lgcc -lcrypt -lclntsh
> DLIBS:
> SAPI:       cgi
> PHP_RPATHS:  /usr/ucblib /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0
> /usr/local/lib /tmp/orange/gd-1.8.4/ /opt/Poracle/product/8.1.6//lib
> uname -a:   SunOS sparc-osm-3 5.8 Generic_108528-10 sun4u sparc
> SUNW,UltraSPARC-IIi-Engine
>
> gcc -o
> conftest -g -O2  -D_POSIX_PTHREAD_SEMANTICS  -R/usr/ucblib -L/usr/ucblib -R/
> usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0 -L/usr/local/lib/gcc-lib/spar
> c-sun-solaris2.8/3.0 -R/usr/local/lib -L/usr/local/lib -R/tmp/orange/gd-1.8.
> 4/ -L/tmp/orange/gd-1.8.4/ -R/opt/Poracle/product/8.1.6//lib -L/opt/Poracle/
> product/8.1.6//lib
> conftest.c -lsched -ldl -lgen -lsocket -lnsl -l -lgd -lz -lcrypt -lresolv -l
> resolv -lresolv -lm -ldl -lnsl -lsocket  -lsocket -lgcc -lcrypt -lclntsh
> 1>&5
> ld: fatal: library -l-lgd: not found
> ld: fatal: File processing errors. No output written to conftest
> collect2: ld returned 1 exit status
> sparc-osm-3#
> ----------------------------------------------------------------------------
> ---------------------

--- End Message ---
--- Begin Message ---
Hmm I have registred the Session $Namn
by the following snippet:

<< File1 >>
<?
session_register("Namn");
$Namn = "sweden";
echo"ett litet test med sessioner";
?>

And when I goes to:
<< File2 >>
<?
session_start() ;
session_register("Namn");
echo"Hejsan $Namn !";
?>

Nothings happening...
My Session in php.ini looks like this:


[Session]
; Handler used to store/retrieve data.
session.save_handler = files

; Argument passed to save_handler.  In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
; variable in order to use PHP's session functions.
session.save_path = /tmp

; Whether to use cookies.
session.use_cookies = 1


; Name of the session (used as cookie name).
session.name = PHPSESSID

; Initialize session on request startup.
session.auto_start = 0

; Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 0

; The path for which the cookie is valid.
session.cookie_path = /

; The domain for which the cookie is valid.
session.cookie_domain =

; Handler used to serialize data.  php is the standard serializer of PHP.
session.serialize_handler = php

; Percentual probability that the 'garbage collection' process is started
; on every session initialization.
session.gc_probability = 1

; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
session.gc_maxlifetime = 1440

; Check HTTP Referer to invalidate externally stored URLs containing ids.
session.referer_check =

; How many bytes to read from the file.
session.entropy_length = 0

; Specified here to create the session id.
session.entropy_file =

;session.entropy_length = 16

;session.entropy_file = /dev/urandom

; Set to {nocache,private,public} to determine HTTP caching aspects.
session.cache_limiter = nocache

; Document expires after n minutes.
session.cache_expire = 180

; use transient sid support if enabled by compiling with --enable-trans-sid.
session.use_trans_sid = 1

url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"




The tmp map is also set and the session is created...but the browser cant
reach it!!!!
please help me!!
best regards
--
Martin Eriksson
webdesigner & Utvecklare
----------------------------------------------------------------
[EMAIL PROTECTED]
http://www.svensk-design.com

--
Martin Eriksson
webdesigner & Utvecklare
----------------------------------------------------------------
[EMAIL PROTECTED]
http://www.svensk-design.com


--- End Message ---
--- Begin Message ---
 Forget about compiling, use binaries instead. Cygwin is only necessary for
Unix-application for which no Win32 Port exists (e.g. postgresql), but
apache and php can run in native mode on win32.  Instead of including all
this --with-  options in your compilation, just enable the desired
extensions in your php.ini.  I think compilation is only necessary if you
have some very special needs, that are not included in the normal Win32
binaries.

The following worked for my system (Win2000 and Apache3.1.22):

 1) Download Windows binaries php-4.1.2-installer.exe and
php-4.1.2-Win32.zip
 from www.php.net

 2) Don't try to install php from the zip but use the exe to install php
 without extensions as cgi-executable. This will put all standard dlls to
the right place and
 do some registry entries.

 3) Unpack the zip and copy the extensions folder to your php install
 directory (e.g. c:\webserver\php)
     There a precompiled php_gd.dll is contained with support for jpeg,
png,
 freetype2, ttf

 4) Edit php.ini which resides in %Windir%
 Locate the paths and directories section and make entries similar to
below:
     ;;;;;;;;;;;;;;;;;;;;;;;;;
     ; Paths and Directories ;
     ;;;;;;;;;;;;;;;;;;;;;;;;;
     include_path=; UNIX: "/path1:/path2"  Windows: "\path1;\path2"
     doc_root=; the root of the php pages, used only if nonempty
     user_dir=; the directory under which php opens the script using
/~username
     ; directory in which the loadable extensions (modules) reside
     extension_dir=c:\webserver\php\EXTENSIONS
     extension=php_gd.dll
     extension=php_zlib.dll
     enable_dl=On

 I am not sure about dependencies, but it may be that for png support zlib
is
 necessary (at least when compiling it in unix), so it may be good to
enable
 php_zlib.dll too.

 5) Configurate and restart your webserver
 eg. for apache in httpd.conf:

     # Path to PHP.EXE directory -- change ScriptAlias to suit your config.

     # Attention: Paths are unix style with slash not backslash, even on
     # Windows-PCs
     ScriptAlias /php4/ "c:/webserver/php"
     Action application/x-httpd-php4 "/php4/php.exe"
     AddType application/x-httpd-php4 .php
     AddType application/x-httpd-php4 .php3
     DirectoryIndex index.html default.htm index.php index.php3

 6) Check installation by a script containing
     <?php phpinfo(); ?>
     The output should contain a section:
       gd
       GD Support enabled
       GD Version 1.6.2 or higher
       FreeType Support enabled
       FreeType Linkage with TTF library
       JPG Support enabled
       PNG Support enabled
       WBMP Support enabled


 I hope this helps.

 Jürgen Schoch


Think A Bit wrote:

> Hi there, i'm new to this list.
>
> I tried to compile php 4.1.2 on a win2k machine with visual c++ and
> finally succeeded (except those 38 warnings ...)
>
> But: where do i put those --with stuff like --with-t1lib or even
> --with-gd
>
> I have cygwin running, but don't quite know what it does that can't be
> done through win2k as well?
>
> Trying to start this configure thing i got this:
>
> $ ./configure
> creating cache ./config.cache
> checking for a BSD compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking whether make sets ${MAKE}... make: not found
> no
> 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
> Updated php_version.h
> checking whether to enable maintainer-specific portions of Makefiles...
> no
> checking host system type... i686-pc-cygwin
> checking for gawk... gawk
> checking for bison... bison -y
> checking bison version... 1.27 (ok)
> checking for gcc... no
> checking for cc... no
> configure: error: no acceptable cc found in $PATH
>
> (and, yes, i have added c:\cygwin to the path-variable in the
> system-tray and even restarted...)
>
> furthermore: there's the distribution version of php 4.1.1, but no
> source for that, and there's just the source for 4.1.2 - can i simply
> put the new compiled php.exe and php4ts.dll where the old ones were?
>
> Thanx for your help,
>
> Best regards,
>
> oliver

--- End Message ---
--- Begin Message ---
i've done the steps you suggested a number of times and it didn't work.  the
compilation always stops at the same place.  this is actually a re-build of
php.  i've got php 4.0.6 already installed, but now i'm upgrading to php
4.1.2 and adding mysql support.  however, i tried re-compiling php 4.0.6
without mysql and it broke at the same place.

-tony


"Yasuo Ohgaki" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> make distclean; ./configure <options>; make
> does not fix the problem?
>
> --
> Yasuo Ohgaki
>
> Tony wrote:
> > PHP seems to configure just fine with:
> >
> > #
> >
./configure --with-mysql=/usr/local/mysql --with-apache=../apache_1.3.23 --e
> > nable-track-vars --disable-short-tags
> >
> > However, when I do a make I get the following error:
> >
> > zend_llist.c: In function `zend_llist_apply_with_arguments':
> > zend_llist.c:239: `__builtin_va_alist' undeclared (first use in this
> > function)
> > zend_llist.c:239: (Each undeclared identifier is reported only once
> > zend_llist.c:239: for each function it appears in.)
> > make[1]: *** [zend_llist.lo] Error 1
> > make[1]: Leaving directory `/usr/local/src/php-4.1.2/Zend'
> > make: *** [all-recursive] Error 1
> >
> >
> > I just did a build on a FreeBSD box without any problems, so I'm
thinking
> > its box related.  Like I don't have a particular library in my path or
> > something like that.  If you know what this relates too, please let me
know.
> > I've looked around for this particular problem and couldn't come up with
> > anything similar.
> >
> > Thanks for you help,
> > T.
> >
> >
>
>


--- End Message ---
--- Begin Message ---
I'm trying to install MySQL and PHP so that they'll
work together. But every time I run a MySQL command
(sqlconnect, etc.) it can't find PHP. Does anybody
know what installation configuration I have to use to
get PHP to know where MySQL is installed?

I'm running on Debian with PHP 4 and Apache.

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/
--- End Message ---
--- Begin Message ---
Yesterday I upgraded PHP from 4.1.1 to 4.1.2, everything worked normal, untill I used Mysql.
 
This is what I get:
 
Security Alert! PHP CGI cannot be accessed directly.

This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set. This variable is set, for example, by Apache's Action directive redirect.

You may disable this restriction by recompiling the PHP binary with the --disable-force-cgi-redirect switch. If you do this and you have your PHP CGI binary accessible somewhere in your web tree, people will be able to circumvent .htaccess security by loading files through the PHP parser. A good way around this is to define doc_root in your php.ini file to something other than your top-level DOCUMENT_ROOT. This way you can separate the part of your web space which uses PHP from the normal part using .htaccess security. If you do not have any .htaccess restrictions anywhere on your site you can leave doc_root undefined. If you are running IIS, you may safely set cgi.force_redirect=0 in php.ini

 

When I turn off the cgi.force_redirect function it works fine again, but I want to know if it is save on a Xitami webserver running on a Windows 98 machine...

If someone knows... pls. help.

 

Thanks

 


C van de Veen
[EMAIL PROTECTED]

http://www.baarnhosting.nl

 

 
--- End Message ---
--- Begin Message ---
I'm trying to compile 4.1.2 on a Red Hat 6.1 box with the same 
configure string I used for 4.0.6. Configure is ok but make fails 
here. What can I do?

/usr/local/lib/libmm.a(mm_global.o): In function `MM_create':
mm_global.o(.text+0x0): multiple definition of `MM_create'
Zend/.libs/libZend.al(mm_global.o)(.text+0x0): first defined here
- snipped a lot of mm_ errors -
Zend/.libs/libZend.al(mm_lib.o)(.text+0x14c): first defined here
/usr/local/lib/libmm.a(mm_lib.o): In function `mm_lib_version':
mm_lib.o(.text+0x164): multiple definition of `mm_lib_version'
Zend/.libs/libZend.al(mm_lib.o)(.text+0x164): first defined here
/usr/local/lib/libmm.a(mm_vers.o)(.data+0x0): multiple definition of 
`mm_version'
Zend/.libs/libZend.al(mm_vers.o)(.data+0x0): first defined here
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/home/usr/src/tarballs/php4/php-4.1.2'
make: *** [all-recursive] Error 1


Kai

--

Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com
IE-Center: http://ie5.de & http://msie.winware.org



--- End Message ---
--- Begin Message ---
> What am I missing here.
> Is there some one making an rpm / script for RehHat that
> will build a php/mysql/apache server ?
>

Why don't you just install the latest rpms from red hat? It's all 
there.


Kai

--

Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com
IE-Center: http://ie5.de & http://msie.winware.org
ClubWin - Help for Windows Users: http://www.clubwin.com



--- End Message ---

Reply via email to