php-install Digest 28 Jan 2002 01:28:36 -0000 Issue 671

Topics (messages 5771 through 5778):

cofiguration of php4 for oracle8 on windows 98
        5771 by: krishna  anand

Old question: undefined symbol: uncompress
        5772 by: David Jackson

/usr/bin/ld: cannot find -lgssapi_krb5
        5773 by: Kasper Haagensen
        5777 by: Shena Delian O'Brien

Porting from Linux to Windows!?$#
        5774 by: Andre Amaral
        5775 by: Matthew Darcy

Re: [PHP-DB] PHP + Postgresql + Linux = Frustration
        5776 by: Miles Thompson

error on "Install PHP4"
        5778 by: jink.dongyu.com.cn

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 php4.1.1,apache1.3.*,mysql running on windows 98.
It's going well.
I have personal oracle8 running on the same machine.
I  tried  hard connecting php with oracle but in vain.

when I uncommented  php-oci8.dll in php , php sript could not get loaded.Sometimes it 
displayed   many errors like -fatal error ocilogon.....etc.Sometimes a
blank page is there.

Though when I connect oracle through php-odbc function
It works fine.
PLEASE HELP ME! 
How to connfigure php for oracle8 on windows 98 and which files to copy where and put 
where.
Iwill be much obliged.
THANKS 

--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
Hallo there

Does somebody have a good answer to this problem?

kasper



[root@mp3 php-4.1.1]# more debug.log
CONFIGURE:   './configure' '--with-mysql=/usr/local/mysql/'
'--with-apache=../apache_1.3.22' '--enable-track-vars' '--with-so' '--wi
th-gd' '--with-jpeg' '--with-ttf'
'--with-imap=/usr/share/doc/imap-devel-2000c/' '--with-kerberos'
'--with-imap-ssl=/usr/share/doc/i
map-devel-2000c/'
CC:         gcc
CFLAGS:     -g -O2
CPPFLAGS:
CXX:
CXXFLAGS:
INCLUDES:    -I/root/downloads/apache_1.3.22/src/include -I/root/downloads/a
pache_1.3.22/src/os/unix  -I$(top_builddir)/Zend -I/incl
ude -I/usr/include/imap -I/usr/local/mysql//include/mysql
LDFLAGS:     -Wl,-rpath,/usr/kerberos/lib -L/usr/kerberos/lib -Wl,-rpath,/us
r/share/doc/imap-devel-2000c//lib -L/usr/share/doc/imap-
devel-2000c//lib -Wl,-rpath,/usr/local/mysql//lib/mysql -L/usr/local/mysql//
lib/mysql
LIBS:       -lmysqlclient -lcrypt -lgd -lcrypt -lresolv -lm -ldl -lnsl  -lre
solv -lcrypt -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
DLIBS:      -lcrypto -lssl -lc-client
SAPI:       apache
PHP_RPATHS:  /usr/kerberos/lib /usr/share/doc/imap-devel-2000c//lib
/usr/local/mysql//lib/mysql
uname -a:   Linux mp3.clubdj.dk 2.4.7-10 #1 Thu Sep 6 17:27:27 EDT 2001 i686
unknown

gcc -o
conftest -g -O2   -Wl,-rpath,/usr/kerberos/lib -L/usr/kerberos/lib -Wl,-rpat
h,/usr/share/doc/imap-devel-2000c//lib -L/usr/sha
re/doc/imap-devel-2000c//lib -Wl,-rpath,/usr/local/mysql//lib/mysql -L/usr/l
ocal/mysql//lib/mysql conftest.c -lmysqlclient -lcrypt -
lgd -lcrypt -lresolv -lm -ldl -lnsl  -lresolv -lcrypt -lgssapi_krb5 -lkrb5 -
lk5crypto -lcom_err 1>&5
/usr/bin/ld: cannot find -lgssapi_krb5
collect2: ld returned 1 exit status

--- End Message ---
--- Begin Message ---
Kasper Haagensen wrote:
> 
> Hallo there
> 
> Does somebody have a good answer to this problem?

I'm getting it too... and I *have* kerberos 5 installed properly.. and
the line to the libs is already in ld.so.conf
--- End Message ---
--- Begin Message ---
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 ---
not really up with windows,

but I remember porting some java stuff to windows from a solaris platform
and for the webstuff it was a problem until the NT consultant found a way to
set the rootdir of the IIS webserver to represent unix file structure.

if the webpages where stored in c:\iis\site1\webpages the NT chap managed to
set the webpages dir to root. So if your php scripts where stored in
c:\iis\site1\webpages\php_scripts then you would reference it by
/php_scripts as webpages would be the root of the webserver.

this worked for me on Java.

I'll mail the NT guy who set this up as he is a good friend.

Matt.


-----Original Message-----
From: Andre Amaral [mailto:[EMAIL PROTECTED]]
Sent: 27 January 2002 17:51
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP-INST] Porting from Linux to Windows!?$#


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






--
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 ---

Mike,

I will probably not be much more help to you, and 
I appreciate the time sink aspect.  I've interspersed
comments/questions below. 

PostgreSQL runs ok, does Apache run?

On Sunday 27 January 2002 10:39 am, Mike DiChiappari wrote:
> Miles,
>
> Thanks for the instructions.  I am hesitant to try doing anything
> that involves building, because I don't want it to become a time
> sink.  However, I'll give it a little more time.
>
> I've used the combination of your instructions along with those from
> RedHat.  I am using a vanilla RedHat 7.2 installation and have their
> sources.  I assume things would go easier if I use the RedHat sources.
>
> I've already encountered a problem.  I've installed the RPMs with
> source code for PHP4 and Apache, following RedHat's instructions.
> When I run configure for PHP, I get the following error in the
> debug.log file:
>
> CONFIGURE:   './configure' '--with-apache=../apache_1.3.20'
> '--with-pgsql=/usr/lib' '--prefix=/usr/'

Check PHP's INSTALL doc, does it want the path to where Apache is installed, 
or to Apache's source? Similarly for with-pgsl, path to the executable, or to the 
directory
where the executable is placed, or to source?

> CC:         gcc
> CFLAGS:     -g -O2
> CPPFLAGS:    -DSUPPORT_UTF8
> CXX:
> CXXFLAGS:
> INCLUDES:    -I/usr/src/redhat/SOURCES/apache_1.3.20/src/include
> -I/usr/src/redhat/SOURCES/apache_1.3.20/src/os/unix
> -I$(top_builddir)/Zend
> LDFLAGS:     -Wl,-rpath,/lib -L/lib
> LIBS:       -lpq -lcrypt -lresolv -lm -ldl -lnsl  -lresolv
> DLIBS:
> SAPI:       apache
> PHP_RPATHS:  /lib
> uname -a:   Linux farout 2.4.7-10 #1 Thu Sep 6 17:27:27 EDT 2001 i686
> unknown
>
> gcc -o conftest -g -O2  -DSUPPORT_UTF8  -Wl,-rpath,/lib -L/lib
> conftest.c -lpq -lcrypt -lresolv -lm -ldl -lnsl  -lresolv 1>&5
> /usr/bin/ld: cannot find -lpq
> collect2: ld returned 1 exit status

I'm sorry I don't know what the -lpq parameter means.

> I assume this means there is a library missing.  It has a name like
> "libpq.o" or something.  If I do a find on my entire system I get:
>
> ./usr/lib/libpq++.so.3
> ./usr/lib/libpq++.so.3.1
> ./usr/lib/libpq.so.2
> ./usr/lib/libpq.so.2.0
> ./usr/lib/libpq.so.2.1
>
> I am not sure what the numbers at the end of each name are.  But
> since PostgreSQL runs, I assume one or more of these is the correct
> one.

If you cd to usr/lib, and issue 
   ls -l libpq*
you will probably find that most of these are symlinks to one or two of the files.

The build you are attempting is a static build, which is why it is looking for a .o, 
rather  than a .so file. 
Where does one tell PHP's config to find that object file? Was a static object file 
created for PostgreSQL?

Do you have Perl on the system, and have you considered building "with-apxs", 
which allows dynamic shared objects, the .so files you already have.

I'm stuck, and I've echoed this to php-install where you'll get much bettter support.

Sorry I can't be more help - Miles


> Mike
>
> >Mike,
> >
> >This can be a bit frustrating, but all in all it's not too bad. I
> >usually make up my own configuration file just to avoid re-typing
> >everything, because I generally don't get it right the first time. I
> >then chmod +x them so that they will execute. They're quite simple,
> >just scripts that call configure with all the various parameters.
> >
> >I arrived at the choices below after reading the LAMP documents, the
> >"Soothingly Seamless Installation of Linux, Apache, MySQL and PHP"
> >and the various configuration options for each of MySQL, PHP,
> >PostgreSQL and Apache.
> >
> >Before building from source I tried working with RPMs on my older
> >Red Hat systems, and with dselect on two Debian boxes. These are all
> >well-debugged software packages, and aside from taking some time to
> >compile on the oldest box, a P 133, everything went smoothly.
> >
> >Here's the one for PostgreSQL, locating PostgreSQL in a very
> >non-standard location. Can't remember why I wanted w-odbc.
> >-------start of script ----------
> >#!/bin/sh
> >./configure \
> >--with-prefix=/drv2/bin/pgsql \
> >--with-odbc
> >---------- end of script --------
> >
> >For Apache I wanted a whole bunch of stuff, thus
> >"enable-shared=max". If I remember correctly that let me load all
> >the modules dynamically.
> >-------start of script ----------
> >#!/bin/sh
> >./configure \
> >--with-layout=Apache\
> >--prefix=/usr/local/apache \
> >--enable-shared=max
> >---------end of script -----------
> >
> >And finally PHP. "with apxs" allows Apache to load PHP dynamically,
> >and the parameter has to be specific. "with-mysql" points to my
> >non-standard location of mysql, similarly I told it explicity where
> >PostgreSQL was installed.
> >------- start of script --------
> >#! /bin/sh
> >./configure \
> >--with-apxs=/usr/local/apache/bin/apxs \
> >--with-mysql=/drv2/bin/mysql \
> >--with-pgsql=/usr/local/pgsql \
> >--enable-track-vars
> >------------- end of script --------
> >
> >Pay attention to the line in the PHP  INSTALL doc refers to
> >relocating php-ini-dist (think that's the name) and to the changes
> >you have to make to Apache's httpd.conf file.
> >
> >When all configuring, making and installing is done, you may get an
> >error from Apache that it can't find the .so modules for PostgreSQL
> >(and in my case, MySQL). If so, locate the modules and edit
> >/etc/ld.so.conf, adding the paths to these modules. On my system I
> >added these two lines,
> >   /usr/local/pgsql
> >   /drv2/bin/mysql/lib/mysql
> >
> >Save the file and run ldconfig. Apache should then run OK.
> >
> >As to your question "Why doesn't PHP have support for PostgreSQL
> >built in ..", have a look at all the different databases PHP
> >supports and consider how immense the program would be if everything
> >was compiled in by default.
> >
> >Hope this is helpful. If you have more problems, there is a
> >php-install list which deals with specific installation problems.
> >
> >Regards - Miles Thompson
> >
> >PS These 4 programs were my first experience building on Linux
> >systems, and initially it was a bit daunting. I hope you find this
> >helpful. /mt
--- 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 ---

Reply via email to