[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Raq3: How to Install PHP-4.1.1



Well, better than last time. Reinstalled PHP-4.0.4pl1

Although the link was informative, my apxs was okay (a little different, but
at least had data in it).

I used PHP-4.0.4pl1 and everything went smoothly to an extent. I no longer
received errors during "make install", and the "libphp4.so" file finally has
shown up and sits in the right place. However, now when I restart Apache, I
get the following error:

"[admin@mail sbin]$ httpd start
Syntax error on line 33 of /etc/httpd/conf/httpd.conf:
Cannot load /usr/lib/apache/libphp4.so into server:
/usr/lib/apache/libphp4.so:
undefined symbol: uncompress"

I've done some reading so far, and from the looks of it there might be
something to do with MySQL here? Hoo-boy, this stuff is hard to learn after
that wonderful M$ stuff...

-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Marcel Beaudry
Sent: Monday, January 14, 2002 2:46 PM
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: [cobalt-users] Raq3: How to Install PHP-4.1.1


Hi,

First post here (and an ultra newbie to Linux to boot) so be gentle :)

Attempting to do: Install MySQL 3.23.47 and PHP-4.1.1 on Raq3 with all OS
and Security updates applied as are available from Cobalt.

Procedure used to successfully install MySQL:
http://www.e-gineer.com/instructions/install-mysql3xx-on-linux.phtml

There is no problem with MySQL, everything runs ducky but I run into mega
trouble with PHP-4.1.1 when I use these instructions located
http://marc.theaimsgroup.com/?l=php-general&m=98039640119670&w=2. BAsically
my Raq fails to function as a webserver anymore. Note that instead of
downloading the PHP4.0.4pl1, I download the latest PHP-4.1.1 (which could
very well be my problem, I don't know). Once I download this file (the
PHP4.1.1) I return to using the posted instructions that state:

**********Begin of instructions posted at above
URL***************************
## - weird little bug workaround - was looking in wrong directory for Apache
cd /usr/bin
ln -s /usr/sbin/httpd httpd

## - GO BACK TO THE PHP4 INSTALLATION
DIRECTORY  (/home/sites/home/users/admin/software/php4.0.3/)
./configure --with-apxs=/usr/sbin/apxs --with-mysql=/usr/local/mysql
--enable-track-vars --enable-trans-sid --enable-ftp

make

make install


vi php.ini-dist

         ## - CHANGE THESE LINES:

         #### under [mail function]
         sendmail_path   = /usr/sbin/sendmail -t -i


## COPY THE CONFIGURATION FILE TO WHERE PHP LOOKS FOR IT
cp php.ini-dist /usr/local/lib/php.ini


## WE HAVE TO ADD MySQL TO THE LIBRARY PATH
vi /etc/ld.so.conf
         ## - ADD THESE LINES AT THE END;
         /usr/local/mysql/lib/mysql

/sbin/ldconfig



## MAKE APACHE PHP-READY:

vi /etc/httpd/conf/srm.conf

find this line:
DirectoryIndex index.html index.htm  etc....
and add the 2 more options:   index.php index.php3

find the line talking about PHP:
change it from "php3" to just:

AddType application/x-httpd-php .php .php3 .htm .html


## READY TO RESTART APACHE:

go into /etc/httpd/conf/httpd.conf

and IF there is a line that reads this:
LoadModule php4_module        lib/apache/libphp4.so

amend it to read this:
LoadModule php4_module        /usr/lib/apache/libphp4.so

then restart httpd:
/etc/rc.d/init.d/httpd restart

*******************END of posted instructions*********************

My Problem: when I "make install" I get the following:

Making install in .
make[1]: Entering directory
`/home/sites/home/users/admin/software/php-4.1.1'
/usr/sbin/apxs -i -a -n php4 libs/libphp4.so
apxs:Warning: /usr/bin/httpd not found or not executable
apxs:Warning: Continuing anyway...
apxs:Warning: No shared object support for Apache
apxs:Warning: available under your platform. Make sure
apxs:Warning: the Apache module mod_so is compiled into
apxs:Warning: your server binary `/usr/bin/httpd'.
apsx:Warning: Continuing anyway...
cp libs/libphp4.so /usr/lib/apache/libphp4.so
chmod 755 /usr/lib/apache/libphp4.so
[activating module `php4' in /etc/httpd/conf/httpd.conf]
installing shared modules into
/usr/local/lib/php/extensions/no-debug-non-zts-20
010901
make[1]: Leaving directory `/home/sites/home/users/admin/software/php-4.1.1'
Making install in pear
make[1]: Entering directory
`/home/sites/home/users/admin/software/php-4.1.1/pea
r'
make[2]: Entering directory
`/home/sites/home/users/admin/software/php-4.1.1/pea
r'
Installing Archive/Tar.php
Installing Benchmark/Iterate.php
Installing Benchmark/Timer.php
Installing Cache.php
Installing Cache/Error.php
Installing Cache/Container.php
Installing Cache/Container/db.php
Installing Cache/Container/dbx.php
Installing Cache/Container/file.php
Installing Cache/Container/phplib.php
Installing Cache/Container/shm.php
Installing Cache/DB.php
Installing Cache/Function.php
Installing Cache/Graphics.php
Installing Cache/Output.php
Installing Cache/OutputCompression.php
Installing Console/Getopt.php
Installing Crypt/CBC.php
Installing Crypt/HCEMD5.php
Installing Date/Calc.php
Installing Date/Human.php
Installing DB.php
Installing DB/common.php
Installing DB/fbsql.php
Installing DB/ibase.php
Installing DB/ifx.php
Installing DB/msql.php
Installing DB/mssql.php
Installing DB/mysql.php
Installing DB/oci8.php
Installing DB/odbc.php
Installing DB/pgsql.php
Installing DB/storage.php
Installing DB/sybase.php
Installing File/Find.php
Installing File/Passwd.php
Installing File/SearchReplace.php
Installing HTML/Common.php
Installing HTML/Form.php
Installing HTML/IT.php
Installing HTML/ITX.php
Installing HTML/IT_Error.php
Installing HTML/Page.php
Installing HTML/Processor.php
Installing HTML/Select.php
Installing HTML/Table.php
Installing HTTP.php
Installing HTTP/Compress.php
Installing Image/Remote.php
Installing Log.php
Installing Log/composite.php
Installing Log/file.php
Installing Log/mcal.php
Installing Log/Observer.php
Installing Log/sql.php
Installing Log/syslog.php
Installing Mail.php
Installing Mail/RFC822.php
Installing Mail/sendmail.php
Installing Mail/smtp.php
Installing Mail/mime.php
Installing Math/Fraction.php
Installing Math/Util.php
Installing Net/Curl.php
Installing Net/Dig.php
Installing Net/SMTP.php
Installing Net/Socket.php
Installing Numbers/Roman.php
Installing PEAR.php
Installing PEAR/Common.php
Installing PEAR/Config.php
Installing PEAR/Installer.php
Installing PEAR/Packager.php
Installing PEAR/Remote.php
Installing PEAR/Uploader.php
Installing PEAR/Registry.php
Installing Payment/Verisign.php
Installing Schedule/At.php
Installing System.php
Installing XML/Parser.php
Installing header files
Installing build environment
Installing program: phpize
Installing program: php-config
Installing program: pear
Installing program: pearize
Installing program: phptar
Installing program: phpextdist
make[2]: Leaving directory
`/home/sites/home/users/admin/software/php-4.1.1/pear
'
make[1]: Leaving directory
`/home/sites/home/users/admin/software/php-4.1.1/pear

Note the apxs:warnings I get right off the bat. I realize that the Raq has
"/usr/sbin/httpd" instead of "/usr/bin/httpd" and thus it all goes to heck.
Is that my problem? Is there a way of correcting this? Or do I go back to
PHP-4.0.4pl1 and life will be sweet hopefully? (I'll be trying that tonight,
I just thought someone might have a quick answer and save me numerous
restore time).

Another noob question: Since I did the "make install" and rebooted Apache
(using a 'stop' then 'start', my web page no longer appears. I assume I
butchered something in Apache. Is there a way of undoing this install and
returning to happiness (a working webserver) or do I have to restore the Raq
every time I goober it like this (not a problem really, I bought all this
stuff so I could learn on it so I'm happy with how things are
going....learning alot...just trying to get past this PHP hurdle....

Thanks for your time people!

Marcel Beaudry


_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To Subscribe or Unsubscribe, please go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users