php-install Digest 13 May 2002 22:09:57 -0000 Issue 833

Topics (messages 6950 through 6962):

PHP 4.2.0  CGI install with IIS5 dot net and (W2k Server)
        6950 by: Eddie Thomas
        6952 by: Christoph Grottolo

Re: Problem with PHP + Apache and htaccess file, posible BUG.
        6951 by: Securez

Re: php_ldap.dll for win32??
        6953 by: Christoph Grottolo

Re: Help compiling PHP4.0.6 with GD Freetype support enabled
        6954 by: S. Wong

Re: Windows.NET
        6955 by: Christoph Grottolo

Re: PHP 4.2.0 causes...oddities...in Apache2.
        6956 by: Alessandro Federico

PHP w/SAPRFC and netscape 4
        6957 by: William Barron

php_value on a per instance basis
        6958 by: Csaba2000

TIME_WAIT
        6959 by: chad kellerman

Apache 2.0.35 + php 4.2.0 -- yields but one error in browser.
        6960 by: Andrew Lietzow

Re: Apache 2.0.36 + php 4.2.0
        6961 by: Andrew Lietzow

Problems with globals on php 4.0.6/IIS 4
        6962 by: Jan Erik Dyve

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 ---
After following the install instructions to the letter I find that a test
phpinfo.php page will not open. I am using the php-cli.exe in the php folder
(I assume this right). The phpinfo script works from the command line OK.
I tried moving the php.ini, php-cli.exe and php4ts.dll to the IIS scripts
folder but I still have the same problem.

I can only assume the problem occures because this is a dot net version on
W2k Server.

Any ideas?

Eddie.




--- End Message ---
--- Begin Message ---
The correct exe is php.exe. In 4.2.0 you find it in the sapi directory of
the php distribution (before and after it resides in the root directory).
You should copy it to the root directory.

php-cli.exe is the command line interface.

Christoph

Eddie Thomas wrote:
> After following the install instructions to the letter I find that a
> test phpinfo.php page will not open. I am using the php-cli.exe in
> the php folder (I assume this right). The phpinfo script works from
> the command line OK. I tried moving the php.ini, php-cli.exe and
> php4ts.dll to the IIS scripts folder but I still have the same
> problem.
>
> I can only assume the problem occures because this is a dot net
> version on W2k Server.
>
> Any ideas?
>
> Eddie.

--- End Message ---
--- Begin Message ---
I have a dir with a page in html:

test.html =>

<?php
phpinfo();
?>

when i call this file to the server it's not procesed, ok.
But when i put in this dir a .htaccess file to change the include_path of
php the html file are procesed by the php core, my htaccess file look like
that:
<IfModule mod_php4.c>
php_value include_path ".:/usr/local/php/lib/php"
</IfModule>

Any help about this will apreciated.

Regards.


--- End Message ---
--- Begin Message ---
You will find it again in php 4.2.1 which will be released shortly. If you
need it before you can get it at http://snaps.php.net/win32.

Christoph

Doug Vos wrote:
> Where is  php_ldap.dll for win32??
>
> Not part of php-4.2.0-Win32 package?
>
> Must download from U of Mich and compile?
> Must download from OpenLDAP?
> Must download from Netscape?
>
> NOT GOOD OPTIONS for me.
>
> Just need 'php_ldap.dll' as per php documentation.

--- End Message ---
--- Begin Message ---
Resend ... I guess I messed up and didn't get this sent.  Again, please
reply to me @ [EMAIL PROTECTED]

Thanks! :-)

Ciao ?:-)
Shirlyn

"In times of change,
there is no incentive so great,
and no medicine so powerful
as the hope for a better tomorrow."


-----Original Message-----
From: S. Wong [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, May 09, 2002 4:45 PM
To: '[EMAIL PROTECTED]'
Subject: Help compiling PHP4.0.6 with GD Freetype support enabled


Hello everyone,

First, since I was hoping not to get a barrage of e-mails regarding PHP
just quite yet I have decided not to subscribe to the list.  So if you
would please, cc me on your reply.  My e-mail is [EMAIL PROTECTED]
Thanks in advance.

I'm still a PHP newbie.  However, my problem warrants some help maybe
with versions working with each other since the compilations all went
through nicely.  

Here's what I have :

Solaris 8
PHP 4.0.6
Apache 1.3.23
GD 1.8.3
Freetype 1.3.1
JPEG 6b
PNG 1.2.2
ZLIB 1.1.4


When I do a phpinfo, I see

Build Date May  9 2002 
Configure Command  './configure'
'--with-mysql=/usr/local/contrib/mysql/mysql-3.23.49'
'--with-apache=../apache_1.3.23' '--with-gd-dir=/usr/local/lib'
'--with-gd' '--with-jpeg-dir=/usr/local/lib' '--with-jpeg'
'--with-png-dir=/usr/local/lib' '--with-png'
'--with-zlib-dir=/usr/local/lib' '--with-zlib' '--enable-gd-native-tt'
'--with-ttf-dir=/usr/local/contrib/freetype1.3.1/lib' '--with-ttf'
'--enable-track-vars' 

which are the correct build date and configure options but when I scroll
down to the GD section, I'm hoping to find Freetype Support enabled and
Freetype Linkage = with TTF library like the Linux system my colleague
has but I see none on my Solaris build.

What have I missed, I've skimmed through a bit of the archives and
determined that gd1.8.3 would work with Freetype 1.3.1 and that in 4.0.6
it was "--enalbe-gd-native-tt"  but other than that I can't figure what
might be missing that Freetype Support is not linked in.

I did this [Also, I do a make clean on each item just to be sure it's
clean] :

configure/install JPEG/PNG/ZLIB/Freetype [Freetype I did
--disable-shared flag] configure/install gd-1.8.3 [w/ LIBS=-lm -lttf
-lgd -lpng -lz -ljpeg]

[for some reason 1.8.4 messes up trying to compile with -DHAVE_LIBTTF
and -lttf so I went back one version which compiled nicely I think]

Then I configure PHP ... (if necessary, I can post the entire transcript
but for now, I think maybe snippet of the configure and section on gd
would suffice.

php-4.0.6
./configure  --with-mysql=/usr/local/contrib/mysql/mysql-3.23.49
--with-apache=../apache  ^H_1.3.23 --with-gd-dir=/usr/local/lib
--with-gd --with-jpeg-dir=/usr/local/lib --with-jp eg
^H--with-png-dir=/usr/local/lib --with-png
--with-zlib-dir=/usr/local/lib --with-zlib --enab ^Hle-gd-native-tt
--with-ttf-dir=/usr/local/contrib/freetype1.3.1/lib --with-ttf --
enable-track- ^Hvars
loading cache ./config.cache
checking for a BSD compatible install... ./install-sh -c checking
whether build environment is sane... yes checking whether make sets
${MAKE}... (cached) 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...
sparc-sun-solaris2.8 checking for gawk... (cached) nawk checking for
bison... no checking for byacc... no
configure: warning: You will need bison if you want to regenerate the
PHP parsers. checking for gcc... (cached) 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... (cached)
yes checking whether gcc accepts -g... (cached) yes checking how to run
the C preprocessor... (cached) gcc -E

<snip>

checking whether to include GD support... yes
checking whether to enable truetype string function in gd... yes
checking for the location of libjpeg... yes checking for
jpeg_read_header in -ljpeg... (cached) yes checking for the location of
libpng... yes checking for png_info_init in -lpng... (cached) yes
checking for the location of libXpm... no If configure fails try
--with-xpm-dir=<DIR> checking for freetype(2)... no If configure fails
try --with-freetype-dir=<DIR> checking whether to include include
FreeType 1.x support... yes checking whether to include T1lib support...
no checking for gdImageString16 in -lgd... (cached) yes checking for
gdImagePaletteCopy in -lgd... (cached) yes checking for
gdImageCreateFromPng in -lgd... (cached) yes checking for
gdImageCreateFromGif in -lgd... (cached) no checking for gdImageWBMP in
-lgd... (cached) yes checking for gdImageCreateFromJpeg in -lgd...
(cached) yes checking for gdImageCreateFromXpm in -lgd... (cached) yes
checking for gdImageCreateTrueColor in -lgd... (cached) no checking for
gdImageSetTile in -lgd... (cached) yes checking for gdImageSetBrush in
-lgd... (cached) yes checking for gdImageStringFTEx in -lgd... (cached)
no checking for gdImageColorClosestHWB in -lgd... (cached) yes checking
for gdImageColorResolve in -lgd... (cached) yes checking for
gdImageGifCtx in -lgd... (cached) no checking whether to include GNU
gettext support... no checking for gmp support... no checking for
Hyperwave support... no

<snip>

[no errors reported]
creating main/internal_functions.c
+--------------------------------------------------------------------+
| License:                                                           |
| This software is subject to the PHP License, available in this     |
| distribution in the file LICENSE.  By continuing this installation |
| process, you are bound by the terms of this license agreement.     |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point.                            |
+--------------------------------------------------------------------+

Thank you for using PHP.

So I do a make; make install.

I go to Apache_1.3.23 and do a config/make/install and all goes well.

Ciao ?:-)
Shirlyn

"In times of change,
there is no incentive so great,
and no medicine so powerful
as the hope for a better tomorrow."

--- End Message ---
--- Begin Message ---
Wesley wrote:
> PHP doesn't seem to work on Windows.NET.
> Since the guys at PHP don't think this is a bug, I woul love to here
> the solution to make PHP work on Windows.NET.

Sorry, but what you state in your bug report seems to be a configuration
problem and not a php bug. You must not only copy php.ini but also adapt it
to your system to get php working. The manual and the install instructions
will tell you how.

Christoph

> Here's what I posted on the bug report:
>
> If I open a .php page, I get a "404 error file not found". The file
> exist, php is installed properly, permissions are set properly.
> I know windows.net is not yet official, but as I have it installed, I
> would like it to work.
>
> More information on the OS:
> Windows .NET Standard Server
> Build 3590.main.011110-1652
> It is installed with IIS6.
>
> I installed PHP, got an error, saying that something could not be
> found and that I had to manually configure php, via the php.ini file.
> (I got this error in Win2000server as well and there PHP worked fine
> after a manual installation.) So I searched for php.ini, but couldn't
> find it, so I took a copy of it from my other computer, put it in the
> c:\windows\ directory and made the changes.

--- End Message ---
--- Begin Message ---
Hi all,
I tried your solution Holger but it doesn't work
on my Apache/2.0.36 and PHP 4.2.0.

do someone have other hints?

thanks & bye
ale

PS: with Apache/2.0.35 all it's OK!


Holger Eilhard wrote:

> Hi,
> 
> "Stephan Wuelfert" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>> Hi Dylan Fitzgerald,
>>
>> well, thats _exactly_ what I get! There ist one little trick to get
> it
>> running. Start apache _without_ the LoadModule line with php. Now
> apache
>> starts up correctly. Insert the LoadModule line in httpd.conf and
> make a
>> restart. apache loads the php-module and ist fully functional. Even
> on high
>> load and longer runtime it doesn't crash here. But I am unable to
> start it
>> with the php-module.
> 
> haven't tried that... But that's not too good... :-|
> 
>> Why? hmm, I have absolutely no idea. No logfile, no errors on
> syslog,
>> nothing. Maybe there is something to see with strace but until now I
> have
>> had no time to test this.
> 
> hate to say it, but "me too" ;-(
> 
>> Dylan Fitzgerald wrote:
>>
>> > Okay, I have Apache2 up and running quite nicely on a Sorcerer
> box.  Joy
>> > of
>> > joys.  And I finally managed to get PHP to compile against it,
> which
>> > took a good deal longer.
>> >
>> > Interestingly enough, though, when I start Apache2 with the
> LoadModule
>> > line for PHP4.2.0 in /usr/local/apache2/conf/httpd.conf, it
> doesn't
>> > error out, doesn't touch error_log or access_log, but instead
> simply
>> > disappears within a second or so.
> 
> [snipped]
> 
> Regards
> Holger


--- End Message ---
--- Begin Message ---
I am trying to get saprfc to run with PHP as a netscape plugin.  Everything
seems fine but I get this message:

RFC connection failed with error:RFC Error Info : Key : Status : Message :
Connect to message server failed Connect_PM MSHOST=semsprd, R3NAME=PRD,
GROUP=PUBLIC LOCATION CPIC (TCP/IP) on local host ERROR partner not reached
(host semsprd, service sapmsPRD) TIME Mon May 13 14:12:21 2002 RELEASE 46D
COMPONENT Internal:

The same script works find when I run in as  a CGI.

Bill Barron
Systems Analyst
Sarnoff Corporation

-----Original Message-----
From: Christoph Grottolo [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 12:35 PM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] Re: Windows.NET

Wesley wrote:
> PHP doesn't seem to work on Windows.NET.
> Since the guys at PHP don't think this is a bug, I woul love to here
> the solution to make PHP work on Windows.NET.

Sorry, but what you state in your bug report seems to be a configuration
problem and not a php bug. You must not only copy php.ini but also adapt it
to your system to get php working. The manual and the install instructions
will tell you how.

Christoph

> Here's what I posted on the bug report:
>
> If I open a .php page, I get a "404 error file not found". The file
> exist, php is installed properly, permissions are set properly.
> I know windows.net is not yet official, but as I have it installed, I
> would like it to work.
>
> More information on the OS:
> Windows .NET Standard Server
> Build 3590.main.011110-1652
> It is installed with IIS6.
>
> I installed PHP, got an error, saying that something could not be
> found and that I had to manually configure php, via the php.ini file.
> (I got this error in Win2000server as well and there PHP worked fine
> after a manual installation.) So I searched for php.ini, but couldn't
> find it, so I took a copy of it from my other computer, put it in the
> c:\windows\ directory and made the changes.


--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
Greetings,
I think I have a misunderstanding of what's going on, I'm just not sure
where...
First I'll describe what I'm trying to do, then how I tried to do it, and
finally where I ultimately want to get to.

So on my Win2K apache 2.0.36 system with PHP 4.2.0 as module on which only I
set up pages, my php pages are running fine. Some of these pages need to run
external dos programs, no problems. PHP settings are coming only from
php.ini, and life is good.
Now, I would like to create a new page in a separate directory, but I want
to be very careful about this page and not allow any access or interaction
with the rest of my system (since the user will have a large influence on
the code that the PHP module will be running. Specifically, the page (call
it php.php) will have an include file that is generated dynamically). So
normally I should enforce the security by setting the following in php.ini:
safe_mode On
open_basedir .
disable_functions list,of,functions

But since I don't want to change the way my extant pages behave, I'd rather
do this in httpd.conf (which php.net/configuration claims is possible) on a
per directory (or even better, on a per instance basis). So I thinks to
myself, given that this directory is called php, I'll just plop in a
<Directory "c:/Winapps/WebBase/php">
php_value open_basedir .
</Directory>
to see if that's recognized. At first I tried with php_admin_value, but then
Apache would fail to restart. With the above experiment, Apache restarts,
but open_basedir shows no indication of having been set (e.g. phpinfo() and
ini_get(...)). Same thing when I repeat the experiment putting the php_value
line in a virtual directory container. My conclusion is that I have a bad
understanding of something that's going on, but I'm not sure where.

Ultimately, where I wanted to go with this was to check (in Apache's
httpd.conf file) whether the remote (referer) IP address is the same as
mine, and only set safe_mode et. al. if the IPs don't match up AND the
request is for that one specific php.php file in the php directory.

Am I truly whacked on this, or what?
Thanks,
Csaba Gabor from NY




--- End Message ---
--- Begin Message ---
Hello Everyone,

     I have just upgraded php to 4.2.1 on a Red Hat 6.2 server with a few hundred 
Virtual Hosts.  I have noticed an increase in TIME_WAIT in the netstat output  causing 
some sites to load extremely slow.

     The server was running fine with the older php but due to the "security" hole in 
the ftp uploads I thought I would upgrade.  But now I am thinking I should roold the 
upgrade back.

     I have increased the file descriptors thinking that would help.  Also, I lowered 
some of the KeepAlive Directives in Apache.  But nothing seems to help.  The network 
seems fine also.  I am running out of optins.  Here was my config script. 

/configure --with-cybercash=/usr/local/cybercash/mck-3.2.0.6-i586-pc-linux-gnulibc2.1 
--with-mysql=/usr/local/mysql --with-gdbm=/usr/local/lib --enable-bcmath 
--enable-dbase --enable-ftp --enable-track-vars --enable-trans-sid 
--disable-posix-threads --disable-debug --with-gd=/usr/local --enable-gd-native-ttf 
--with-jpeg-dir=/usr/local/lib --with-png-dir=/usr/lib --with-mcrypt=/usr/local 
--with-curl=/usr/local --with-xml --with-zlib --enable-memory-limit=yes


Has anyone else noticed this?  Or can anyone point me in the correct direction to 
research this further??  



Thanks for the help,

Chad


I am thinking it has something to do with the curl libraries, maybe.  I did not have 
those libraries in the previous version.
--- End Message ---
--- Begin Message ---
Dear php wizards,

Using SuSE Linux 7.3 (Linux 2.4-10-4GB) with Apache 2.0.35 and doing a 
php4.2.0 configure.

The following was how I executed ./configure from the 
/usr/local/src/php4/php-4.2.0 directory.

./configure --prefix=/usr/local/php-4.2.0\
--with-mysql=/usr/local/mysql \
--with-apxs2=/usr/local/apache2/bin/apxs

Then I ran >make< from the same directory.  No problems.
Next, I ran >make install< .. and voila.  No errors!

So I added
AddType application/x-httpd=php .php
to my httpd.conf file,and ran
./apachectl configtest
and ... no problems!

I restarted Apache2 and entered
http://ss.hostahaven.com/cgi-bin/info.php into my browser.

Unfortunately, I still get the following error, when I attempt to run 
this script, which is the info.php script.

<html>
<?phpinfo()?>
</html>
---------------
Server error!
     Error message:
Premature end of script headers: /var/www/cgi-bin/info.php
If you think this is a server error, please contact the webmaster
Error 500
---------------
Any ideas on how to resolve this error?

Andrew Lietzow
The ACL Group, Inc.

--- End Message ---
--- Begin Message ---
Fabian Aguirre wrote:

> Hi all!
> 

RE:>>> Checking for apache 1.x module support via DSO through APXS...
 > configure:error: Use --with-apxs2 with apache 2.x!!

AND RE:>> YOUR STATEMENT
./configure --prefix=/usr/local/php-4.2.0 \
 >  >--with-config-file-path=/usr/local/apache/conf \
 >  >--with-apxs=/usr/local/apache/bin/apxs
----------
Fabian....Did you try?
./configure --prefix=/usr/local/php-4.2.0 \
--with-config-file-path=/usr/local/apache2/conf \  (note apache2)
--with-apxs2=/usr/local/apache2/bin/apxs\ (note apxs2 and apache2)

Did you already get this resolved?   I have not tried the above but it 
seems that this is what the error message is grumbling about.

Good Luck!

Andrew Lietzow
The ACL Group, Inc.



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

I have a problem with global variables on a NT 4 system with IIS 4 and php
4.0.6 (cgi). I try to set a global variable inside a function with the
following code,

$GLOBALS[$varname]=$varvalue

but this doesn't work. The same code works on w2k with iis 5.0 and the same
php.ini, so I don't think it is anything wrong with the php configuration.

Anyone experienced the same problem, or perhaps a solution or tip?


Jan Erik



--- End Message ---

Reply via email to