php-install Digest 22 Jan 2002 11:05:19 -0000 Issue 662
Topics (messages 5662 through 5674):
php 4.1.1, apache 1.3.22 and windows XP
5662 by: Athene McGregor-Macdonald
error 500 win xp apache 1.3.22 php 4.1.1
5663 by: SomeGuy
Re: PHP 4.1.1 / Apache 1.3.22 (ISAPI) and snmp.dll won't work
5664 by: SomeGuy
5665 by: Andreas Jud
Upgrading PHP and cURL
5666 by: Jonathan Hilgeman
How to disable internal functions like chown, chmod, exec, passthru. (REPOST)
5667 by: Frederic Trudeau
Quick Question - Copying LibPHP4.so's
5668 by: Jonathan Hilgeman
5674 by: Yasuo Ohgaki
"X*X*/libz.so: shared object not open" error still
5669 by: Steven Cayford
5671 by: Steven Cayford
Re: Server 500 Error....
5670 by: John Wm. Wicks
PAM_PHP module help
5672 by: Jonathan Roberts
Re: "X*X*/libz.so: shared object not open" error still + "invalid ELF Header"
5673 by: Steve Farmer
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 ---
hi,
my php 4.1.1 + apache 1.3.22 + windows XP combination is doing strange
things. php is working fine (from the command prompt) and apache is ok with
html pages. but when i try to load a php file with just the phpinfo()
function - sometimes loads it and sometimes i get the 'The page cannot be
displayed' message. further, other php pages just won't update when i
refresh even though i have changed the source code.
any help would be greatly appreciated.
athene
*****************************************************************
Contracting in London? 1st Contact can maximise your
income! http://www.1stcontact.co.uk
*****************************************************************
This is a confidential message for the named persons
only. It may contain confidential, proprietary or legally
privileged information. If you receive this message in error
please notify the sender and immediately delete the
message. You must not, directly or indirectly, use,
disclose, distribute, print or copy any part of this
message if you are not the intended recipient. All views
expressed in this message are those of the individual
sender and do not necessarily reflect those of
1st Contact Group or any of its subsidiaries.
--- End Message ---
--- Begin Message ---
so i'm running apache 1.3.22 on windows XP
and trying to run phpnuke on it.It works fine locally without ANY errors.But
as soon as outside users try to connect to the server they say there was an
error.Since they are windows users they couldn't quite tell me what was
wrong.Anyway...after connecting to my machine from a linux box with lynx i
could see that instead of the clean html code sometimes i got
OI^]?Á^A+^A?r^A
and similar characters
the last was:
<OI^]?Á^A+^A?r^A
LA^XR? GMT
Server: Apache/1.3.22 (Win32) PHP/4.1.1
X-Powered-By: PHP/4.1.1
Set-Cookie: lang=english; expires=Tue, 21-Jan-03 17:59:13 GMT
Connection: close
Content-Type: text/html; charset=windows-1250
they are positioned randomly in the code so it can't be the fault of the
script because they are never the same and never in the same place.I get
<OI^]?Á^A+^A?r^A<OI^]?Á^A+^A?r^A<OI^]?Á^A+^A?r^A<OI^]?Á^A+^A?r^A and more
sometimes and only when trying to use apache from outside.
Does anyone have any idea what the problem might be?
I even tried going back to php 4.0.6 but that didn't help eather.
i thought it might for some strange reason be the default language in
php.ini but the error continued to be there after setting it from iso-8859-1
to windows-1250
didn't help...and it was a desperate attempt anyway.
Can anyone help :( ?
--- End Message ---
--- Begin Message ---
did you copy php4ts.dll to your windows\system32 dir?(or if you had
previously installed php did you overwrite the php4ts.dll somewhere in your
windows dir tree?)
"Andreas Jud" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> hi,
>
> if i configure apache(1.3.22) to use php(4.1.1) as an isapi module, and
> enable snmp!
>
> Now if i try to start the apache as an service, the start fails!
>
> Eventlog says:
> The Apache service named J:\Program Files\Apache Group\Apache\Apache.exe
> reported the following error:
>
> >>> Cannot load j:/program files/apache
group/apache/php/sapi/php4apache.dll
> into server: (127) The specified procedure could not be found: <<<
>
> before the error.log file could be opened.
>
> More information may be available in the error.log file. .
>
>
>
> Any Ideas? Is it a Bug? a Feature ?
>
>
>
>
> Thanks for every info
>
> andy
>
>
--- End Message ---
--- Begin Message ---
No, i've forgot it! ;(
Thanks a lot, then now it will work! ;)
andy
"Someguy" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> did you copy php4ts.dll to your windows\system32 dir?(or if you had
> previously installed php did you overwrite the php4ts.dll somewhere in
your
> windows dir tree?)
> "Andreas Jud" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > hi,
> >
> > if i configure apache(1.3.22) to use php(4.1.1) as an isapi module, and
> > enable snmp!
> >
> > Now if i try to start the apache as an service, the start fails!
> >
> > Eventlog says:
> > The Apache service named J:\Program Files\Apache Group\Apache\Apache.exe
> > reported the following error:
> >
> > >>> Cannot load j:/program files/apache
> group/apache/php/sapi/php4apache.dll
> > into server: (127) The specified procedure could not be found: <<<
> >
> > before the error.log file could be opened.
> >
> > More information may be available in the error.log file. .
> >
> >
> >
> > Any Ideas? Is it a Bug? a Feature ?
> >
> >
> >
> >
> > Thanks for every info
> >
> > andy
> >
> >
>
>
--- End Message ---
--- Begin Message ---
I would like to upgrade to the newest version of PHP and cURL, however I
cannot have the server down for very long. I would like to know what files I
should back up to preserve 4.0.3 and my current version of cURL in case of
an emergency and I have to restore them quickly. If possible, I'd like to
simply have a "switch" in the form of a program that renames files
appropriately and restarts the server. Apache is currently set up to use
DSO's. Can anyone help me out here?
- Jonathan
P.S. If you can help with PHP only, then that's fine, too. I need as much
help as possible. Thanks!
--- End Message ---
--- Begin Message ---
I would like to disable those 'potentially' dangerous functions on my
server ... I can I manage to do that, other then manually edit de C code ?
Thanks
Frederic Trudeau
[A]dvanced [S]upport [A]gent
Colocation/Customer Support Agent
CAM Internet -> http://www.cam.org
"My God ! It's full of stars"
--
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 ---
Just a quick yes or no question:
If I have a working system with PHP 4.1.1 on it, can I copy its libphp4.so
to another server without PHP and get that other server working, assuming I
have all the necessary libraries on the target system?
- Jonathan
--- End Message ---
--- Begin Message ---
Jonathan Hilgeman wrote:
> Just a quick yes or no question:
> If I have a working system with PHP 4.1.1 on it, can I copy its libphp4.so
> to another server without PHP and get that other server working, assuming I
> have all the necessary libraries on the target system?
>
Yes.
--
Yasuo Ohgaki
--- End Message ---
--- Begin Message ---
Hello again. It seems that no-one has run into this problem directly. So,
if anyone has any suggestion what direction to start looking I'd
appreciate it. I'm pondering if I need to pull out the zlib rpm and
compile that from source as well, but I'm afraid then I'll simply break
libtiff, gd, ImageMagick, etc... All the RPM's that depend on zlib.
The problem again, came after I pulled out the apache and php rpms and
tried to compile from source. When I run "apachectl start" I get this:
Syntax error on line 236 of /usr/local/apache/etc/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server:
X*X*/libz.so: shared object not open
Line 236 of httpd.conf is this:
LoadModule php4_module libexec/libphp4.so
libz.so is in /usr/lib
command I used to configure apache 1.3.22:
./configure \
--prefix=/usr/local/apache \
--with-layout=GNU \
--enable-module=most \
--enable-shared=max \
--with-perl=/usr/local/bin/perl \
--with-port=80 \
--logfiledir=/var/log/httpd
command I used to configure pdflib 4.0.1:
./configure \
--enable-shared \
--enable-static \
--with-java=no \
--with-perl=/usr/local/bin/perl \
--with-py=/usr/bin/python \
--with-tcl=/usr/bin/tcl \
--enable-php
command I used to configure php 4.0.6:
./configure \
--with-xml \
--with-apxs=/usr/local/apache/sbin/apxs \
--with-openssl \
--enable-trans-sid \
--with-zlib=/usr \
--with-pdflib=/usr/local \
--enable-shared=pdflib \
--with-mysql=/usr \
--with-pgsql=/usr \
--with-gd \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-tiff-dir=/usr
Thanks again for any suggestions.
-Steve
--- End Message ---
--- Begin Message ---
Okay, a work around: I left out the --with-gd option from PHP, and this
error went away. It was replaced by this error:
Cannot load /usr/local/apache/libexec/libphp4.so into server: undefined
symbol: sk_new_null
I grepped sk_new_null and found it came from the openssl modules, so I
left out the --with-openssl, recompiled, and now it works. (I have openssl
version 0.9.6-9 on the system by the way.) This is good, at least it's
useable, but if anyone has suggestions for how I can get gd and openssl
into this build without breaking it I would be pleased to hear from you.
Thanks.
-Steve
On 2002.01.21 19:30:00 -0600 Steven Cayford wrote:
> Hello again. It seems that no-one has run into this problem directly.
> So, if anyone has any suggestion what direction to start looking I'd
> appreciate it. I'm pondering if I need to pull out the zlib rpm and
> compile that from source as well, but I'm afraid then I'll simply break
> libtiff, gd, ImageMagick, etc... All the RPM's that depend on zlib. The
> problem again, came after I pulled out the apache and php rpms and tried
> to compile from source. When I run "apachectl start" I get this:
>
> Syntax error on line 236 of /usr/local/apache/etc/httpd.conf:
> Cannot load /usr/local/apache/libexec/libphp4.so into server:
> X*X*/libz.so: shared object not open
>
> Line 236 of httpd.conf is this:
> LoadModule php4_module libexec/libphp4.so
>
> libz.so is in /usr/lib
>
> command I used to configure apache 1.3.22:
> ./configure \
> --prefix=/usr/local/apache \
> --with-layout=GNU \
> --enable-module=most \
> --enable-shared=max \
> --with-perl=/usr/local/bin/perl \
> --with-port=80 \
> --logfiledir=/var/log/httpd
>
> command I used to configure pdflib 4.0.1:
> ./configure \
> --enable-shared \
> --enable-static \
> --with-java=no \
> --with-perl=/usr/local/bin/perl \
> --with-py=/usr/bin/python \
> --with-tcl=/usr/bin/tcl \
> --enable-php
>
> command I used to configure php 4.0.6:
> ./configure \
> --with-xml \
> --with-apxs=/usr/local/apache/sbin/apxs \
> --with-openssl \
> --enable-trans-sid \
> --with-zlib=/usr \
> --with-pdflib=/usr/local \
> --enable-shared=pdflib \
> --with-mysql=/usr \
> --with-pgsql=/usr \
> --with-gd \
> --with-jpeg-dir=/usr \
> --with-png-dir=/usr \
> --with-tiff-dir=/usr
>
> Thanks again for any suggestions.
>
> -Steve
>
>
>--
> 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 ---
Hello Luka,
Luka wrote:
>i'm having the same problem on windows XP apache 1.3.22 php 4.0.1.
>Since i don't use any prepend file in my php.ini i was wondering if you
>could tell me where the problem is.
>i get errors when i try to connect from other machines(locally everything
>works fine).
>And when i use a linux box to download the index.php file i notice it has
>weird stuff in it like OI^]?Á^A+^A?r^A
>and so on.
>any help would be apriciated
>
The only suggestion is setup PHP using CGI first then access the site
via the browser, somewhere along the line you should probably be
getting/seeing some sort of Error message. You might have to scroll to
the bottom of a page to see it. Basically what's happening is that
there's a incorrect setting somewhere and the ISAPI version isn't giving
you any clue as to where the problem might be. The CGI version just
writes the error out so once you get the CGI version working just go
back and change the configuration to ISAPI and all should be fine.
It all boils down to you can't fix it if you don't know it's broke.
John
>
>so do i just
>----- Original Message -----
>From: "John Wicks" <[EMAIL PROTECTED]>
>Newsgroups: php.install
>To: <[EMAIL PROTECTED]>
>Sent: Monday, December 24, 2001 7:46 AM
>Subject: Re: Server 500 Error....
>
>
>>Hello Nathaniel,
>>
>>"Nathaniel Harari" <[EMAIL PROTECTED]> wrote in message
>>000701c171eb$20432890$5100000a@NAT01">news:000701c171eb$20432890$5100000a@NAT01...
>>
>>>Hi.
>>>
>>>A few weeks ago, I got PHP Nuke to install beautifully on my XP machine
>>>at home to test it - no problems for a first time user.
>>>
>>>Now, I want to use it for my work web site on my remote server for the
>>>company I work for. I am running Windows 2000 Server edition on a nice
>>>fast box with IIS 4.
>>>
>>>I installed PHP, MySQL, and PHPNuke. Only, I can't open any PHP pages: I
>>>get an "Internal Server Error 500" every time I try to open a php page
>>>through the browser by hitting the site. Everything works fine and
>>>running php.exe -i outputs the HTML code just beautifully.
>>>
>>I had the same issue, what I did was change all of IIS to run with the
>>php.exe CGI first. I got that running though there is an error in the
>>prepend.php3 file with a local directory. Once I fixed that I went back
>>
>and
>
>>configured the ISAPI setup and all was well.
>>
>>The offending line in prepend.php3 is line 13. This should point to your
>>include directory.
>>
>>John
>>
>>
>
>
--- End Message ---
--- Begin Message ---
has anyone had any luck installing the PAM module in PHP
ive spent the last 2 days fscking with the damn thing and to no
avail i get a whole host of different problems based on what
version of php versus what version of php_pam versus what
version of ...
my most recent error looks like the following .. perhaps you can
help..
btw i am running rh6.2, libtool 1.4.2 autoconf 2.13, im installing
php 4.1.0 (had SERIOUS problems with 4.1.1 and pam)
if i run aclocal;autoconf in the root of the php tree i get these
errors:
[root@killswitch php-4.1.0]# aclocal;autoconf
configure.in:445: warning: AC_TRY_RUN called without default to
allow cross compiling
ext/imap/config.m4:168: warning: AC_TRY_RUN called without
default to allow cross compiling
ext/mysql/config.m4:48: warning: AC_TRY_RUN called without
default to allow cross compiling
ext/qtdom/config.m4:34: AC_PROG_CXXCPP was called before
AC_PROG_CXX
ext/session/config.m4:35: warning: AC_TRY_RUN called without
default to allow cross compiling
ext/session/config.m4:35: warning: AC_TRY_RUN called without
default to allow cross compiling
ext/session/config.m4:36: warning: AC_TRY_RUN called without
default to allow cross compiling
ext/session/config.m4:36: warning: AC_TRY_RUN called without
default to allow cross compiling
ext/xml/config.m4:7: warning: AC_TRY_RUN called without default
to allow cross compiling
but at least it see's pam in the ext directory,
so my configure goes something like this:
--with-pam --enable-track-vars --enable-magic-quotes --enable-
trans-sid --with-imap=/usr/src/imap-2001a/ --with-
mysql=/usr/local/ --without-gd --with-apxs=/www/bin/apxs
and this is followed by a successful make up til this error:
Making all in pam
make[2]: Entering directory `/usr/src/php/php-4.1.0/ext/pam'
make[3]: Entering directory `/usr/src/php/php-4.1.0/ext/pam'
make[3]: *** No rule to make target `../../Zend/../php_config.h',
needed by `pam.lo'. Stop.
make[3]: Leaving directory `/usr/src/php/php-4.1.0/ext/pam'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/php/php-4.1.0/ext/pam'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/php/php-4.1.0/ext'
make: *** [all-recursive] Error 1
anyone have these experiences?
cheers
- jonathan roberts
tranceport.net
--- End Message ---
--- Begin Message ---
Hi,
I had an "invalid ELF Header " problem and following your idea I left
out the path in --with-opensssl , recompiled and it worked !!
I had applied the apache ssl patch BTW
HTH
Steve
At 10:03 PM -0600 21/1/02, Steven Cayford wrote:
>Okay, a work around: I left out the --with-gd option from PHP, and
>this error went away. It was replaced by this error:
>
>Cannot load /usr/local/apache/libexec/libphp4.so into server:
>undefined symbol: sk_new_null
>
>I grepped sk_new_null and found it came from the openssl modules, so
>I left out the --with-openssl, recompiled, and now it works. (I have
>openssl version 0.9.6-9 on the system by the way.) This is good, at
>least it's useable, but if anyone has suggestions for how I can get
>gd and openssl into this build without breaking it I would be
>pleased to hear from you.
>
>Thanks.
>
>-Steve
>
>On 2002.01.21 19:30:00 -0600 Steven Cayford wrote:
>>Hello again. It seems that no-one has run into this problem
>>directly. So, if anyone has any suggestion what direction to start
>>looking I'd appreciate it. I'm pondering if I need to pull out the
>>zlib rpm and compile that from source as well, but I'm afraid then
>>I'll simply break libtiff, gd, ImageMagick, etc... All the RPM's
>>that depend on zlib. The problem again, came after I pulled out the
>>apache and php rpms and tried to compile from source. When I run
>>"apachectl start" I get this:
>>
>>Syntax error on line 236 of /usr/local/apache/etc/httpd.conf:
>>Cannot load /usr/local/apache/libexec/libphp4.so into server:
>>X*X*/libz.so: shared object not open
>>
>>Line 236 of httpd.conf is this:
>>LoadModule php4_module libexec/libphp4.so
>>
>>libz.so is in /usr/lib
>>
>>command I used to configure apache 1.3.22:
>>./configure \
>> --prefix=/usr/local/apache \
>> --with-layout=GNU \
>> --enable-module=most \
>> --enable-shared=max \
>> --with-perl=/usr/local/bin/perl \
>> --with-port=80 \
>> --logfiledir=/var/log/httpd
>>
>>command I used to configure pdflib 4.0.1:
>>./configure \
>> --enable-shared \
>> --enable-static \
>> --with-java=no \
>> --with-perl=/usr/local/bin/perl \
>> --with-py=/usr/bin/python \
>> --with-tcl=/usr/bin/tcl \
>> --enable-php
>>
>>command I used to configure php 4.0.6:
>>./configure \
>> --with-xml \
>> --with-apxs=/usr/local/apache/sbin/apxs \
>> --with-openssl \
>> --enable-trans-sid \
>> --with-zlib=/usr \
>> --with-pdflib=/usr/local \
>> --enable-shared=pdflib \
>> --with-mysql=/usr \
>> --with-pgsql=/usr \
>> --with-gd \
>> --with-jpeg-dir=/usr \
>> --with-png-dir=/usr \
>> --with-tiff-dir=/usr
>>
>>Thanks again for any suggestions.
>>
>>-Steve
>>
>>
>>--
>>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]
>>
>
>--
>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]
--
-------------------------------------------------
"Minds are like parachutes, they work best when open"
Support free speech; visit http://www.efa.org.au/
Heads Together Systems Pty Ltd http://www.hts.com.au
Email: [EMAIL PROTECTED] Tel: 612 9982 6767 Fax: 612 9981 3081
--- End Message ---