php-install Digest 20 Apr 2002 03:31:42 -0000 Issue 797
Topics (messages 6682 through 6696):
Re: can't view PHP
6682 by: Christoph Görgen
6696 by: joey
php install problem
6683 by: michael mcneice
Re: Sessions
6684 by: webmaster
Re: Problem loading php-module as DSO into Apache httpd
6685 by: Poetsch, Michael
6689 by: Todd Mortensen
Apache 2.0.35 and PHP 4.1.2 trouble
6686 by: Fernando Reuter Wendt
Apache 1.3 / Win2KPro / PHP4
6687 by: Bryan Maynard
Re: php4.2.0 cr4 and apache 2.0.35 wierdness
6688 by: Jim Harritt
6691 by: Rodolfo Gonzalez
Apache 1.3 / Win2KPro / PHP4 browser error 400
6690 by: Bryan Maynard
php won't exec, prompt for download
6692 by: Michael
Apache 2.0.35 and PHP 4.1.2
6693 by: Fernando Reuter Wendt
Install problem with java
6694 by: Lancashire, Pete
Re: php4 & Apache2 & winXP
6695 by: Jürgen Schoch
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 ---
> Everytime i try to view a php file on my server it prompts me to download
> the file then opens it up in word pad. I can view any other file just not
> php.
>
> Can anyone help me with this problem please?
Already tried to insert these lines into your httpd.conf ... ?
#if you use php3#
AddType application/x-httpd-php3 .php3
#if u use php4:#
AddType application/x-httpd-php3 .php4 .php
that should solve your problem after having restarted the webserver
good luck
chris
--- End Message ---
--- Begin Message ---
yes i've tried that too *sigh* :( i've read the manual over and over again
and installed it a few times and added all those lines ppl suggested but
still no luck. I'm about to just give up. I know how to work PHP but I just
can't find where this problem comes from. Maybe it's a windows thingy who
knows, maybe i need IIS on my system which of course doesn't come with Win
XP Home Edition. I read something about webpage in management tools in
Windows but i don't have that so i can't change things there. I really do
appreciate all your reactions and replies.
"Christoph görgen" <[EMAIL PROTECTED]> wrote in message
003101c1e77e$c3ca5fc0$0e00000a@AGENTUR">news:003101c1e77e$c3ca5fc0$0e00000a@AGENTUR...
>
>
> > Everytime i try to view a php file on my server it prompts me to
download
> > the file then opens it up in word pad. I can view any other file just
not
> > php.
> >
> > Can anyone help me with this problem please?
> Already tried to insert these lines into your httpd.conf ... ?
> #if you use php3#
> AddType application/x-httpd-php3 .php3
> #if u use php4:#
> AddType application/x-httpd-php3 .php4 .php
>
> that should solve your problem after having restarted the webserver
> good luck
> chris
>
--- End Message ---
--- Begin Message ---
Hi
Seem to be having the same problem as most but could'nt see any solution
info of the mailing lists/archive.
on running the PHP script get:
****************************************************
Security Alert! PHP CGI cannot be accessed directly.
etc....
****************************************************
I set cgi.force_redirect=1 in php.ini.
However its suggesting to recompile source? (don't know how to do this)
I'm using win 98 / xitami
Is there something else I should be doing?
Please reply to [EMAIL PROTECTED]
Thanks ++++
_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com
--- End Message ---
--- Begin Message ---
Hi all,
I have received some good advice from Arnaud, but still I cant get the cookieless
session to perform like it should.
Personally I no longer think that there is an implementation problem regarding code,
and how the variables are registered syntactically.
I feel it has to do with the installation. If everything was OK, then registering
variables should work exactly the same whether cookies were in use or not.
> If your session vars are not registered it may be a permission problem.
There may be. But they are successfully registered WHEN COOKIES ARE ALLOWED.
This is the mind-boggling part...is there any way the compilation flags may have not
been actually considered in the processing...ehe...?
Can anybody say they have successfully tried to disallow all cookies (stored and
per-session) on their computer, and been able to register variables against a live
server?
If anybody has a site where this works, I would like to register, log in and see it...
I would be very happy if I could make this work!
Best regards,
Eivind, [EMAIL PROTECTED]
PS.Thanks to all who have given their two cents to try and help me out so far!
--- End Message ---
--- Begin Message ---
Hi !
We finally managed to get Apache + PHP4 + MySql running on our solaris 2.8 box.
The LoadModule/AddModule instruction to load the php4 module in httpd.conf is exactly
what I found in the INSTALL file of the PHP4 source distribution.
I will attach 2 small text files which outline all the steps we undertook. Hope it
works on your system as well. I cross my fingers!
Regards & good luck
Michael
-----Original Message-----
From: Todd Mortensen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 11:00 PM
To: 'Tib'
Cc: Poetsch, Michael; Php-Install (E-mail)
Subject: RE: [PHP-INST] RE: Problem loading php-module as DSO into
Apache httpd
I am having this trouble with php4.1.2 php4.1.1 and php4.2 rc4.
Todd
-----Original Message-----
From: Tib [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 1:50 PM
To: Todd Mortensen
Cc: 'Poetsch, Michael'; Php-Install (E-mail)
Subject: Re: [PHP-INST] RE: Problem loading php-module as DSO into Apache
httpd
I had a similar problem with this. the solution I was able to come up with
was that (i'm guessing you're using apache 2 since this is the same error
I had with it) you need to use the --with-apxs2=/path/to/apache2/bin/apxs
Try it with that. I am having issues with php4.2.0 cr4, but the compile
went clean and the module isn't complaining at least.
On Thu, 18 Apr 2002, Todd Mortensen wrote:
> I tried what you suggested. I am also usingt he gnu binutils and gcc
> 3.0.3.
>
> Here is how I am trying to configure php. I can get apache to compile
> and start ok. But the php causes a problem each time.
>
> todd@svlecs01:~/src/php-4.1.2$cat config.nice
> #! /bin/sh
> #
> # Created by configure
>
> './configure' \
> '--with-mysql=/usr/local/mysql' \
> '--enable-trans-sid' \
> '--with-apxs' \
> '--with-mm=/usr/local/lib' \
> "$@"
> todd@svlecs01:~/src/php-4.1.2$sudo apachectl start
> Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
> Cannot load /usr/local/apache/libexec/libphp4.so into server: ld.so.1:
> /usr/local/apache/bin/httpd: fatal: relocation error: file
> /usr/local/apache/libexec/libphp4.so: symbol ap_block_alarms:
> referenced symbol not found /usr/local/apache/bin/apachectl start:
> httpd could not be started
>
> And I know these ap_* symbols are from apache but I don't know why
> they are not being linked properly.
>
> I will try again and repost any further findings. Thanks for the
> updates.
>
> Todd.
>
>
>
What I did before I started configure/make/make install against Apache 1.3.24:
==============================================================================
- copy libap.a from /opt/packages_cpq/apache_1.3.24/src/ap to /usr/lib
(this is the archive containing all the ap_*_* symbols)
I was under the impression that "ld" could not locate it in the source path of
apache,
but I am not sure!!!
- unset LD_LIBRARY_PATH
- rename the gnu "ld" command to "gnu-ld" and use the standard solaris ld instead
I think this was the most important part. The gnu ld comes with the gnu binutils
package.
To make sure you are using the solaris ld, just invoke it manually on the command
line.
The solaris "ld" displays this message on the screen:
kjs008-/opt/packages_cpq/apache_1.3.24> ld
usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VY:?] file(s)
The gnu "ld" command comes up like this:
kjs008-/opt/packages_cpq/apache_1.3.24> gnu-ld --version
GNU ld 2.11.2
Copyright 2001 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
Supported emulations:
elf32_sparc
elf64_sparc
My configure line for apache was:
=================================
./configure --prefix=/usr/local/apache \
--enable-module=so --enable-module=rewrite
My configure line for PHP4 was:
===============================
./configure --with-apxs=/usr/local/apache/bin/apxs \
--enable-track-vars --with-mysql=/usr/local/mysql --with-zlib
I am using the source distribution of zlib-1.1.4 which installs under
/usr/local/lib/libz.a
I needed zlib because I am using mysql-support with php4. If I do not include zlib,
Apache complains about an undefined symbol "compress" when loading libphp4.so.
MySql is the binary distribution currently available on sunfreeware.com.
--- End Message ---
--- Begin Message ---
Yes it does find the apxs script as I have /usr/local/apache/bin in my path.
I have also specified the full path as you show too. But I get the same
results.
Todd.
-----Original Message-----
From: Poetsch, Michael [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 12:25 AM
To: Todd Mortensen
Subject: RE: Problem loading php-module as DSO into Apache httpd
Hi Todd,
when I compile php I usually use:
--with-apxs=/usr/local/apache/bin/apxs
Does it locate the apache apxs script without specifying the path?
Regards
Michael
'./configure' \
'--with-mysql=/usr/local/mysql' \
'--enable-trans-sid' \
>>>> '--with-apxs' \ <<<<<<<<<<<<<<
'--with-mm=/usr/local/lib' \
"$@"
todd@svlecs01:~/src/php-4.1.2$sudo apachectl start
Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: ld.so.1:
/usr/local/apache/bin/httpd: fatal: relocation error: file
/usr/local/apache/libexec/libphp4.so: symbol ap_block_alarms: referenced
symbol not found /usr/local/apache/bin/apachectl start: httpd could not be
started
And I know these ap_* symbols are from apache but I don't know why they are
not being linked properly.
I will try again and repost any further findings. Thanks for the updates.
Todd.
-----Original Message-----
From: Poetsch, Michael [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 9:10 AM
To: Todd Mortensen
Subject: RE: Problem loading php-module as DSO into Apache httpd
Hi Todd,
just wanted to let you know that we may have got a step ahead.
I am using the GNU C-compiler, gnu binutils, gnu make and gnu ld. When I
renamed the "ld" command supplied by GNU and used the standard solaris "ld"
instead, I could compile apache and php3, link php3 as DSO to apache and
start apache. That worked.
The GNU "ld" is the one that by default installs in /usr/local/bin. Just
rename this one to "gnu-ld" or something else. Then make sure that the
location of the solaris "ld" is included in your PATH variable. The solaris
"ld" resides under /usr/ccs/bin.
When I, however, compile php3 with mysql-support
(--with-mysql=/path/to/mysql) I get some more unreferenced symbols
(mysql_free_result). On the documentation pages in the internet I found lots
of recommendations to use the latest PHP4 release. I will try that one
tomorrow. Will keep you posted!
Please let me know if this works on your box as well!
Thanks in advance & regards from Frankfurt
Michael
-----Original Message-----
From: Todd Mortensen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 3:47 AM
To: Poetsch, Michael
Subject: RE: Problem loading php-module as DSO into Apache httpd
I will be sure to let you know. I have been trying to compile 4.1.2 for a
couple weeks as well. It is very frustrating as I have new web code to use
but I developed it on 4.1.2 on freebsd. (compiles fine) And now I need it
on my solaris box.
Your right. I have seen a lot of email with the simular problems but
without any solutions.
Let me know if you find the answer first. Sounds like we have been battling
this about the same time.
Todd.
-----Original Message-----
From: Poetsch, Michael [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 8:56 AM
To: Todd Mortensen
Subject: Problem loading php-module as DSO into Apache httpd
Hello Todd,
just came across your message on the php-net. I was wondering wether you
already have a solution for this problem:
Syntax error on line 205 of /usr/local/apache/conf/httpd.conf: Cannot load
/usr/local/apache/libexec/libphp4.so into server: ld.so.1:
/usr/local/apache/bin/httpd: fatal: relocation error: file
/usr/local/apache/libexec/libphp4.so: symbol ap_block_alarms: referenced
symbol not found /usr/local/apache/bin/apachectl start: httpd could not be
started
Unfortunately I do not have the solution, but I am encountering the same
problem. I am recompiling since 2 weeks now - still no luck. It seems that
many others have similar difficulties.
My working environment is slightly different from yours, and I am trying to
compile php3 - but obviously the success is the same:
Syntax error on line 451 of /usr/local/apache/conf/httpd.conf: Cannot load
/usr/local/apache/libexec/libphp3.so into server: ld.so.1: /usr/loca
l/apache/bin/httpd: fatal: relocation error: file
/usr/local/apache/libexec/libp hp3.so: symbol ap_user_id: referenced symbol
not found ./apachectl start: httpd could not be started
If you have a fix for that problem, may I kindly ask you to let me know?
Thanks & Regards
Michael
Michael Poetsch
Compaq Frankfurt
Managed Services
Tel...: ++49 6103 383 215
Fax...: ++49 6103 383 157
eMail.: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Hello,
Thats my first message to this list, but have already some experience with
PHP, on linux based systems. Now, i´m trying to install it on a Windows 2000
Pro system, runnig Apache 2.0.35.
I have read the install.txt, and follow all the instruction set but PHP its
still not working. Here are some details about my configuration system:
- Apache 2.0.35, runnig as a Windows service and installed at C:\Arquivos de
Programas\Apache Group
- PHP 4.1.2(ziped package) extracted to C:\Arquivos de Programas\Apache
Group\PHP. And i´m trying to configure it as a Apache module, not as a CGI
executable.
And here are the changes i have make:
- php.ini (at C:\Winnt)
doc_root = C:\Arquivos de programas\Apache Group\Apache2\htdocs
extension_dir = C:\Arquivos de programas\Apache Group\PHP
- httpd.conf (apache)
LoadModule php4_module c:/Arquivos de Programas/Apache
Group/PHP/sapi/php4apache.dll
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
AddModule mod_php4.c
I´m starting to think it´s some apxs 2 problem. Someone can help, or has the
same situation?
Thank you,
+------------------------------
Fernando A. R. Wendt
Webmaster & Webdesigner - ACS
UNIJUÍ - Universidade Regional
http://www.unijui.tche.br
mailto:[EMAIL PROTECTED]
------------------------------+
--- End Message ---
--- Begin Message ---
Hello All,
I have just started with php and I thought all was well. However I will
state problem and then my procedures.
Problem: I run a .php file and I get nothing but a blank screen. I view the
source and the php code is not there indicating that apache sent it to the
php program, right? I run an html file containing php and again no display
but the code is still in the source.
This is what I have done.
I extracted the zip file containing the php files and put them in C:\php4. I
then copied all of the dll's from the dll subdir and copied them into the
C:\winnt\system32 dir. I then take copy the php4ts.dll and put it in the
system dir as well. I then copy the php.ini_recommend and put it into the
C:\winnt dir and rename it to php.ini. Then I edit php.ini with the
following: [doc_root = "C:\wwwroot"] , and [extension_dir =
C:\php4\extensions]. I then go to the httpd.conf file and add the following:
[LoadModule php4_module c:/php4/sapi/php4apache.dll] placed last on the list
of other "LoadModule" directives. I then add [AddModule mod_php4.c] last on
the list of other "AddModule directives. Then [AddType
application/x-httpd-php .php4 .php .phtml] and [AddType
application/x-httpd-php-source .phps] in the file where it refers to
document types. I then added the user [IUSR_(machinename)] to my user list
and verified that the php.exe prog was working properly.
That is what I have done and there is my problem. Please help me with this.
I am usually very deductive with this stuff but I have used all known
resources to get nowhere.
Thanks
Bryan
P.S. In the meantime I will install as cgi...hopefully I can get that to
work.
--- End Message ---
--- Begin Message ---
On Wed, 2002-04-17 at 23:27, Tib wrote:
> I cranked the log level up to debug on apache and tried again.
>
> Here's the wierd part: If I start apache without the php module, then edit
> the config file and uncomment the php module line, then restart apache -
> it stays up. If I do a full stop and start, then it won't come back and I
> still get no complaints about the php module.
>
>
I hate to sent a me too, but I've been having this problem since I went
to 2.0.35. But I never tried apachectl restart to load the php module.
You are right, I loads and php runs perfectly.
I'm running on debian unstable, 2.4.18 kernel, if that makes a
difference.
--
Jim Harritt
ISE - Collaborative Computing
Hewlett-Packard Co.
--- End Message ---
--- Begin Message ---
On 18 Apr 2002, Jim Harritt wrote:
> > it stays up. If I do a full stop and start, then it won't come back and I
> > still get no complaints about the php module.
> I hate to sent a me too, but I've been having this problem since I went
> to 2.0.35. But I never tried apachectl restart to load the php module.
And under my WinXP box (just for testing), Apache complains that the
module is not found, and quits.
--- End Message ---
--- Begin Message ---
Since I have not been able to get the sapi module to work yet with apache I
have tried to install php as cgi. Now every time I go to view php files I
get a 400 server error. It would seem logical to think that it was something
to do with apache instead but nonetheless due to a misconfiguration I made
perhaps. Any assistance is greatly appreciated. More specific information
will be given if requested.
Thanks,
Bryan
--- End Message ---
--- Begin Message ---
Hi,
I just finished installing apache / php, and when ever I access a php
page, it prompts for download. --> www.dns-123.com/p.php (phpinfo)
Apache is configured as:
SSL_BASE=../openssl-0.9.6b/ \
./configure --enable-module=all --enable-module=so
--disable-module=auth_db --enable-shared=max --enable-module=ssl
--enable-rule=EAPI --disable-rule=WANTHSREGEX --enable-module=auth_dbm
--enable-suexec --suexec-caller=apache
PHP was compiled with:
CPPFLAGS="-DEAPI" ./configure --with-apxs=/usr/local/apache/bin/apxs
--enable-pic --enable-shared=max --enable-inline-optimization
--with-regex=system --with-gettext --with-gd=shared --with-png
--with-zlib --without-db2 --without-db3 --with-gdbm --enable-debugger
--enable-magic-quotes --enable-safe-mode --enable-sysvsem
--enable-sysvshm --enable-track-vars --enable-yp --enable-ftp
--with-mysql=/usr/local/mysql --with-pgsql=shared --without-oracle
--without-oci8 --with-openssl --with-xml --enable-trans-sid
--enable-sockets --enable-freetype-4bit-antialias-hack
--enable-memory-limit --with-kerberos=/usr/kerberos
I do have the addtype for php & phps in httpd.conf the file.
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Yet, I still cannot get it to work. I've restarted apache, and rebooted
the server.
I can provide my httpd.conf file if needed.
Any ideas?
Thanks
Michael
--- End Message ---
--- Begin Message ---
Hello,
This is a Apache or PHP bug? Why this is not working anymore?
Listen, a have already tryed to use the new candidate release 4.2, but it´s
still failling. So, i will go back to Apache 1.3.24.
So long,
+------------------------------
Fernando A. R. Wendt
Webmaster & Webdesigner - ACS
UNIJUÍ - Universidade Regional
http://www.unijui.tche.br
mailto:[EMAIL PROTECTED]
------------------------------+
--- End Message ---
--- Begin Message ---
Anyone else seen this or can tell me what I'm doing wrong ?
TIA -pete
---Environment------------------------------------
Solaris Sparc 2.8 Patchkit as of 5/Apr/2002
Gcc 3.0.3 (Sunfreeware)
binutils 2.11.2 (Sunfreeware)
GNU Make version 3.79.1 (Sunfreeware)
GNU libtool 1.4 (1.920 2001/04/24 23:26:18) (Sunfreeware)
java j2sdk1_3_1_03 or java1.2 or java1.4.0
Zlib 1.1.4 (source)
php 4.1.2
---------------------------------------------------
---Failing configure--------------------------------
./configure \
--with-apxs=/usr/local/apache/bin/apxs \
--with-config-file-path=/usr/local/apache/httpd/conf \
--without-mysql \
--with-zlib-dir=/usr/local \
--with-zlib=/usr/local \
--with-java=/usr/j2sdk1_3_1_03 (and java1.2 and j2sdk1.4.0)
----------------------------------------------------
---Working configure--------------------------------
./configure \
--with-apxs=/usr/local/apache/bin/apxs \
--with-config-file-path=/usr/local/apache/httpd/conf \
--without-mysql \
--with-java=/usr/j2sdk1_3_1_03
----------------------------------------------------
---snipped output from make-------------------------
Making all in java
make[2]: Entering directory `/usr/local/build/php-4.1.2/ext/java'
make[3]: Entering directory `/usr/local/build/php-4.1.2/ext/java'
/bin/sh /usr/local/build/php-4.1.2/libtool --silent --mode=compile gcc
-I. -I/usr/local/build/php-4.1.2/ext/java
-I/usr/local/build/php-4.1.2/main -I/usr/local/build/php-4.1.2
-I/usr/local/apache/include -I/usr/local/build/php-4.1.2/Zend
-I/usr/local/include -I/usr/local/build/php-4.1.2/ext/xml/expat
-I/usr/j2sdk1_3_1_03/include -I/usr/j2sdk1_3_1_03/include/solaris
-D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=280 -DMOD_SSL=208108 -DMOD_PERL
-DUSE_PERL_SSI -DEAPI -DEAPI_MM -DUSE_EXPAT
-I/usr/local/build/php-4.1.2/TSRM -g -O2 -prefer-pic -DJNI_12
-D_REENTRANT '-DJAVALIB="/usr/j2sdk1_3_1_03/jre/lib/sparc/libjava.so"'
-c java.c && touch java.slo
java.c: In function `jvm_create':
java.c:160: parse error before '*' token
java.c:192: `JNI_CreateVM' undeclared (first use in this function)
java.c:192: (Each undeclared identifier is reported only once
java.c:192: for each function it appears in.)
java.c:192: parse error before "JNICALL"
java.c:193: `type name' declared as function returning a function
java.c:193: cast specifies function type
java.c: At top level:
java.c:650: syntax error before "void"
java.c:664: syntax error before "void"
java.c:672: syntax error before "void"
java.c:680: syntax error before "void"
java.c:688: syntax error before "void"
java.c:711: syntax error before "void"
java.c:717: syntax error before "jlong"
java.c:727: syntax error before "jlong"
java.c:738: syntax error before "jlong"
java.c:751: syntax error before "void"
java.c:759: syntax error before "void"
make[3]: *** [java.slo] Error 1
make[3]: Leaving directory `/usr/local/build/php-4.1.2/ext/java'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/build/php-4.1.2/ext/java'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/build/php-4.1.2/ext'
make: *** [all-recursive] Error 1
-------------------------------------------------
--- End Message ---
--- Begin Message ---
Forget about compiling, use binaries 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. 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)
optional: 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
Jas wrote:
> I have been looking at the documentation for Apache and the documentation
> for php and I am lost... Could someone point out a quick and easy way for
> installation (without the use of the exe?) Yeah I know, stupid, but I want
> to try this out.
> Thanks in advance,
> Jas
--- End Message ---