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!

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

Reply via email to