php-install Digest 7 Jan 2003 13:45:53 -0000 Issue 1190

Topics (messages 9591 through 9606):

problems in the install of php 4.3.0
        9591 by: Rodrigo Gonzalez

Windows install that is bugging me...
        9592 by: Scott De Leeuw
        9600 by: Nuno Lopes
        9603 by: Chris Hewitt

what is modular form of PH
        9593 by: Rubylinda Otero
        9604 by: Chris Hewitt

better description
        9594 by: Scott De Leeuw
        9597 by: Esteban Ordonez

php gd
        9595 by: Marcus

IMAP and gettext support on MacOS X
        9596 by: Mike Weller

Re: readline Error lang/php4 with GD2 Lib
        9598 by: Thomas Weller

php mysql
        9599 by: Marcus

Configuring 4.3.0 on Solaris 2.8
        9601 by: Ewan McDowall

Trouble building php-4.3.0 with RH8
        9602 by: Mitch Pirtle
        9606 by: Mitch Pirtle

PHP/4.3.0 with OpenSSL: still no https wrapper
        9605 by: Manuzhai

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 update from php 4.2.3 to php 4.3.0

in the same page sometimes send me this error at the finish of the excecute of the program

"Fatal error: Nesting level too deep - recursive dependency? in Unknown on line 0"


in the old compilation never send this error

thank you
Rodrigo Glz

--- End Message ---
--- Begin Message ---
Here are the system specifics..
Windows 2000 server SP3
PHP 4.30
IIS 4 I believe, whatever comes with W2k Server

I've installed PHP and set it up as per the instructions... Any
file with a .php or .phtml extension works, however when I embed
PHP code in to an HTML it either gives a blank page or simply
prints all the text... I am using the standard "<?php" tag... I
have been messing around with this for a week now and am at a
loss... any ideas?  

=====


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--- End Message ---
--- Begin Message ---
The problem is that .htm/.html files aren't being parsed.
Simply open the configuration dialog of IIS (in control panel) and then go
to 'Home directory'. Click in 'configuration' button and click in 'Add' and
then enter .html as extension and C:\php\php.exe as executable (or where is
your php).

Nuno Lopes


----- Original Message -----
From: "Scott De Leeuw" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 07, 2003 4:14 AM
Subject: [PHP-INST] Windows install that is bugging me...


> Here are the system specifics..
> Windows 2000 server SP3
> PHP 4.30
> IIS 4 I believe, whatever comes with W2k Server
>
> I've installed PHP and set it up as per the instructions... Any
> file with a .php or .phtml extension works, however when I embed
> PHP code in to an HTML it either gives a blank page or simply
> prints all the text... I am using the standard "<?php" tag... I
> have been messing around with this for a week now and am at a
> loss... any ideas?



--- End Message ---
--- Begin Message ---
Scott De Leeuw wrote:

Here are the system specifics..
Windows 2000 server SP3
PHP 4.30
IIS 4 I believe, whatever comes with W2k Server

I've installed PHP and set it up as per the instructions... Any
file with a .php or .phtml extension works, however when I embed
PHP code in to an HTML it either gives a blank page or simply
prints all the text... I am using the standard "<?php" tag... I
have been messing around with this for a week now and am at a
loss... any ideas?
Its probably that you have not asked IIS to send ".html" files to the php parser. I expect it would not do so normally because of the extra processing overhead in parsing for php when there would not normally be php code in them.

Either alter your IIS setup (I use Apache so I can't give specific instructions), or give the ".html" files you want parsed by php the ".php" extension.

Hope this h elps

Chris



--- End Message ---
--- Begin Message ---
i new here and i want to know some terms, wht kind of setup if u run php in modular 
form
--- End Message ---
--- Begin Message ---
Rubylinda Otero wrote:

i new here and i want to know some terms, wht kind of setup if u run php in modular form

I think you mean to compile php as an Apache "module", rather than compiled into it?

Assuming that you do mean this, then if Apache is compiled with "mod_so" it can take "modules" dynamically, just like a "dynamic link library". If your webserver often serves files which are not php, then this setup can be more efficient in terms of memory. If the webserver serves almost all php files then compiled into Apache can be more efficient.

Except for very busy webservers, I doubt you will notice any performance difference.

HTH
Chris



--- End Message ---
--- Begin Message ---
When I put this code in and save the file as .htm, it gives a
blank screen and the php script is shown in the source...  I
think something isn't set up right...

<!-- <HTML>

<HEAD>
<TITLE></TITLE>
</HEAD>

<BODY BGCOLOR="white">


<?php
        $remote_address = getenv("REMOTE_ADDR");
        echo "<p>Your IP address is $remote_address.</p>";
        echo "<p>Tread lightly while you are here.</p>";
        echo "<P></p>";
        echo "<p>'I never did give anybody hell. I just told the truth,
and they thought it was hell.'</p>";
        echo "<p>                               -- Harry S Truman</p>";

?>


</BODY>


</HTML> -->


=====


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--- End Message ---
--- Begin Message ---
Scott,

I think you should save your file in yourweb directory and then
navigate with your web browser. I have it like this:
web directory:  /var/www/html/index.htm
web browser address:  http://localhost/index.php
and then start up the web server (httpd).
Do you work with Windows or Linux?

El Lun 06 Ene 2003 23:43, Scott De Leeuw escribió:
> When I put this code in and save the file as .htm, it gives a
> blank screen and the php script is shown in the source...  I
> think something isn't set up right...
>
> <!-- <HTML>
>
> <HEAD>
> <TITLE></TITLE>
> </HEAD>
>
> <BODY BGCOLOR="white">
>
>
> <?php
>       $remote_address = getenv("REMOTE_ADDR");
>       echo "<p>Your IP address is $remote_address.</p>";
>       echo "<p>Tread lightly while you are here.</p>";
>       echo "<P></p>";
>       echo "<p>'I never did give anybody hell. I just told the truth,
> and they thought it was hell.'</p>";
>       echo "<p>                               -- Harry S Truman</p>";
>
> ?>
>
>
> </BODY>
>
>
> </HTML> -->
--- End Message ---
--- Begin Message ---
Hi there any one know of a script/s that allows one to plot 2 points in space. EG

X = 4
Y= 10


X ranges from -150 to 0 to 130 increments by 2
Y ranges from -200 to 0 to 200 increments by 2

Regards
Marcus

Running Redhat 8 complete install
--with--gd
php 4 
apache 2
mysql


==========================================================
This message contains information intended for the perusal, and/or use (if
so stated), by the stated addressee(s) only. The information is
confidential and privileged. If you are not an intended recipient, do not
peruse, use, disseminate, distribute, copy or in any manner rely upon the
information contained in this message (directly or indirectly). The sender
and/or the entity represented by the sender shall not be held accountable
in the event that this prohibition is disregarded. If you receive this
message in error, notify the sender immediately by e-mail, fax or telephone
representations contained in this message, whether express or implied, are
those of the sender only, unless that sender expressly states them to be
the views or representations of an entity or person, who shall be named by
the sender and who the sender shall state to represent. No liability shall
otherwise attach to any other entity or person.
==========================================================

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

I'm trying to get IMP running on MacOS X 10.2 (Darwin 6.3).  IMP
requires that apache's PHP module supports mysql, imap and gettext.

I can get it to support mysql and gettext, but not imap!

I've been going insane trying to get this working. 

Here are my steps:
=================================================================
GETTEXT
=================================================================
http://mirrors.kernel.org/gnu/gettext/
 Downloaded gettext-0.11.5
# setenv LDFLAGS "-lcc_dynamic"
# ./configure --enable-shared --disable-static
# emacs config.h
  #define __USER_LABEL_PREFIX__ _

added   "const char *program_name;" to avoid unresolved symbols:
./libuniname/test-names.c
./tests/setlocale.c
./tests/tstgettext.c

# emacs intl/Makefile
 removed "-no-undefined"
  (needed to create libintl.dylib instead of libintl.a)
# make
# make install

=================================================================
IMAP library 
=================================================================
# ftp ftp.cac.washington.edu
# zcat pine4.51.tar.Z | tar -xvf -
# cd pine4.51
# ./build osx
# ln -s . include
   (otherwise php cant seem to find it)
IMAP static library created at c-client/c-client.a.  I manually created
shared dynamic library, libc-client.dylib
# cd c-client
# gcc -dynamiclib -flat_namespace -undefined suppress -install_name 
/usr/local/lib/libc-client.dylib -o libc-client.dylib *.o
  (actually, i wrote out the .o files in the same order "ar" used)
# cp libc-client.dylib  /usr/local/lib/libc-client.dylib

=================================================================
PHP with gettext
=================================================================
http://www.php.net
 Downloaded php-4.2.3
  (applied entropy.ch patch)...
# lynx -source http://www.entropy.ch/software/macosx/php/php-4.2.3-entropy.ch.patch > 
patch
# ln -s php-4.2.3 php-4.2.3-entropy.ch
# cat patch |patch -p0
   (that seems to have fixed a few things for MacOS X)
# ./configure --with-apxs --with-gettext
# emacs ext/gettext/php_gettext.h
  #define __USER_LABEL_PREFIX__ _
  (to avoid unresolved symbols that apache reports when it uses libphp4.so!
   -it was looking for libintl_gettext instead of _libintl_gettext)
# make
# make install

# ls -l /usr/libexec/httpd/libphp4.so
  (verified that file is new)
# apachectl graceful

=================================================================
PHP with gettext and imap
=================================================================
# ./configure --with-apxs --with-gettext 
--with-imap=/private/var/root/installs/pine4.51/ --with-imap-ssl
# make
# make install
# apachectl graceful
dyld: /usr/sbin/httpd Undefined symbols:
_checkpw

If I copy the last "gcc" command from the "make" command, and remove
"-undefined suppress", I can see that checkpw is unresolved,

nm does show that it's in there:
 # nm libphp4.so |grep -i checkpw
000ef35c T _checkpw

I looked back up in the errors, and did see this paragraph:
*** Warning: This library needs some functionality provided by -lc-client.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

...so, I figured maybe I needed to create a shared libc-client.dylib.

So, I decided to use libc-client.dylib instead of libc-client.a (static)
using the commands shows above (under IMAP section)...
I repeated the last "gcc" command to use libc-client.dylib instead.

Now, when I "apachectl graceful", it doesnt complain about the
checkpw symbol, but now I get:

dyld: /usr/sbin/httpd Undefined symbols:
_mm_critical
_mm_diskerror
_mm_dlog
_mm_exists
_mm_expunged
_mm_fatal
_mm_flags
_mm_list
_mm_log
_mm_login
_mm_lsub
_mm_nocritical
_mm_notify
_mm_searched
_mm_status
/usr/sbin/apachectl: line 171: 10446 Trace/BPT trap          $HTTPD -t

I did a search to find these symbols.  I managed to recreate the
libc-client.dylib to include these symbols by appending 
"../mailutil/mailutil.o" to:

# gcc -dynamiclib -flat_namespace -undefined suppress -install_name 
/usr/local/lib/libc-client.dylib -o libc-client.dylib *.o

Removing "-undefined suppress" and adding all the "-lssl", I confirmed that
there were NO unresolved symbols.

Now, the test!

# apachectl graceful
dyld: /usr/sbin/httpd Undefined symbols:
(1,17);0000000000000;0037777777777;,64,32;must_swap:(1,10),96,32;malloced:(1,18)=*(1,13),128,32;nstrings:(1,19)=(1,20)=r(1,20);0000000000000;0037777777777;,160,32;orig_tab:(1,21)=*(1,22)=k(1,23)=xsstring_desc:,192,32;trans_tab:(1,21),224,32;n_sysdep_strings:(1,19),256,32;orig_sysdep_tab:(1,24)=*(1,25)=k(1,26)=xssysdep_string_desc:,288,32;trans_sysdep_tab:(1,24),320,32;hash_size:(1,19),352,32;hash_tab:(1,27)=*(1,28)=k(1,19),384,32;must_swap_hash_tab:(1,10),416,32;codeset_cntr:(1,10),448,32;conv_tab:(1,29)=*(1,30)=*(1,3),480,32;plural:(1,31)=*(1,32)=xsexpression:,512,32;nplurals:(1,17),544,32;;
0000000;0037777777777;,64,32;must_swap:(1,10),96,32;malloced:(1,18)=*(1,13),128,32;nstrings:(1,19)=(1,20)=r(1,20);0000000000000;0037777777777;,160,32;orig_tab:(1,21)=*(1,22)=k(1,23)=xsstring_desc:,192,32;trans_tab:(1,21),224,32;n_sysdep_strings:(1,19),256,32;orig_sysdep_tab:(1,24)=*(1,25)=k(1,26)=xssysdep_string_desc:,288,32;trans_sysdep_tab:(1,24),320,32;/usr/sbin/apachectl:
 line 171:  8952 Trace/BPT trap          $HTTPD -t


I'm not really sure what to do at this point.  It seems that adding
mailutil.o damaged the dynamic library somehow.  I can use "nm",
and everything views fine.

Any suggestions would be appreciated!  Thanks

-Mike

-- 
Michael J. Weller, M.Sc.               
University of Windsor                  
Windsor, ON, Canada                    
--- End Message ---
--- Begin Message ---
Hello.

Thanks for your answer. I had Problems reaching you the second time now,
so I write to the list instead.

Mailer-Daemon message for <[EMAIL PROTECTED]>:
Sorry, I wasn't able to establish an SMTP connection. (#4.4.1)
I'm not going to try again; this message has been in the queue too long.

As suggested, I tried the following:
#make configure --with-gd=/usr/local/
   and I chose NOT to install GD2 by checking the box
   because I have given the parameter on command-line.
   (If I would check the box, the readline error occurs)
    [ ] GD2
    [x] zlib
    [x] MySQL
    [x] XML
    [x] XSLT
    [x] DOMXML
#make --with-gd=/usr/local/
#make install --with-gd=/usr/local

But unfortunately, there is no gd-Library then:

#php
<?php
 imagecreate(100,100);
?>
X-Powered-By: PHP/4.2.3
Content-type: text/html

<br />
<b>Fatal error</b>:  Call to undefined function:  imagecreate() in <b>-</b>
on line <b>2</b><br />
#

Do you have any other suggestion I could try?

Thanks,

Thomas

-----Ursprüngliche Nachricht-----
Betreff: Re: [PHP-INST] readline Error lang/php4 with GD2 Lib


Why don't you just use the bundled GD2 library by using --with-gd as
opposed to --with-gd=whatever ?

On Sun, 29 Dec 2002, Thomas Weller wrote:

> Hello,
>
> I wanted to install PHP on a FreeBSD 4.7 system.
>
> In /usr/ports/lang/php4 I chose the following
> options (those I need and the pre-checked ones)
>
> [x] GD2
> [x] zlib
> [x] MySQL
> [x] XML
> [x] XSLT
> [x] DOMXML
>
> Unfortunately, I got an Error
>   checking for readline in -lreadline... no
>   configure: error: readline library not found
>   ===>  Script "configure" failed unexpectedly.
>
> Then, I installed readline-4.2.tar.gz from
> http://cnswww.cns.cwru.edu/~chet/readline/rltop.html
> with tar -zxvf readline-4.2.tar.gz, ./configure,
> make and make install. No Errors occured during that
> installation.
>
> Again, I tried the FreeBSD port with
>   make clean
>   make distclean
>   make
> The readline error is still there.
>
> It does not occur if I don't want to install GD2.
> It uses gd-2.0.1_3, so I think I don't need the patch
> for GD version 2.0.8. (And GD 2.0.1 already works fine
> as an Apache module)
>
> Google helped me to find a hint to use --without-readline
> to get around the problem. But a make --without-readline
> does not help much. Or where else should I use this option?
>
> Some more information:
> uname -v
>   FreeBSD 4.7-RELEASE #0: Wed Oct  9 15:08:34 GMT 2002
>   [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC
> I can send the config.log or a 'ls /var/db/pkg'-dump if
> needed.


--- End Message ---
--- Begin Message ---
Hi there I've just installed RedHat 8 complete install

with php with apache with gd etc....
when I try and connect to mysql 

Fatal error: Call to undefined function: mysql_connect() in 
/var/www/html/phpMyAdmin/lib.inc.php on line 255

Now when I install php-mysql will this affect the already install php that I have with 
apache with gd with bcmath etc....

Regards
Marcus


==========================================================
This message contains information intended for the perusal, and/or use (if
so stated), by the stated addressee(s) only. The information is
confidential and privileged. If you are not an intended recipient, do not
peruse, use, disseminate, distribute, copy or in any manner rely upon the
information contained in this message (directly or indirectly). The sender
and/or the entity represented by the sender shall not be held accountable
in the event that this prohibition is disregarded. If you receive this
message in error, notify the sender immediately by e-mail, fax or telephone
representations contained in this message, whether express or implied, are
those of the sender only, unless that sender expressly states them to be
the views or representations of an entity or person, who shall be named by
the sender and who the sender shall state to represent. No liability shall
otherwise attach to any other entity or person.
==========================================================

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

I was hoping someone could help me with this.  I am trying to install php version 
4.3.0 on a sun
sparc running solaris 2.8, and I'm getting stuck at the configure step.  When running 
the
configure command, this is what I get:

root@dalwhinnie> ./configure
loading cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for working sed... sed
checking host system type... sparc-sun-solaris2.8

And it gets no further.  I have no problems configuring php in the past.

Has anyone else seen this?

Thanks in advance,

Ewan


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

Trying boldly to create rpm of php-4.3.0 on a RedHat8 box.  Getting trouble 
with apxs, and cannot figure out the solution (thanks to RedHat's bizarre 
renaming of 'apache' to 'httpd' maybe?).

Basically, 'rpmbuild -bb php4.spec' reports one of the following:

        * says I have apache2 installed, requires --with-apxs2
        * sees the apxs2 switch but cannot find it (even when specified)

I've tried building by hand (./configure, no options), but keep getting errors 
at build time:

/home/mitchy/rpm/SOURCES/php-4.3.0/main/network.c:985: undefined reference to 
`SSL_free'
/home/mitchy/rpm/SOURCES/php-4.3.0/main/network.c:981: undefined reference to 
`SSL_shutdown'
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php] Error 1

Anyone out there get 4.3.0 to build on RH8 yet?  Bueller?

-- 
Mit freundlichen Gruessen / best regards

Mitch Pirtle
--- End Message ---
--- Begin Message ---
But wait, there's more!

[root@localhost php-4.3.0]# ./configure --with-apxs2=/usr/sbin/apxs
        (bunch of gcc stuff removed in the interest of saving bandwidth)
ext/mysql/libmysql/my_tempnam.lo: In function `my_tempnam':
/usr/src/redhat/SOURCES/php-4.3.0/ext/mysql/libmysql/my_tempnam.c:103: the use 
of `tempnam' is dangerous, better use `mkstemp'
[root@localhost php-4.3.0]#rm -rf /dev/brain

So what is keeping 4.3.0 from compiling on a RH8 box with stock rpms?  Am I 
all alone here?

-- mitch
--- End Message ---
--- Begin Message ---
I just installed PHP 4.3.0 as an Apache module. Everything went fine, and I
enabled the OpenSSL module (I can see it in my phpinfo()), but I still don't
have the https wrapper that I was looking for. My server is a Windows XP box
with Apache 1.3.27.

Does anybody know how to fix this?

Regards,

Dirkjan Ochtman


--- End Message ---

Reply via email to