php-install Digest 27 Feb 2003 00:15:02 -0000 Issue 1266

Topics (messages 10197 through 10208):

Solaris 8, Apache 1.3.26, PHP-4.3.0 & Mysql-3.23.54 - UPDATE MYSQL database using PHP 
scripts does not work- URGENT
        10197 by: Atif Jakupovic

libxml version problems
        10198 by: Thomas M Clarke

Solaris PHP binary
        10199 by: Richard S. Huntrods

Problem installing PHP4/IIS isapi
        10200 by: Stéphane Moitry
        10203 by: Rich Gray
        10205 by: Stéphane Moitry

Solaris 9, Apache 2.044, PHP 4.3.1 - too few arguments ti function 'readdir_r'
        10201 by: Jeffrey M. Johnson

Segmentation Faults in *.php
        10202 by: Hartmut Hembrock

Solaris 8, Apache 1.3.26, PHP-4.3.0 & Mysql-3.23.54 - UPDATE an html record!
        10204 by: Atif Jakupovic

PHP 4.3.1 not compiling with JPG support?
        10206 by: Justin Williams

[MACOSX] php make problem with both gd and sybase-ct
        10207 by: jb

Do RH8, Apache 2, and php-4.3.1 mix well?
        10208 by: ken situ

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 ---
I have php scripts used to edit my Web pages. When I try to modify the page
content and press modify the browser gives me another windows with this
message:

            UPDATE content SET LeftMenuID='', Name='Welcome',
            ContentEn='
            Welcome to the TSE website!

It supposes to update MYSQL database and save the content.

The same scripts work well on the Windows environment.

Please, could somebody help!


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

I'm trying to make the php4 package on NetBSD from the pkgsrc collection,
I've added --with-dom as I'd like dom xml functionality with my php code.
The problem occurs when it goes to check for dom support:

<b>Configuring extensions</b>
...
...
Checking for DOM support... yes
not found
configure: error: Please reinstall the libxml >= 2.4.14 distribution
*** Error code 1

Stop.
*** Error code 1

Stop.


Now the strange thing is, I have something thats greater then 2.4.14, I have
installed the libxml2 package from pkgsrc with a version of no less than
2.4.25, very strange. Obviously the php installation isnt able to recognize
the fact that I have something >= 2.4.14 so it fails. I can remember exactly
the same thing happening on a Linux distribution I had a while back, it
couldnt and wouldnt recognize the fact that I had a version installed
greater than the version it was asking for, so I hacked the installation
files to up the version it was looking for to the version that I had
installed and it compiled fine. I can't seem to find this on NetBSD so that
quick fix isnt possible (yet).

Any suggestions how I can get this working?

Thanks

Thomas M Clarke


--- End Message ---
--- Begin Message ---
Does know of a Solaris 8 binary for PHP? Due to restrictions on the
server I use, I can convince the SysAdmin to install PHP, but not to
build it.

Thanks in advance,

-Richard



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

I've a big problem : I usually use ASP scripts, but if I watch what is done,
it seems to be usefull to know how to programm in PHP.

So I downloaded php4.3.1 (the zip version for manual installation in isapi
modules), to install it on IIS5 on Windows 2000 Server.

I unzipped the pack in d:\php
I added the association between .php files and d:\php\sapi\php4isapi.dll in
the internet services manager on my configured website.
I copied the php.ini-recommended to the c:\winnt directory and renamed it
php.ini, edited it to change the extensions dir to d:\php\extensions, and
the docroot directory to c:\inetpub\wwwroot value.
The d:\php directory and its subdirectories and files have permissions "full
control" (I appologize : my windows is french and I translate the names
without knowing the good english names) for "everybody". The
c:\winnt\php.ini has permissions for "full control" for "everybody".

When I use the command line "php -i" I can see the appropriate html code
that seems to tell that php is running. But when I try to access a page
called "info.php" in my webserver using the browser (url :
http://localhost/info.php), I get a 500 server error. The file info.php
contains only one line "<? phpinfo();?>" (the same file works when uploaded
to my online website located by my provider).

Could you tell me what I did wrong ? I made all the changes described in the
help file and the faq online from php.net website. The only thing I haven't
understood is the browscap.ini related instructions.

Please help me : I don't know what to do any more ! Many thanks for you !

Stephane.



--- End Message ---
--- Begin Message ---
Salut Stephane

Did you install the php4ts.dll into winnt\system32?
Did you install php4isapi.dll as a new ISAPI filter?
Did you stop and re-start IIS?

A+
Rich

>
> Hi everybody,
>
> I've a big problem : I usually use ASP scripts, but if I watch
> what is done,
> it seems to be usefull to know how to programm in PHP.
>
> So I downloaded php4.3.1 (the zip version for manual installation in isapi
> modules), to install it on IIS5 on Windows 2000 Server.
>
> I unzipped the pack in d:\php
> I added the association between .php files and
> d:\php\sapi\php4isapi.dll in
> the internet services manager on my configured website.
> I copied the php.ini-recommended to the c:\winnt directory and renamed it
> php.ini, edited it to change the extensions dir to d:\php\extensions, and
> the docroot directory to c:\inetpub\wwwroot value.
> The d:\php directory and its subdirectories and files have
> permissions "full
> control" (I appologize : my windows is french and I translate the names
> without knowing the good english names) for "everybody". The
> c:\winnt\php.ini has permissions for "full control" for "everybody".
>
> When I use the command line "php -i" I can see the appropriate html code
> that seems to tell that php is running. But when I try to access a page
> called "info.php" in my webserver using the browser (url :
> http://localhost/info.php), I get a 500 server error. The file info.php
> contains only one line "<? phpinfo();?>" (the same file works
> when uploaded
> to my online website located by my provider).
>
> Could you tell me what I did wrong ? I made all the changes
> described in the
> help file and the faq online from php.net website. The only thing
> I haven't
> understood is the browscap.ini related instructions.
>
> Please help me : I don't know what to do any more ! Many thanks for you !
>
> Stephane.
>


--- End Message ---
--- Begin Message ---
Many thanks ! I left the php4ts.dll in the php directory because I thought
it was in the right directory (with php.exe), but as the php4isapi.dll was
in another directory, it didn't work ... It's ok now, thanks again !

Stéphane

P.S. : Are you french too ?

"Rich Gray" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> Salut Stephane
>
> Did you install the php4ts.dll into winnt\system32?
> Did you install php4isapi.dll as a new ISAPI filter?
> Did you stop and re-start IIS?
>
> A+
> Rich
>
> >
> > Hi everybody,
> >
> > I've a big problem : I usually use ASP scripts, but if I watch
> > what is done,
> > it seems to be usefull to know how to programm in PHP.
> >
> > So I downloaded php4.3.1 (the zip version for manual installation in
isapi
> > modules), to install it on IIS5 on Windows 2000 Server.
> >
> > I unzipped the pack in d:\php
> > I added the association between .php files and
> > d:\php\sapi\php4isapi.dll in
> > the internet services manager on my configured website.
> > I copied the php.ini-recommended to the c:\winnt directory and renamed
it
> > php.ini, edited it to change the extensions dir to d:\php\extensions,
and
> > the docroot directory to c:\inetpub\wwwroot value.
> > The d:\php directory and its subdirectories and files have
> > permissions "full
> > control" (I appologize : my windows is french and I translate the names
> > without knowing the good english names) for "everybody". The
> > c:\winnt\php.ini has permissions for "full control" for "everybody".
> >
> > When I use the command line "php -i" I can see the appropriate html code
> > that seems to tell that php is running. But when I try to access a page
> > called "info.php" in my webserver using the browser (url :
> > http://localhost/info.php), I get a 500 server error. The file info.php
> > contains only one line "<? phpinfo();?>" (the same file works
> > when uploaded
> > to my online website located by my provider).
> >
> > Could you tell me what I did wrong ? I made all the changes
> > described in the
> > help file and the faq online from php.net website. The only thing
> > I haven't
> > understood is the browscap.ini related instructions.
> >
> > Please help me : I don't know what to do any more ! Many thanks for you
!
> >
> > Stephane.
> >
>



--- End Message ---
--- Begin Message ---
I am attempting to upgrade to the latest version of Apache and PHP on a
Solaris 9 server and have the following error.  (I searched the web and
found many cases of this error but no solutions.)  All of the software has
been updated to the latest versions (gcc make .....)

/bin/sh libtool --silent --mode=compile
gcc  -Imain/ -I/export/home/jjohnson/apache-2.0.44-install/php-4.3.1/main/ -
DPHP_ATOM_INC -I/export/home/jjohnson/apache-2.0.44-install/php-4.3.1/includ
e -I/export/home/jjohnson/apache-2.0.44-install/php-4.3.1/main -I/export/hom
e/jjohnson/apache-2.0.44-install/php-4.3.1 -I/usr/local/apache-2.0.44/includ
e -I/export/home/jjohnson/apache-2.0.44-install/php-4.3.1/Zend -I/usr/local/
mysql/include -I/export/home/jjohnson/apache-2.0.44-install/php-4.3.1/ext/xm
l/expat  -D_POSIX_PTHREAD_SEMANTICS -I/export/home/jjohnson/apache-2.0.44-in
stall/php-4.3.1/TSRM  -g -O2  -prefer-pic -c
/export/home/jjohnson/apache-2.0.44-install/php-4.3.1/main/reentrancy.c -o
main/reentrancy.lo
/export/home/jjohnson/apache-2.0.44-install/php-4.3.1/main/reentrancy.c: In
function `php_readdir_r':
/export/home/jjohnson/apache-2.0.44-install/php-4.3.1/main/reentrancy.c:106:
too few arguments to function `readdir_r'
make: *** [main/reentrancy.lo] Error 1

gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.2.2/specs
Configured with:
../configure --disable-nls --with-ld=/usr/ccs/bin/ld --with-as=/usr/ccs/bin/
as
Thread model: posix
gcc version 3.2.2

make -v
GNU Make 3.80
Copyright (C) 2002  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

Any thoughts?


Jeff



--- End Message ---
--- Begin Message ---
Hi!

I've installed Apache 2.0.44 and PHP 4.3.1 on SuSE 8.1. The compilation was without 
errors, the inclusion into httpd.conf went fine:

>Apache/2.0.44 (Unix) PHP/4.3.1 configured -- resuming normal operations

The script <?php print "Hello World!"; ?> works fine, too, so I think there was no 
error in the installation progress.

But <?php phpinfo(); ?> results in Segmentation fault:
>child pid 18740 exit signal Segmentation fault (11)

I don't dare to start any other scripts...

Any ideas? Maybe a known-for-problems library?

./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs 
--enable-safe-mode --with-openssl --with-mysql=/usr/local/mysql --enable-calendar  
--with-imap --with-cpdflib --with-jpeg-dir --with-tiff-dir --enable-ftp --with-gd 
--with-png-dir --with-zlib-dir --with-gettext --with-xml --with-mcrypt 
--disable-posix-threads

The used libraries are up to date.

Thanks in advance!

Kind regards,
Hartmut


--- End Message ---
--- Begin Message ---
Using php scripts I'm updating Web pages stored in the MYSQL database.
Each time when I try to update a record that has an html page I get sql
statement displayed by the browser.
When I try to update a record that has only text then everything is fine.

Does somebody know where problem is?

Thank you


--- End Message ---
--- Begin Message ---
When I compile PHP, imagejpeg() is not functioning on an existing site.  

With 4.3.1, libgd is already part of it, and I have installed libjpeg as well, before 
compiling.  Is there something I am missing in this equation?

Thanks!
Justin

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

my machine is an ibook based on MacOs X 10.2.4 (it was the same problem with 10.2.3).

let me explain my problem:

with sybase-ct support:
this configure line works (configure ok/make ok/execution ok):
'./configure' '--disable-cli' '--with-apxs' '--with-mysql' '--enable-trans-sid' '--enable-exif' '--enable-ftp' '--enable-sockets' '--with-zlib' '--with-png-dir=/sw' '--with-jpeg-dir=/sw' '--with-freetype-dir=/sw' '--with-sybase-ct=/Applications/Sybase/System/OCS-12_5'


with gd support:
this configure line works too (configure ok/make ok/execution ok):
'./configure' '--disable-cli' '--with-apxs' '--with-mysql' '--enable-trans-sid' '--enable-exif' '--enable-ftp' '--enable-sockets' '--with-zlib' '--with-png-dir=/sw' '--with-jpeg-dir=/sw' '--with-freetype-dir=/sw' '--enable-gd-native-ttf' '--enable-gd-imgstrttf' '--with-gd'


with both gd & sybase-ct support:
this configure line didn't make (configure ok but make not):
'./configure' '--disable-cli' '--with-apxs' '--with-mysql' '--enable-trans-sid' '--enable-exif' '--enable-ftp' '--enable-sockets' '--with-zlib' '--with-png-dir=/sw' '--with-jpeg-dir=/sw' '--with-freetype-dir=/sw' '--enable-gd-native-ttf' '--enable-gd-imgstrttf' '--with-gd' '--with-sybase-ct=/Applications/Sybase/System/OCS-12_5'


all make process is ok but when make try to link all, i have the following message:

ld: warning can't open dynamic library: libintl.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
ld: Undefined symbols:
_comn_free referenced from libcs expected to be defined in libintl.dylib
_comn_malloc referenced from libcs expected to be defined in libintl.dylib
_intlgetenv referenced from libct expected to be defined in libintl.dylib
_intl_close referenced from libcomn expected to be defined in libintl.dylib
_intl_nextentry referenced from libcomn expected to be defined in libintl.dylib
_intl_nextsection referenced from libcomn expected to be defined in libintl.dylib
_intl_nextvalue referenced from libcomn expected to be defined in libintl.dylib
_intl_home referenced from libcomn expected to be defined in libintl.dylib
_intl_errstr referenced from libcomn expected to be defined in libintl.dylib
_intl_strbuild referenced from libcomn expected to be defined in libintl.dylib
_intl_iocsfclose referenced from libcomn expected to be defined in libintl.dylib
_intl_iocsfopen referenced from libcomn expected to be defined in libintl.dylib
_intl_iocsfread referenced from libcomn expected to be defined in libintl.dylib
_intl_datetime referenced from libcomn expected to be defined in libintl.dylib
_comn_calloc referenced from libct expected to be defined in libintl.dylib
_comn_realloc referenced from libcomn expected to be defined in libintl.dylib
_intl_open referenced from libcomn expected to be defined in libintl.dylib
_intl_iocsfgets referenced from libtcl expected to be defined in libintl.dylib
_intl_iocsfseek referenced from libtcl expected to be defined in libintl.dylib
_intl_iocsfwrite referenced from libtcl expected to be defined in libintl.dylib
make: *** [libs/libphp4.bundle] Error 1


when i try to locate libintl.dylib, i have 3 responses in:
/Applications/Sybase/System/OCS-12_5/lib
/usr/local/lib
/sw/lib

i try to run ranlib on thoses 3 libintl.a but the result is the same in each case...

anyone can help me??

Thanks in advance.

jb.
<[EMAIL PROTECTED]>


--- End Message ---
--- Begin Message ---
I've RH 8.0 running Apache 2, and when I compile php-4.3.1, I got the
following errors (by the way, ./configure without any problem):

libtool: line 1: cd: shared /lib: No such file or directory

libtool: link: cannot determine absolute directory name of `shared /lib'

make: *** [libphp4.la] Error 1

So I modified the makefile to remove 'shared ', and compiled smoothly.

But then when I "make install", I got these errors:

Installing PHP SAPI module

/usr/lib/httpd/build/instdso.sh

SH_LIBTOOL='/usr/lib/httpd/build/libtool' libphp4.la

/usr/lib/httpd/modules

sh: line 1: /usr/lib/httpd/build/instdso.sh: No such file or directory

apxs:Error: Command failed with rc=8323072

.make: *** [install-sapi] Error 1

So I downloaded instdso.sh and  Installed fine.

But now Apache / PHP complains bitterly that all mysql, odbc and dbx
functions are undefined in "unknown" package at line 0.

The funny thing is, all my programs work fine - I can access mysql
databases.

So, my question would be is it a php-4.3.1 problem, or it's just RH8.0 is a
pig, but trying to fly?



--- End Message ---

Reply via email to