php-install Digest 17 Jul 2002 06:26:09 -0000 Issue 935

Topics (messages 7768 through 7775):

PHP - HOW TO MAKE IT WORK WITHIN APACHE
        7768 by: J Fazenda
        7774 by: Scott Lamb

Help on Solaris 9
        7769 by: David Yip

PHP-4.2.1+cyrus+imap
        7770 by: Wander - Compaq

PHP 4.2.1 + Oracle 9i + Solaris
        7771 by: Kenneth C. Demanawa

Re: Can't make PHP 4.2.1 with Apache2
        7772 by: Jon Armitage

HELP REQD /usr/bin/ld: cannot find -lpng
        7773 by: Abhishek Rana

php install
        7775 by: Serei Keo

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

After many hours of searching  FAQ's in vain, can some kind soul help me
get PHP to work ?

I installed RedHat 7.2  +  KDE about a week ago (my first Linux
intallation) without any significant problems and everything seemed to
be working
fiine until I tried PHP (with famous test "Hello World"). PHP refuses to
send me that greeting. It looks like the PHP module needs to be
activated.

I found the following lines in the httpd.conf that was installed in my
system:

<IfDefine> HAVE_PHP4>
LoadModule php4-module
</IfDefine>
.....
<IfDefine> HAVE_PHP4>
AddModule php4-module.c
</IfDefine>

And the following lines in the Apache startup script :

if [ -f /etc/sysconfig/apache ] ; then
        . /etc/sysconfig/apache
fi
....
start() {
        echo -n $"Starting $prog: "
        daemon $httpd `moduleargs` $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch /var/lock/subsys/httpd
        return $RETVAL
}

Note: I also have a file /etc/php.ini

The "Apache Aministrator's Handbook" I'm using says that to activate
modules, Apache should be started" with /usr/sbin/httpd -D<name>."
Is it correct to assume that  some "options" should be passed to the
function start() from the file ./etc/sysconfig/apache ?

Were can I get  this famous file ./etc/sysconfig/apache or instructions
to make it. I cannot find this file in my system.

This may be a bit academic because I guess I could try to make it work
by just commenting the "If" and "/If" lines around "LoadModule" and
"AddModule", but I would like to follow the thinking of whoever made
these start and conf files.
.
Thanks, Joe Fazenda







--- End Message ---
--- Begin Message ---
J Fazenda wrote:
> I found the following lines in the httpd.conf that was installed in my
> system:
>
> <IfDefine> HAVE_PHP4>
> LoadModule php4-module
> </IfDefine>
> .....
> <IfDefine> HAVE_PHP4>
> AddModule php4-module.c
> </IfDefine>
> 
> And the following lines in the Apache startup script :
[...]
>         daemon $httpd `moduleargs` $OPTIONS
> 
> The "Apache Aministrator's Handbook" I'm using says that to activate
> modules, Apache should be started" with /usr/sbin/httpd -D<name>."
> Is it correct to assume that  some "options" should be passed to the
> function start() from the file ./etc/sysconfig/apache ?

Take a look at that `moduleargs`. You'll also find in the file a 
function called moduleargs that is intended to generate all of those 
defines. It takes a file list of /usr/lib/modules/*.so and applies some 
regular expressions. Do a "ps auxww | fgrep httpd" and you should see a 
bunch of -DHAVE_xxx arguments.

> Were can I get  this famous file ./etc/sysconfig/apache or instructions
> to make it. I cannot find this file in my system.

There's nothing very special about it. It contains a shell script 
fragment so you can customize options. You could create it with text 
like this:

     OPTIONS="-DHAVE_PHP4"

but one has to wonder why it doesn't do that on its own. My guess is below.

> This may be a bit academic because I guess I could try to make it work
> by just commenting the "If" and "/If" lines around "LoadModule" and
> "AddModule", but I would like to follow the thinking of whoever made
> these start and conf files.

RedHat made those scripts. The goal, I think, was to be able to 
distribute things like PHP as seperate modules and not have to change 
the httpd.conf when they are installed and removed. So, you possibly 
have various things that wouldn't without additional RPMs in those 
<IfDefine>s.

I suspect you don't have the PHP RPMs installed. Do a "rpm -q php". 
Also, your configuration doesn't quite match up with mine. My RedHat 7.2 
system has this instead:

     <IfDefine HAVE_PHP4>
     LoadModule php4_module        modules/libphp4.so
     </IfDefine>

     ...

     <IfDefine HAVE_PHP4>
     AddModule mod_php4.c
     </IfDefine>

so maybe you don't have the latest RPMs. Go to RedHat's update site, 
make sure you have the latest Apache and PHP stuff. This is particularly 
important because there was a big Apache security advisory lately.

--
Scott Lamb

--- End Message ---
--- Begin Message ---
Hi all,

Anyone has an idea on this? I'm trying to use php on a Solaris 9 sparc with 
gcc 3.1 and apache 1.3.22.

Syntax error on line 236 of /etc/apache/httpd.conf:
Cannot load /usr/apache/libexec/libphp4.so into server: ld.so.1: 
/usr/apache/bin/httpd: fatal: relocation error: file 
/usr/apache/libexec/libphp4.so: symbol __cmpdi2: referenced symbol not found



--

David Yip

--

David Yip

--- End Message ---
--- Begin Message ---
Hi,

I�m trying to compile PHP on an Alpha machine with Tru64 UNIX V5.1A.
The configure line looks like:

./configure --with-mysql=/usr/local/mysql --enable-track-vars --with-mcrypt --
with-gettext --with-cyrus \
--with-openssl=/usr/local/ssl --with-imap --with-
apxs2=/usr/local/apache2/bin/apxs

But:
#make
...
/usr/local/lib/libc-client.a(osdep.o): fatal: multiply defined
/usr/local/lib/libcyrus.a(xmalloc.o): fs_get: multiply defined
/usr/local/lib/libcyrus.a(xmalloc.o): fs_give: multiply defined

The libc-client came from imap-2002.
The libcyrus came from cyrus-1.6.24.
PHP Version: 4.2.1

Does anyone have any hint?

TIA

Wander
--- End Message ---
--- Begin Message ---
Hi.

has anyone successfully installed/compiled PHP 4.2.1 against Oracle9i 
running on Solaris 8 with IPlanet 4 as the web server.
im trying to install  the 4.2.1 version against Oracle 9i for a week now 
with no luck.

first i configured PHP :
./configure --with-nsapi=/home/iplanet/server4/ --enable-track-vars 
--enable-libgcc --enable-trans-sid --with-oci8=/home/oracle/product/9.0.1 
--without-mysql

but it seems that PHP configure script cannot identify the oracle 9i oci 
libraries because i always get an error report in debug.log like this.
/usr/local/bin/ld: skipping incompatible 
/home/oracle/product/9.0.1/lib/libclnts
h.so when searching for -lclntsh
/usr/local/bin/ld: cannot find -lclntsh
collect2: ld returned 1 exit status

tryin to continue with the make command will still result with the same 
error.
i already checked my env variables and the oracle libraries `, and 
everything is in place.

what could be the culprit here? please help.

thanks.

--kenneth



----------------------------------
"if you build it, they will come"
Field of Dreams


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx

--- End Message ---
--- Begin Message ---
My thanks to everyone who emailed suggestions and solutions.

Since people are still emailing me regularly to ask if I found a solution, I
thought it would be better to post the answer.

Apparently the configure script gets confused because it can't find the Sun
compiler cc.

The simple solution, which I have not tried but I am assured works, is set
an environment variable CC=gcc before running configure.

Before being told this, I had discovered (with the help of a few hints from
around the world) that the solution was to rebuild the configure script:

$ mv configure something_else; ./buildconf

You need GNU autoconf and automake and maybe other goodies to do this.

Finally, I eventually discovered that the problem has been logged to the PHP
buglist. Why couldn't I find it when I first looked? I was searching for
Solaris 7 and it was logged against a different version...

Jon


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

Hi !

I am trying to install php-4.0.3pl1 with apache.
I failed at step:
./configure --with-mysql
--with-apxs=/PATH TO/www/bin/apxs

I have apache server 1.3.26 installed at /PATH TO/www

Following is the debug.log file contents:

----------------------------------
CONFIGURE:   './configure' '--with-mysql'
'--with-apxs=/PATH TO/www/bin/apxs'
CC:         gcc
CFLAGS:     -g -O2
CPPFLAGS:
CXX:
CXXFLAGS:
INCLUDES:    -I/PATH TO/www/include
-I$(top_builddir)/Zend
-I$(top_srcdir)
-I/PATH TO/php-4.0.3pl1/ext/mysql/libmysql
LDFLAGS:
LIBS:       -lpng -lz -lgd -lresolv -lm -ldl -lcrypt
-lnsl  -lresolv
DLIBS:
SAPI:       apache
PHP_RPATHS:
uname -a:   Linux MACHINENAME 2.4.9-31smp #1
SMP Tue
Feb 26 06:55:00 EST 2002 i686 unknown

gcc -o conftest -g -O2   conftest.c -lpng -lz -lgd
-lresolv -lm -ldl -lcrypt -lnsl  -lresolv 1>&5
/usr/bin/ld: cannot find -lpng
collect2: ld returned 1 exit status
----------------------------------


where /PATH TO/ is a shared area where I have r/w
permissions, and MACHINENAME is the qualified host name
from where I am trying to install.

Any help/suggestions would be appreciated.

Thanks

Abhishek

--- End Message ---
--- Begin Message ---
I'm sure I have a problem with my server, I'm using IIS on win2k and I'm having 
problems with forms, just a basic input to a form, then sending the info to a php 
script to output the input.  The same script DOES work on an apache server, but it 
doesnt work on my IIS server.  I can do other things with php on my computer like 
connec to and display contents from a mysql database.  I only seem to be having 
problems with forms at the moment.  Im using IIS that is on the win2k pro cd ( I think 
its IIS 5), the latest version of php running as cgi.  

This is my html form

<form method="post" action="form01.php">
Enter Your Name
<input type="text" name="userName"><br>
<input type="submit" name="submit" value="Submit form">
</form>

This is my php script

<?php
if ($submit=="Submit form")
{
 echo "Hello, $userName";
}
?>

--- End Message ---

Reply via email to