php-install Digest 12 May 2002 15:45:43 -0000 Issue 831

Topics (messages 6943 through 6947):

PHP installtion problem
        6943 by: JOSEPH OGUNRO
        6944 by: Rasmus Lerdorf

a php cgi problem
        6945 by: Brian Kim

a php-cgi problem
        6946 by: Brian Kim

Re: Installing PHP 4.20 on RedHat 7.1 for use with Apache
        6947 by: Chris Hewitt

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 ran into problem when compiling PHP with apache and mysql
$ ./configure --with-mysql=/usr/local/mysql-3.22.32-pc-linux-gnu-i686/ 
--with-apxs=/usr/local/apache_1.3.12/bin/apxs

Below is the debug log

CONFIGURE:   './configure' '--with-mysql=/usr/local/mysql-3.22.32-pc-linux-gnu-i686/' 
'--with-apxs=/usr/local/apache_1.3.12/bin/apxs'
CC:         gcc
CFLAGS:     -g -O2
CPPFLAGS:    
CXX:         
CXXFLAGS:    
INCLUDES:    -I/usr/local/apache_1.3.12/include  -I$(top_builddir)/Zend 
-I$(top_srcdir)  -I/usr/include/freetype 
-I/usr/local/mysql-3.22.32-pc-linux-gnu-i686//include
LDFLAGS:     -Wl,-rpath,/usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql 
-L/usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql
LIBS:       -lmysqlclient -lttf -lpng -lz -lgd -lresolv -lm -ldl -lcrypt -lnsl  
-lresolv
DLIBS:       
SAPI:       apache
PHP_RPATHS:  /usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql
uname -a:   Linux itek02.itek.net 2.4.2-2 #1 Sun Apr 8 20:41:30 EDT 2001 i686 unknown
gcc -o conftest -g -O2   
-Wl,-rpath,/usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql 
-L/usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql conftest.c -lmysqlclient -lttf 
-lpng -lz -lgd -lresolv -lm -ldl -lcrypt -lnsl  -lresolv 1>&5
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status

Please HELP!

[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Is there a libmysqlclient library somewhere under
/usr/local/mysql-3.22.32-pc-linux-gnu-i686 ?

On Sat, 11 May 2002, JOSEPH OGUNRO wrote:

> I ran into problem when compiling PHP with apache and mysql
> $ ./configure --with-mysql=/usr/local/mysql-3.22.32-pc-linux-gnu-i686/ 
>--with-apxs=/usr/local/apache_1.3.12/bin/apxs
>
> Below is the debug log
>
> CONFIGURE:   './configure' 
>'--with-mysql=/usr/local/mysql-3.22.32-pc-linux-gnu-i686/' 
>'--with-apxs=/usr/local/apache_1.3.12/bin/apxs'
> CC:         gcc
> CFLAGS:     -g -O2
> CPPFLAGS:
> CXX:
> CXXFLAGS:
> INCLUDES:    -I/usr/local/apache_1.3.12/include  -I$(top_builddir)/Zend 
>-I$(top_srcdir)  -I/usr/include/freetype 
>-I/usr/local/mysql-3.22.32-pc-linux-gnu-i686//include
> LDFLAGS:     -Wl,-rpath,/usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql 
>-L/usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql
> LIBS:       -lmysqlclient -lttf -lpng -lz -lgd -lresolv -lm -ldl -lcrypt -lnsl  
>-lresolv
> DLIBS:
> SAPI:       apache
> PHP_RPATHS:  /usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql
> uname -a:   Linux itek02.itek.net 2.4.2-2 #1 Sun Apr 8 20:41:30 EDT 2001 i686 unknown
> gcc -o conftest -g -O2   
>-Wl,-rpath,/usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql 
>-L/usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql conftest.c -lmysqlclient 
>-lttf -lpng -lz -lgd -lresolv -lm -ldl -lcrypt -lnsl  -lresolv 1>&5
> /usr/bin/ld: cannot find -lmysqlclient
> collect2: ld returned 1 exit status
>
> Please HELP!
>
> [EMAIL PROTECTED]
>

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

I installed php 4.0.4 (cgi binary) and apache 1.3.14 on window 2000. When I
run
<?php phpinfo(); ?> in the 'DocumentRoot' directory, it works. But when I
run
a php cgi script stored in the "cgi-bin" directory, it gives an error:
"Internal Server Error.
The server encountered an internal error or misconfiguration and was unable
to complete your request."

So I tried to add "#!c:/php/php.exe" to the first line of the above
cgi-script,
it works, but this time, #!c:/php/php.exe is displayed in the output of the
cgi-script.
I followed the standard instructions, but I am not sure what went wrong.
Any idea on how to fix this problem?

Brian
-----------------------------
My httpd.conf has the following lines:
...
DocumentRoot "D:/Web"
<IfModule mod_alias.c>
  ...
  ScriptAlias /php/ "C:/php/"
  ScriptAlias /cgi-bin/ "D:/Web/cgi-bin/"
 <Directory "D:/Web/cgi-bin">
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
 </Directory>
</IfModule>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.344 / Virus Database: 191 - Release Date: 2002-04-02

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

I forgot to mention the following in my previous email.

The following lines are also included in httpd.conf.

AddType application/x-httpd-php .php .phtml .html
Action application/x-httpd-php "/php/php.exe"
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.344 / Virus Database: 191 - Release Date: 2002-04-02

--- End Message ---
--- Begin Message ---
Rodney,

If its the same as prevous versions, its the file called INSTALL in the 
top level of the source directory.

HTH
Chris

Rodney S. Foley wrote:

>Can someone help me.
>
>I have been looking for a walk through/tutorial to help me get PHP 4.20
>setup on my linux box running RH71.  I setup PHP on my NT Box with out
>any issues but I was able to get the binaries from php.net.  Php.net
>does not have binaries for linux.  Just the source code.  I was hoping
>someone can direct me to the binaries for a linux i386(i686) install
>preferable one compiled on RedHat.  
>
>I downloaded the source from php.net, but was confused, and could not
>find any text files/docs to help me compile it on linux.  So I either
>just need the binaries or a tutorial walk thru to help me compile php
>4.20.  
>
>Thanks...
>
>


--- End Message ---

Reply via email to