php-install Digest 28 Jan 2002 13:38:04 -0000 Issue 672
Topics (messages 5779 through 5795):
Re: Porting from Linux to Windows!?$#
5779 by: Alan McFarlane
Re: Old question: undefined symbol: uncompress
5780 by: Yasuo Ohgaki
Re: /usr/bin/ld: cannot find -lgssapi_krb5
5781 by: Yasuo Ohgaki
5783 by: Shena Delian O'Brien
5785 by: Yasuo Ohgaki
5786 by: Shena Delian O'Brien
5788 by: Yasuo Ohgaki
RESOLVED Old question: undefined symbol: uncompress
5782 by: David Jackson
Change my account :)
5784 by: Panita Boonma
5791 by: David Jackson
error on "Install PHP4"
5787 by: jink.dongyu.com.cn
5790 by: jink.dongyu.com.cn
PHP and environment variables... PLEASE HELP!!!
5789 by: Prakash
Re: [PHP-WIN] HELP! with PHP extension <<
5792 by: Martin Lindhe
problems with apache/php 4.1.1
5793 by: Michael Bordignon
apache not parsing php files
5794 by: anorakgirl
configuring php for db2
5795 by: Fabio Spinelli
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 ---
Parts of directories ~may~ be separated by / on Windows, so that alleviates
one problem (at least it works for me on NT4(SP5), Apache & PHP4).
Multiple paths are separated by ":" on *nix and ";" on Windows, an easy
check to make. For example:
$sep = strcasecmp(substr(PHP_OS, 0, 3), "win") ? ":" : ";";
$paths = array($path1, $path2);
ini_set("include_path", implode($sep, $paths));
I'm afraid I can't think of easy way of doing this throughout your code -
perhaps any *nix AWK gurus could come up with a script... :)
Andre Amaral <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all,
>
> I would like to ask my experienced friends here if its possible to port a
> script made for linux to run in windows IIS. I've been trying to make
linux
> scripts run on my server and some of them do and some don't. I also notice
> that the problem relies how Linux and Windows refer to firectories.
>
> Linux Ex.
> $base_dir = "/home/somescript/"
>
> Windows Ex.
> $base_dir = "C:\home\somescript"
>
> Now. My question is... Is there any way to use script made for Linux in
> Windows? If YES what have to be done in order to make it to work?
>
> Thank you,
> Andre
>
>
>
>
>
--- End Message ---
--- Begin Message ---
Try --with-zlib-dir option when you configure
David Jackson wrote:
> I've seen similar question in the archive, but here it goes?
> Setup: Slackware-8.0, Apache-1.3.23, mysql-3.23.47-pc-linux-gnu-i686
> Config options:
> Apache: ./configure --prefix=/usr/local/www --with-modules=most
> compiles and run fine.
>
> MySQl from binaires run fine into /usr/local/mysql (set ld.so.conf to
> correct value).
>
> PHP-4.1.1: ./configure --with-apxs=/usr/local/www/bin/apxs
> --with-mysql=/usr/local/mysql
> cp php-ini-recommanded /usr/local/lib/php.ini
> Added AddType statement to httpd.conf
>
>
> Results in following error when I try to start Apache:
>
> Syntax error on line 236 of /usr/local/www/conf/httpd.conf:
> Cannot load /usr/local/www/libexec/libphp4.so into server:
> /usr/local/www/libexec/libphp4.so: undefined symbol: uncompress
>
> Line 236 of http.conf:
> LoadModule php4_module libexec/libphp4.so
>
>
> Thanks for you help.
> David Jackson
>
--
Yasuo Ohgaki
Please CC me when you reply to news/list messages.
Do not reply only to me :)
--- End Message ---
--- Begin Message ---
You must have
libgssapi_krb5.* some where ld can access.
--
Yasuo Ohgaki
Please CC me when you reply to news/list messages.
Do not reply only to me :)
--- End Message ---
--- Begin Message ---
Yasuo Ohgaki wrote:
>
> You must have
> libgssapi_krb5.* some where ld can access.
Yes and when we do and it still errors?
--- End Message ---
--- Begin Message ---
Shena Delian O'Brien wrote:
> Yasuo Ohgaki wrote:
>
>>You must have
>>libgssapi_krb5.* some where ld can access.
>>
>
> Yes and when we do and it still errors?
>
Where do you have it?
Is the installed directory listed in /etc/ld.so.conf?
(or in /lib or /usr/lib?)
What happens when you execute ldconfig?
--
Yasuo Ohgaki
Please CC me when you reply to news/list messages.
Do not reply only to me :)
--- End Message ---
--- Begin Message ---
Yasuo Ohgaki wrote:
>
> No. There should not be any output.
> Try to rebuild PHP again, it may work now.
No, it's not going to. You see, I did not execute ldconfig when I
replied to you. I executed it last several days ago, and several days
before that. The entry for kerberos was already in ld.so.conf the last
several times I executed ldconfig to make sure *new* entries were
properly installed.
Therefore, this is not the problem. There is something else causing this
error.
--- End Message ---
--- Begin Message ---
Shena Delian O'Brien wrote:
> Yasuo Ohgaki wrote:
>
>>No. There should not be any output.
>>Try to rebuild PHP again, it may work now.
>>
>
> No, it's not going to. You see, I did not execute ldconfig when I
> replied to you. I executed it last several days ago, and several days
> before that. The entry for kerberos was already in ld.so.conf the last
> several times I executed ldconfig to make sure *new* entries were
> properly installed.
>
> Therefore, this is not the problem. There is something else causing this
> error.
>
Is libgssapi_krb5 shared versoin?
There should be shared one.
--
Yasuo Ohgaki
Please CC me when you reply to news/list messages.
Do not reply only to me :)
--- End Message ---
--- Begin Message ---
Yasuo --
Thanks for your response.
I was able to resolve this, by installing MySQL from source rather than
using
a biniary package.
Thanks again.
David
Yasuo Ohgaki wrote:
>
> Try --with-zlib-dir option when you configure
>
> David Jackson wrote:
> > I've seen similar question in the archive, but here it goes?
> > Setup: Slackware-8.0, Apache-1.3.23, mysql-3.23.47-pc-linux-gnu-i686
> > Config options:
> > Apache: ./configure --prefix=/usr/local/www --with-modules=most
> > compiles and run fine.
> >
> > MySQl from binaires run fine into /usr/local/mysql (set ld.so.conf to
> > correct value).
> >
> > PHP-4.1.1: ./configure --with-apxs=/usr/local/www/bin/apxs
> > --with-mysql=/usr/local/mysql
> > cp php-ini-recommanded /usr/local/lib/php.ini
> > Added AddType statement to httpd.conf
> >
> >
> > Results in following error when I try to start Apache:
> >
> > Syntax error on line 236 of /usr/local/www/conf/httpd.conf:
> > Cannot load /usr/local/www/libexec/libphp4.so into server:
> > /usr/local/www/libexec/libphp4.so: undefined symbol: uncompress
> >
> > Line 236 of http.conf:
> > LoadModule php4_module libexec/libphp4.so
> >
> >
> > Thanks for you help.
> > David Jackson
> >
>
> --
> Yasuo Ohgaki
> Please CC me when you reply to news/list messages.
> Do not reply only to me :)
>
> --
> 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 ---
Dear sir
Could you change my e-mail address in [EMAIL PROTECTED]
from [EMAIL PROTECTED] to [EMAIL PROTECTED] ?
Thank you for your kind :)
PS. Please let me know if you change my email :)
Bye
Panita
--- End Message ---
--- Begin Message ---
Panita --
Goto http://www.php.net/support.php
Unsubscribe [EMAIL PROTECTED]
Then subscribe: [EMAIL PROTECTED]
David
Panita Boonma wrote:
>
> Dear sir
>
> Could you change my e-mail address in [EMAIL PROTECTED]
> from [EMAIL PROTECTED] to [EMAIL PROTECTED] ?
>
> Thank you for your kind :)
>
> PS. Please let me know if you change my email :)
>
> Bye
>
> Panita
>
> --
> 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
I'm a chinese boy. and i'm a fresh men on PHP. When i install php4,i make some
errors.
Can you help me?
I install this php on Redhat7.2 + apache1.2.22
+--------------------------------------------------------------------+
| *** WARNING *** |
| |
| You will be compiling the CGI version of PHP without any |
| redirection checking. By putting this cgi binary somewhere in |
| your web space, users may be able to circumvent existing .htaccess |
| security by loading files directly through the parser. See |
| http://www.php.net/manual/security.php for more details. |
+--------------------------------------------------------------------+
| *** ATTENTION *** |
| |
| Something is likely to be messed up here, because the configure |
| script was not able to detect a simple feature on your platform. |
| This is often caused by incorrect configuration parameters. Please |
| see the file debug.log for error messages. |
| |
| If you are unable to fix this, send the file debug.log to the |
| [EMAIL PROTECTED] mailing list and include appropiate |
| information about your setup. |
+--------------------------------------------------------------------+
| *** WARNING *** |
| |
| You chose to compile PHP with the built-in MySQL support. If you |
| are compiling a server module, and intend to use other server |
| modules that also use MySQL (e.g, mod_auth_mysql, PHP 3.0, |
| mod_perl) you must NOT rely on PHP's built-in MySQL support, and |
| instead build it with your local MySQL support files, by adding |
| --with-mysql=/path/to/mysql to your configure line. |
+--------------------------------------------------------------------+
| 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!!!!
jaco
--- End Message ---
--- Begin Message ---
Hello
I'm a chinese boy. and i'm a fresh men on PHP. When i install php4,i make some
errors.
Can you help me?
I install this php on Redhat7.2 + apache1.2.22
+--------------------------------------------------------------------+
| *** WARNING *** |
| |
| You will be compiling the CGI version of PHP without any |
| redirection checking. By putting this cgi binary somewhere in |
| your web space, users may be able to circumvent existing .htaccess |
| security by loading files directly through the parser. See |
| http://www.php.net/manual/security.php for more details. |
+--------------------------------------------------------------------+
| *** ATTENTION *** |
| |
| Something is likely to be messed up here, because the configure |
| script was not able to detect a simple feature on your platform. |
| This is often caused by incorrect configuration parameters. Please |
| see the file debug.log for error messages. |
| |
| If you are unable to fix this, send the file debug.log to the |
| [EMAIL PROTECTED] mailing list and include appropiate |
| information about your setup. |
+--------------------------------------------------------------------+
| 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. |
+--------------------------------------------------------------------+
# make
Making all in Zend
make[1]: Entering directory `/var/soft/webserver/php/php-4.1.1/Zend'
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main
-I../TSRM -g -O2 -prefer-non-pic -static -c zend_language_parser.c
/tmp/ccCcHPA7.s: Assembler messages:
/tmp/ccCcHPA7.s:1214: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccCcHPA7.s:1214: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccCcHPA7.s:1214: Error: Rest of line ignored. First ignored character is `,'.
/tmp/ccCcHPA7.s:10936: Error: Rest of line ignored. First ignored character is `,'.
make[1]: *** [zend_language_parser.lo] Error 1
make[1]: Leaving directory `/var/soft/webserver/php/php-4.1.1/Zend'
make: *** [all-recursive] Error 1
Thank you!!!!
jaco
--- End Message ---
--- Begin Message ---
--- Desperate help request... ---
--- too difficult for PHP-GENERAL, too simple for PHP-DEV... no answers at all... ---
PLEASE HELP...!
Hi,
I'm trying to execute a Webmin script where I can use php as scripting
language... (It will be good to work with a language as php in a remote
administration server, as root! potentially dangerous but good!)
Now the STRANGE problem: (seems to be some env variables (maybe I'm wrong)
when executing PHP as CGI...)
When I execute a test.cgi program from Webmin, it's executed as root, as it
was from command line... that's good. The problem is that Webmin execute
well _every_ program I tried , EXCEPT php !
It seems that php needs some env variables to work well, and these variables
aren't provided from the Webmin interface, so to solve the problem I've
first to understand WHY php does not work...
---------------------
Maybe I can better explain with 2 samples:
> file aaa.cgi
>
> #!/bin/bash
> echo "Content-type: text/plain"
> echo
> echo "aaa"
> touch /home/test.txt
> file bbb.cgi
>
> #!/usr/local/bin/php -q
> <?php
> echo "Content-type: text/plain\n\n";
> echo "aaa\n";
> $fd = fopen("/home/test.txt","w");
> fclose($fd);
> ?>
Now, the 2 programs are quite the same... (if test.txt does not exist...)
But, the 2 programs behave the same way only if you execute them _from
command line_.
If you execute them from the Webmin interface (very good for remote
administration, that lets execute programs as user root), they behave
differently:
aaa.cgi is the same, displays "aaa" on the remote web-browser, and creates
(well, if text.txt doesn't exist) a local file.
bbb.cgi does nothing, sends no http headers, no aaa, and does not create the
file...
It seems that PHP needs some env variables, and without them, it suddenly
stops without parsing the file... am I right ?!?
I've also tried to escape from this problem (until understood and solved)
with a third program:
> file ccc.cgi
>
> #!/bin/bash
> /usr/bin/at -f /path/bbb.cgi now+1minute
> touch /home/test2.txt
If I call ccc.cgi from Webmin and then from command line, the 2 executions
are scheduled properly, and look really the same (root user,same
program,...) but the task scheduled from Webmin is not executed
properly...
the php seems to stop with no output.
Also with a file like this:
> file ddd.cgi
>
> #!/bin/bash
> /path/bbb.cgi 2>&1 > test3.txt
show that php really has no output on stdout or stderr (bbb.cgi is the IInd
file, and test3.txt is created, but 0 bytes long when invoked from Webmin!)
So, the BIG problem is: if Webmin can execute all programs, running them as
root, WHY doesn't work well with php scripts ?!?
I think that the PHP need something, and not having it it suddenly stops...
but what ?!?
Are there some developer that can help ?!?
(Writing Webmin modules in perl is not good, if you work mainly with php,
and webmin can be the best remote administration utility...)
thanks to all,
waiting for some news...
prakash
--- End Message ---
--- Begin Message ---
> Hi all,
>
> Here is the situation.
>
> I have Windows 2000 SP2, IIS5 running PHP 4.1.1 using CGI.
>
> My PHP folder is C:\php
> Extension Folder is: C:\php\extension
> PHP.INI file: extention_dir = "C:\php\extension\"
Are you sure the foldername is "extension"?
Just asking you to doublecheck since the default would be
"extensions".
/Martin
--- End Message ---
--- Begin Message ---
hello,
i've just tried to compile php 4.1.1, but when i start apache it comes up with:
[root@db bin]# ./apachectl configtest
Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server:
/usr/local/apache/libexec/libphp4.so: undefined symbol: uncompress
php's configure and make scripts worked fine - no errors. anyone got any ideas?
tia - michael
--- End Message ---
--- Begin Message ---
hi,
sorry, i'm sure this is a really common question, but i can't seem to
resolve it.
i've just installed php on a second redhat box, and as far as i can tell
i've done everything the same as the first one on which it works, but it
doesn't - when i try to request a php file, it just gets served as text i.e.
the php isn't processed.
here's what i've checked:
libphph4.so is in the right place
my httpd.conf has the following lines:
LoadModule php4_module libexec/libphp4.so
AddModule mod_php4.c
and later:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
don't get any errors when i start apache or anything, can't think of
anything else to check. i'm not even sure how to tell where the problem is,
i.e. is apache is loading the php4 module at all, or it it just something in
my config file not telling it to parse the files or something.
anyone suggest what i should be checking?
thanks!
--- End Message ---
--- Begin Message ---
hi, I have a RedHat distribution installed with mysql. Now I would like also
to connect to my AS400 with database DB2, via ODBC unificated functions...
but these functions are not defined, probably because the PHP installed was
not compiled for DB2 support.
Does anyone know how to recompile PHP for DB2 (ODBC unificated), and if is
the only step necessary to make the scripts able to connect to DB2?
Thank, Fabio
--- End Message ---