php-install Digest 31 May 2002 15:25:24 -0000 Issue 862
Topics (messages 7178 through 7182):
Re: Installing PHP with Apache 2.x
7178 by: Julie Meloni
7179 by: Nick Couchman
7180 by: Julie Meloni
Apache 1.3.24 & PHP 4.2.1 - Undefined Symbol Errors
7181 by: news.php.net
SOLVED Problem with $HTTP_POST_VARS
7182 by: Salvador Gil
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 ---
NC> Well, this is okay - if you're a windoze user. I'm not a Windoze user,
NC> I'm running RedHat Linux 7.2, so it doesn't do me much good. Thanks,
NC> anyway!
Actually, this link:
http://thickbook.com/extra/index.html?t=in
Contains a tutorial called "Setup and Install Apache with PHP 4.2.1 as
a Dynamic Module (DSO)"
IOW, not for Windows.
- Julie
--- End Message ---
--- Begin Message ---
Actually all of the stuff on that page is for Apache 1.3.x (or so it
appears). I need it for the new Apache 2.x.
-Nick
Julie Meloni wrote:
> NC> Well, this is okay - if you're a windoze user. I'm not a Windoze user,
> NC> I'm running RedHat Linux 7.2, so it doesn't do me much good. Thanks,
> NC> anyway!
>
> Actually, this link:
> http://thickbook.com/extra/index.html?t=in
>
> Contains a tutorial called "Setup and Install Apache with PHP 4.2.1 as
> a Dynamic Module (DSO)"
>
> IOW, not for Windows.
>
> - Julie
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
You can't make a difference until you are willing to be different.
--- End Message ---
--- Begin Message ---
NC> Actually all of the stuff on that page is for Apache 1.3.x (or so it
NC> appears). I need it for the new Apache 2.x.
Yeah, well, I tend to write tutorials for non-experimental things. :)
- Julie
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20
--- End Message ---
--- Begin Message ---
HI,
Server Details:
OpenUnix 8
Apache 1.3.24
PHP 4.2.1
LIBXML 2.4.16
gcc 2.95.3pl1
I am trying to compile Apache and PHP on OpenUnix 8.
Managed to get PHP to successfully compile and build a module for Apache.
PHP Configure:
./configure
--with-apache=/dir-to-apache-src
--with-mysql=/dir-to-mysql
--with-dom
--with-xml
--enable-track-vars
--with-zlib-dir=/usr/local/lib
Trying to compile apache, and I'm getting undefined symbol errors with PHP:
Configure for Apache:
./configure
--prefix=/usr/local/apache
--activate-module=src/modules/php4/libphp4.a
--enable-module=rewrite
--enable-module=so
I have also applied the Apache 1.3.24 SSL 1.48 module to the Apache source
directory.
gcc -DTARGET=\"httpsd\" -I/home/samsa/archives/php-4.2.1 -I/home/samsa/arch
ives/php-4.2.1/main -I/home/samsa/archives/php-4.
2.1/main -I/home/samsa/archives/php-4.2.1/Zend -I/home/samsa/archives/php-4.
2.1/Zend -I/home/samsa/archives/php-4.2.1/TSRM -I/home/sa
msa/archives/php-4.2.1/TSRM -I/home/samsa/archives/php-4.2.1 -DUSE_EXPAT -I.
/lib/expat-lite -DAPACHE_SSL `./apaci` \
-o httpsd buildmark.o modules.o modules/ssl/libssl.a
modules/php4/libphp4.a modules/standard/libstandard.a main/lib
main.a ./os/unix/libos.a ap/libap.a
lib/expat-lite/libexpat.a -L/usr/ucblib -L/usr/local/lib -L/usr/local/mysql
/lib -L/usr/ucbli
b -L/usr/local/lib -L/usr/local/mysql/lib -Lmodules/php4 -L../modules/php4 -
L../../modules/php4 -lmodphp4 -lmysqlclient -lz -lnsl -
lsocket -lm -lz -lxml2 -lz -lcrypt -lresolv -lresolv -lm -ldl -lsocket -lso
cket -lcrypt -L/usr/local/ssl/lib -lssl -lcrypto
Undefined first referenced
symbol in file
php_register_variable_ex libphp4.a(rfc1867.o)
php_std_post_handler libphp4.a(php_content_types.o)
php_treat_data libphp4.a(main.o)
tsrm_strtok_r libphp4.a(tsrm_virtual_cwd.o)
__builtin_generic libphp4.a(formatted_print.o)
php_register_variable libphp4.a(mod_php4.o)
php_import_environment_variables libphp4.a(main.o)
UX:ld: ERROR: Symbol referencing errors. No output written to httpsd
collect2: ld returned 1 exit status
*** Error code 1 (bu21)
UX:make: ERROR: fatal error.
Any ideas? I don't know what library has been left out. PHP built
successfully with gcc.
Thanks,
Sam
--- End Message ---
--- Begin Message ---
Aditionally to your suggestions, I had to use an:
if (isset($_POST["step"])
$a = $_POST["step"];
else
$a='';
Because the first time when this execute, I got a warning message like:
Warning: Undefined variable: step in
d:\Inetpub\wwwroot\CATALOG\INSTALL\install.php on line 19
Thank you very much, Gays.
-----Mensaje original-----
De: Yunier Saborit Ramírez [mailto:[EMAIL PROTECTED]]
Enviado el: Friday, May 31, 2002 8:57 AM
Para: Salvador Gil
Asunto: Re: [PHP-INST] Problem with $HTTP_POST_VARS
$a = $_POST["variable"]
----- Original Message -----
From: "Salvador Gil" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 30, 2002 2:10 PM
Subject: [PHP-INST] Problem with $HTTP_POST_VARS
> I'm trying to use $HTTP_POST_VARS but it have not value.
> I found a configuration line in php.ini
> track_vars = On
>
> but it didn't function.
>
> The code:
>
> echo "Valores enviados con el método POST: $step<br>";
> reset ($HTTP_POST_VARS);
> while (list ($clave, $val) = each ($HTTP_POST_VARS))
> { echo "$clave => $val<br>"; };
>
> Show somting like that:
>
> Valores enviados con el método POST:
>
> Any idea?
>
> Thanks.
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---