php-install Digest 15 Mar 2002 20:49:12 -0000 Issue 745

Topics (messages 6367 through 6373):

Re: IMAP
        6367 by: T Churchward

SCO Openserver with Apache 1.3.9
        6368 by: Andrew Shika
        6370 by: Frank S. Bernhardt

RedHat 7.2 PHP install
        6369 by: John Thorne

Request from RH7.2 php rpm users
        6371 by: Nicholas Ritter
        6372 by: Hunter, Ray

SAPDB Compile Marathon Continues
        6373 by: Alex Black

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

I managed to do this as follows,

PHP: 4.0.6
UW imap client: imap-2001a
Linux Distro: RH6.2
Linux Kernel: 2.2.19-6.2.12
Cyrus IMAP: 2.0.16
Apache: 1.3.23
MySQL: 3.23.49

My configure command...

./configure --with-mysql=/usr/local/mysql --with-apxs=/usr/local/dev/apache/
bin/apxs --with-cyrus --with-zlib --with-gdbm=/usr/include/gdbm --with-imap=
/usr/local/uw-imap

We use cyrus imap here hence the need to add this to the configuration -
this may not be relevant for you.

You will need to get hold of teh UW imap client and compile it for your
system.  I installed this by creating a directory /usr/local/uw-imap and
copying the various files required into it.  I did it this way as I was
concerned not to harm my Cyrus Imap installation.

I tried unsuccessfully to use PHP 4.1.1 - it just wouldn't compile after
posting a question to this group I had to raise a bug on bug.php.net - if
you have the same problem as me then perhaps you could add your comments to
the bug!!  For reference it's "15776: imap compile failure"

On the question of writing a web mail client you might be able to save
yourself time by using one of the many available.  For example the company I
work for are trialing Silky Mail and Jawmail but there are many others.

If you would like me to dig out some URLs or think I might be able to help
further let me konw.

Best wishes

Tom Churchward
Red Logic


-----Original Message-----
From: Jason D. Williard [mailto:[EMAIL PROTECTED]]
Sent: 14 March 2002 19:46
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP-INST] IMAP


I would like to begin working with mail servers in PHP, with the intent of
creating a webmail system for my site.  I am trying to get things working,
but am not exactly sure how to get everything installed and configured
correctly.  I know that I have to install a c-client library, but am not
sure how to do this.  Not meaning to sound too helpless, could someone give
me some assistance installing and configuring the c-client?

 -- Jason W.



--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---
Greetings

I have compiled PHP as an apache module under SCO Openserver 5.0.x.
Everything compiles file but apache cannot load the module hence cannot
start and
it gives the following error message OpenServer cannot load Gemini shared
object
blah/blah/libexec/libphp4.so

Development tools: Unixware and OpenServer Development Kit (c/c++ compilers)
Please assists
Regards
Drew

--
--------------------------------------------------------------------
As Giuseppi Cocconi and Philip Morrison stated four decades ago,
"the probability of success is difficult to estimate,but if we
 never search, the chance of success is zero."
nickName: drew
     Web: http://www.bcit.co.za
   email: [EMAIL PROTECTED] ; [EMAIL PROTECTED]
    cell: (+27)(83)-708-7421


--- End Message ---
--- Begin Message ---
Hmm. Where to begin?

There's a build sequence you need to follow when building Apache with PHP as
well as a number of libraries. If you're satisfied with PHP3 you could install
the SCO (Caldera) Skunkware VOL install version. If you need PHP4 then you'll
have to build it yourself.

With the help of some wonderful people on this list I managed to get it done and
I've attached the steps I used.

Good luck.

Andrew Shika wrote:

> Greetings
>
> I have compiled PHP as an apache module under SCO Openserver 5.0.x.
> Everything compiles file but apache cannot load the module hence cannot
> start and
> it gives the following error message OpenServer cannot load Gemini shared
> object
> blah/blah/libexec/libphp4.so
>
> Development tools: Unixware and OpenServer Development Kit (c/c++ compilers)
> Please assists
> Regards
> Drew
>
> --
> --------------------------------------------------------------------
> As Giuseppi Cocconi and Philip Morrison stated four decades ago,
> "the probability of success is difficult to estimate,but if we
>  never search, the chance of success is zero."
> nickName: drew
>      Web: http://www.bcit.co.za
>    email: [EMAIL PROTECTED] ; [EMAIL PROTECTED]
>     cell: (+27)(83)-708-7421
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

--

Regards

Frank S. Bernhardt
b.c.s.i.
14 Halton Court
Markham, ON.
L3P 6R3

905-471-1691 Voice
905-471-3016 FAX

[EMAIL PROTECTED]

Hi all. I finally got my apache/php4/mysql under SCO 5.0.5 sorted out thanks to the 
help of:

           "Paul Gardiner" <[EMAIL PROTECTED]>
           "Grimes, Dean" <[EMAIL PROTECTED]>

I was missing a number of things (other than my sanity) such as libraries, patches and 
paths.
Dean sent me a list of things he did in order to get his going. I made some slight 
adjustments
to the instructions.

Here they are. They reflect my current configuration.

I hope they help someone else out there.

Operating system: SCO OpenServer 5.0.5

Step #1: Install SCO Development Kit

         Version: 5.1.1A

         1. Insert SCO OpenServer 5.0.5 Install CD
         2. custom
         3. Select Software
         4. Select Install New
         5. Select From (system_name)
         6. Select Media Device: CD-ROM Drive 0
         7. Tag the SCO OpenServer Development System (ver 5.1.1A)
         8. Select Install


Step #2: Install Patches/Updates:

rs505a - Release Supplement for SCO OpenServer
rs505a - Software Manager Supplement
oss497a - Core OS Supplement
oss497c - Core OS Supplement
oss600a - Year 2000 Supplement for RS505A
oss459b - COFF Linker Supplement
oss499a - rs505a Elf Linker Fix


"You will need to install the COFF Linker patch. You probably don't need the
Elf Linker .... But what the hay... It only takes a minute. Also, you most
likely won't need the Pentium patch either unless you do update your CPU
microcode and it is a pentium; we do. Aside from those two patches, you
should install all of the others. The only ones that matter as far as order
goes is the rs505a and the oss600a. The others can be installed in any
order. But... You need to remember the order incase you need to remove a
patch, because patches have to be removed in the order in which they were
installed. Otherwise, you will have to uninstall ALL patches down to the
basic OS and then reinstall any necessary patches. If you are not sure of
the order your current patches were installed, then you should just remove
them all and then reinstall all appropriate patches and make note of the
install order for the future. You do not need to reinstall Unix, only remove
all patches and reinstall all patches." - The "c" version fixes a bug that causes 
MySQL to
have problems. I have attached the "c" version with this email." - Dean

I also have installed: Graphics Library v1.5
                       Ncurses v4.2
                       UDK compatability modeule v5.0.5A
                       gdbm-1.7.3
        
Step #3: Install GNU make

         Version: 3.78.1

         1. download the source from: ftp://prep.ai.mit.edu/pub/gnu/make
         2. un-tar it into /usr/local
         3. cd /usr/local/make-3.78.1
         4. ./configure
         5. make
         6. make install

                OR

        Download the gmake v3.78.1 from SCO's web site and install as a VOL

I used the second method.

Step #4: Install FSU-pthreads

         Version: 3.5c

         1. Download the package from: http://www.mysql.com/downloads/os-sco.html
            (I got mine from Dean; the one from SCO was no good)
         2. un-tar it into /usr/local
         3. cd /usr/local/FSU-pthreads-3.5c
         4. cp lib/* ../lib
         5. cp -r include/* ../include
         6. ln -s /usr/local/lib/libgthreads.so /usr/lib/libgthreads.so

"The "c" version fixes a bug that causes MySQL to have problems." - Dean


Step #5: Install bison

         Version: 1.28

         1. Download the package from: ftp://prep.ai.mit.edu/pub/gnu/bison
         2. un-tar it into /usr/local
         1. cd /usr/local/bison-1.28
         2. configure
         3. make
         4. make install


Step #6. Install GNU gcc compiler

         Version: 2.95.2

         1. Download the package from: ftp://prep.ai.mit.edu/pub/gnu/gcc
         2. un-tar it into /usr/local
         3. cd /usr/local/gcc-2.95.2
         4. configure
         5. make bootstrap LANGUAGES="c c++"
         6. make install LANGUAGES="c c++"

                OR

        Download the gcc 2.95.2pl1 from SCO's web site and install as a VOL

"I had problems compiling MySQL with the Skunkware version. I could compile
PHP and Apache but not MySQL. However, after compiling gcc from scratch all
of my problems went away." - Dean

I did not have this problem with the Skunkware download.


Step #7: Install zlib

         Version: 1.1.3

         1. Download the package (I got mine from Dean; I'm not sure why I needed this)
         2. un-tar it into /usr/local
         1. cd /usr/local/zlib-1.1.3
         2. configure
         3. make
         4. make install
         5. ln -s /usr/local/lib/libz.so /usr/lib/libz.so



Step #8: Set PATH, LD_LIBRARY_PATH, LIBPATH and MANPATH (assuming all work done in 
root)

         Set Environment Variables:

         1. vi /.profile
         2. PATH=/usr/local/bin:/bin:/usr/bin:/etc:/usr/local/mysql/bin: \
            /usr/local/lib/gcc-lib/i386-pc-sco3.2v5.0.5/2.95.2
         3. LD_LIBRARY_PATH=/usr/lib:/usr/ccs/lib:/lib:/usr/local/lib: \
            /usr/local/lib/gcc-lib/i386-pc-sco3.2v5.0.5/2.95.2
         4. LIBPATH=/usr/lib:/usr/ccs/lib:/lib:/usr/local/lib: \
            /usr/local/lib/gcc-lib/i386-pc-sco3.2v5.0.5/2.95.2
         5. MANPATH=scohelp:/usr/man:/usr/local/man


Step #9: Install MySQL

         Version: 3.23.27

         1. Download the package from: http://www.mysql.com/downloads/mysql-3.23.html
                (I used the beta version show waaayyyy at the bottom of the page)
         2. un-tar it into /usr/local
         3. cd /usr/local/mysql-3.23.27-beta-pc-sco3.2v5.0.5-i386
         4. read and follow instructions in INSTALL-BINARY       
         5. configure --prefix=/usr/local/mysql
         6. make
         7. make install
         (mine ran without doing 8 - 10)        
         8. ln -s /usr/local/mysql/lib/libmysqlclient.s10 
/usr/local/lib/libmysqlclient.s10
         9. cd /usr/local/bin
         10. ln -s /usr/local/mysql/bin/* .
         11. mysql_install_db
         12. cp /usr/local/mysql/share/mysql/mysql.server /etc/init.d
         13. chmod 500 /etc/init.d/mysql.server
         14. ln -s /etc/init.d/mysql.server /etc/rc2.d/S99mysql
         15. ln -s /etc/init.d/mysql.server /etc/rc0.d/S01mysql
         16. copy /usr/local/mysql/support-files/my-(choose one).cnf /etc/my.cnf

Step #10: Configure Apache

         Version: 1.3.14

         1. cd /usr/local/apache_1.3.14
         2. configure --prefix=/usr/local/apache

Step #11: Install PHP4

         Version: 4.0.3pl1

         1. Download the package from: http://www.php.net/downloads.php
         2. un-tar it into /usr/local
         1. cd /usr/local/php-4.0.3pl1
         2. vi configure
         3. search for all occurrences of -lmysqlclient
         4. add -lz to each occurrence:
                 ex: MYSQL_SHARED_LIBADD "-lmysqlclient $MYSQL_SHARED_LIBADD"
          change to: MYSQL_SHARED_LIBADD "-lmysqlclient -lz $MYSQL_SHARED_LIBADD"

         5. save the configure file
         6. rm config.cache
            CC="gcc" \
            ./configure \
            --with-apache=/usr/local/apache_1.3.14 \
            --with-mysql=/usr/local/mysql-3.23.27-beta-pc-sco3.2v5.0.5-i386 \
            --enable-track-vars \
            --enable-sysvsem \
            --enable-sysvshm
 
Step #12: Install Apache

         Version: 1.3.14

         1. cd /usr/local/apache_1.3.14
         2. CC="gcc" \
            ./configure \
            --prefix=/usr/local/apache \
            --with-perl=/usr/local/bin/perl \
            --enable-module=most \
            --enable-shared=max \
            --enable-module=info \
            --enable-shared=info \
            --enable-module=so \
            --activate-module=src/modules/php4/libphp4.a \
            --enable-suexec \
            --suexec-safepath=/usr/local/bin/apache

         4. make
         5. make install
         6. ln -s /usr/local/apache/bin/apachectl /etc/apache
         7. ln -s /usr/local/apache/bin/apachectl /etc/init.d/apache
         8. ln -s /usr/local/apache/bin/apachectl /etc/rc2.d/S96apache

 
I included db_auth and recompiled gdbm-1.7.3. When I "apachectl configtest" it
can't resolve db_open (same old problem). When I take db_auth out of httpd.conf it
configtest's ok. Future project.

To my recollection, the above is what I did. Understand though, this was done
over a 3 week period :-)

Enjoy!
--- End Message ---
--- Begin Message ---
Some time you read to much into things.
I went to several "HowTo" sites about setting up Apache/php/mysql
They all talked about what rpms you needed etc
each one talked about mod_php which was not installed when selecting
php options in the RedHat 7.2 install and doing rpm -q mod_php.
And phpinfo would not display. I spent hours trying to find and install
mod_php with various dependency issues and gave up.

Than an old time Linux friend said
"When I install RedHat I just say "install everything" "
And that is the key.

To fellow "newbies" to build yourself an Apache/Php/mySQL box...
Just install everything from the 7.2 cd

For mySQL..
shell>Mysqladmin -u root password 'xxxx'
To access mySQL from remote pc
shell> mysql -u user -p  mysql
mysql> GRANT ALL PRIVILEGES ON *.* TO monty@localhost
    ->     IDENTIFIED BY 'some_pass' WITH GRANT OPTION;
mysql> GRANT ALL PRIVILEGES ON *.* TO monty@"%"
    ->     IDENTIFIED BY 'some_pass' WITH GRANT OPTION;

For phi.ini
I did nothing

For phpmySQLAdmin
edit config.inc.php for server address, user/password and upload

AND PHP IS UP AND RUNNING....

jrt

"Nicholas Ritter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> John Thorne wrote:
>
> >I can not get php installed/working on my new Rehat 7.2 box.
> >Various HowTo's say you need mod_php, which I finally found
> >(www.megaloman.com/~handy/RRPM/index.html)
> >
> >The install fails with a dependencies on libmm.so.1
> >Running locate finds a /usr/lib/libmm.so.11 not a ..1
> >
> >What am I missing here.
> >Is there some one making an rpm / script for RehHat that
> >will build a php/mysql/apache server ?
> >
> >This should not be this hard......
> >
> >thanks
> >
> >jrt
> >
> >
> >
> >
> >
> Try out Apache-Toolbox, which can be found via freshmeat.net or at:
>
> http://www.apachetoolbox.com/
>
>
> it gives you a text-menu based setup and installer.
>
> I have not used it much because I need some custom things that it can't
> do. You can also use the mysql/apache/php rpms that come with redhat 7.2
> will do the trick as well.
>
> Nicholas
>
>


--- End Message ---
--- Begin Message ---
This request is for anyone who is using Redhat 7.2 and the Redhat PHP 
rpms that come with Redhat 7.2.....


Can someone send me the build options for the redhat rpm? Coping and 
pasting the build options section from a  <? phpinfo() ?> page should do 
the trick.  Nobody has answered my questions, and I know I can get the 
answer by copying the Redhat build.

For those who don't know what I am talking about:

1) created a file in your public web directory, call it something (not 
that it matters) like phpconfiginfo.php.
2) In the file enter: <? phpinfo() ?>, and save it.
3) View the phpconfiginfo.php file with your web browser.
4) Copy and paste  the 'configure command' section and send it to me please.

Thanx in advance to anyone who answers my request.

Nicholas

--- End Message ---
--- Begin Message ---
Here is the file...

Configuration:

'./configure' '--prefix=/usr/local/php' '--bindir=/usr/bin'
'--sbindir=/usr/sbin' '--libexecdir=/usr/lib' '--oldincludedir=/usr/include'
'--with-config-file-path=/etc' '--with-apxs=/usr/sbin/apxs' '--with-pear'
'--enable-magic-qoutes' '--enable-libgcc' '--enable-bcmath'
'--enable-calendar' '--enable-ctype' '--enable-dbx' '--enable-ftp'
'--enable-gd-native-ttf' '--enable-trans-sid' '--enable-shmop'
'--enable-sockets' '--enable-wddx' '--enable-yp'
'--enable-inline-optimization' '--with-xml' '--disable-debug' '--enable-pic'
'--enable-shared' '--with-regex=system' '--with-gettext' '--with-gd'
'--with-jpeg-dir=/usr' '--with-zlib' '--enable-safe-mode' '--enable-sysvsem'
'--enable-sysvshm' '--enable-debugger' '--with-gdbm' '--with-db2'
'--with-db3' '--with-png' '--with-pgsql=/usr/local/pgsql'


Installed PHP RPMS:
php-imap-4.0.6-7
php-mysql-4.0.6-7
php-4.0.6-7
php-ldap-4.0.6-7
php-manual-4.0.6-7
php-odbc-4.0.6-7
php-pgsql-4.0.6-7
php-devel-4.0.6-7


******** NOTE: *********
These are not the updated rpms from redhat, they still have the upload
problems...


Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-----Original Message-----
From: Nicholas Ritter [mailto:[EMAIL PROTECTED]] 
Sent: Friday, March 15, 2002 9:51 AM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] Request from RH7.2 php rpm users


This request is for anyone who is using Redhat 7.2 and the Redhat PHP 
rpms that come with Redhat 7.2.....


Can someone send me the build options for the redhat rpm? Coping and 
pasting the build options section from a  <? phpinfo() ?> page should do 
the trick.  Nobody has answered my questions, and I know I can get the 
answer by copying the Redhat build.

For those who don't know what I am talking about:

1) created a file in your public web directory, call it something (not 
that it matters) like phpconfiginfo.php.
2) In the file enter: <? phpinfo() ?>, and save it.
3) View the phpconfiginfo.php file with your web browser.
4) Copy and paste  the 'configure command' section and send it to me please.

Thanx in advance to anyone who answers my request.

Nicholas


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Gotta love this,

Turns out that a couple things in combination seem to work for sapdb, but
now apache is broken. Anyway this works for SAPDB:

    -ensure that --with-odbc is specified before --with-sapdb
    -copy the contents of /opt/sapdb/depends/lib to
/opt/sapdb/interfaces/odbc/lib (yes that is dumb :)
    -edit /etc/ld.so.conf, add /opt/sapdb/interfaces/odbc/lib
    -run ldconfig
    -run ldconfig -p |grep sqlrte
        You must see:
        libsqlrte.so (libc6) => /opt/sapdb/interfaces/odbc/lib/libsqlrte.so
    -make
    -watch in disbelief as everything compiles fine except for apache
support! Apache support! the most basic of all! argh!

I _can_ compile perfectly well without SAPI/Apache. So for some reason 4.1.2
doesn't like Apache now, great :)

---------

PHP no longer complains about ld -sqlrte, now I get a 100% unrelated error
compiling with both apache 1.3.22 and 1.3.23:

.22/src/os/unix -I/root/bc_install/packages/php-4.1.2.mod/Zend
-I/usr/local/curl/include -I/usr/local/libxml2/include/libxml2
-I/usr/local/include -I/usr/local/mcrypt/include -I/usr/local/mhash/include
-I/root/bc_install/packages/php-4.1.2.mod/ext/mysql/libmysql
-I/u01/oracle/product/8.1.6/rdbms/public
-I/u01/oracle/product/8.1.6/rdbms/demo
-I/u01/oracle/product/8.1.6/network/public -I/opt/sapdb/interfaces/odbc/incl
-I/usr/local/mm/include -I/usr/local/expat/include
-I/usr/local/Sablot/include
-I/root/bc_install/packages/apache_1.3.22/src/include
-I/root/bc_install/packages/apache_1.3.22/src/os/unix
-I/root/bc_install/packages/php-4.1.2.mod/TSRM -g -O2  -c sapi_apache.c &&
touch sapi_apache.lo
In file included from
/root/bc_install/packages/apache_1.3.22/src/include/ap_config.h:77,
                 from
/root/bc_install/packages/apache_1.3.22/src/include/httpd.h:72,
                 from sapi_apache.c:32:
/root/bc_install/packages/apache_1.3.22/src/include/ap_config_auto.h:6:
unterminated `#if' conditional
In file included from
/root/bc_install/packages/apache_1.3.22/src/include/httpd.h:72,
                 from sapi_apache.c:32:
/root/bc_install/packages/apache_1.3.22/src/include/ap_config.h:1367:
warning: `XtOffsetOf' redefined
/root/bc_install/packages/php-4.1.2.mod/main/php.h:342: warning: this is the
location of the previous definition
make[3]: *** [sapi_apache.lo] Error 1
make[3]: Leaving directory
`/root/bc_install/packages/php-4.1.2.mod/sapi/apache'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/root/bc_install/packages/php-4.1.2.mod/sapi/apache'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/bc_install/packages/php-4.1.2.mod/sapi'
make: *** [all-recursive] Error 1

-----------

a hahahahha give me a bullet in the head! :)

this one doesn't seem to be something I can solve. ergh.

ideas anyone?

please_please cc: [EMAIL PROTECTED] and [EMAIL PROTECTED]
with any responses...

tia,

_alex


--- End Message ---

Reply via email to