php-install Digest 27 Jun 2001 04:41:10 -0000 Issue 337

Topics (messages 3351 through 3356):

PHP 4.0.5 compile question
        3351 by: Koyabu, Ken

Error opening prepend file
        3352 by: Garey Mills

PHP as a CGI interpreter
        3353 by: Zenith

4.0.5 - Upgrade to GD & MySQL????
        3354 by: Rob Beckett

Re: php 4.0.6 and GD
        3355 by: Webmaster

installation problem php and pws
        3356 by: Lola

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]


----------------------------------------------------------------------


Hi all, I have a problem with compiling PHP 4.0.5 as Apache static module
with mysql backend on Solaris 2.7 on SUN SPARC.

I compiled apache 1.3.6 with PHP 4.0.2 as Apache static module with mysql on
the same system before, and I did not have any problem.  I downloaded PHP
4.0.5, and untar another apache 1.3.6 to start from the flesh install this
time as follows:

5.  cd apache_1.3.6
6.  ./configure --prefix=/usr/local/apache
7.  cd ../php-4.0.5
8.  ./configure --with-mysql --with-apache=../apache_1.3.6
--enable-track-vars
9.  make
10. make install-su
11. cd ../apache_1.3.6
12. ./configure --activate-module=src/modules/php4/libphp4.a
13. make

Here is the error on make:

<=== src/modules/standard
===> src/modules/php4
make[4]: *** No rule to make target `all'.  Stop.
make[3]: *** [all] Error 1
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/web/kits3/apache_1.3.6/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/web/kits3/apache_1.3.6'
make: *** [build] Error 2

According to my investigation, I have no files generated under the following
directories:

/kits3/php-4.0.5/libs
/kits3/apache_1.3.6/src/modules/php4

There is no files generated under src/modules/php4, so "make" was failing,
but I did not see ant errors when I compiled PHP.

When I checked successful PHP 4.0.2 compilation directly tree from last
compilation, I saw files like:


ls -l /kits/php-4.0.2/libs
total 16130
-rw-r--r--   1 kk staff    8247132 Sep  6  2000 libphp4.a
-rw-r--r--   1 kk staff            781 Sep  6  2000 libphp4.la


ls -l /kits/apache_1.3.6/src/modules/php4
total 32210
-rw-r--r--   1 kk staff       3693 Sep  6  2000 Makefile
-rw-r--r--   1 kk staff        252 Sep  6  2000 Makefile.libdir
-rw-r--r--   1 kk  staff       2228 Sep  6  2000 Makefile.tmpl
-rw-r--r--   1 kk  staff    8247132 Sep  6  2000 libmodphp4.a
-rw-r--r--   1 kk  staff    8167592 Jun 22 12:17 libphp4.a
-rw-r--r--   1 kk  staff        427 Sep  6  2000 libphp4.module
-rw-r--r--   1 kk  staff      22411 Sep  6  2000 mod_php4.c
-rw-r--r--   1 kk  staff         12 Sep  6  2000 mod_php4.exp
-rw-r--r--   1 kk  staff       1714 Sep  6  2000 mod_php4.h
-rw-r--r--   1 kk  staff          0 Sep  6  2000 mod_php4.lo
-rw-r--r--   1 kk  staff      14660 Jun 22 12:17 mod_php4.o


What is causing this problem?   Can anyone help?

Thanks.

Ken






Hi -

        I get the following error:

Warning: Failed opening ''prepend.php3'' for inclusion
(include_path=''.:/opt/apache/php'') in Unknown on line 0

when I try to open any '.php' file.

        prepend.php3 is in /opt/apache/php

        All directories in the include path have read and execute
permission for the user running the web server, and the prepend.php3 file
is 777.

        Its a Sun Box running Solaris 8. PHP 4.0.6 (didn't work for 4.0.5
either) Apache 1.3.20, with PHP as a static module.

        I have tried giving the absolute path for prepend.php3 in
php.ini with the same result, and have tried changing around the path
there, as well. I can see that php.ini is being read (because when I
change the path or file name, I see it in the error message.)

        Besides needing help, I can't figure out how to debug this.


Any help appreciated;

Garey Mills
Library Systems Office
UC Berkeley








When I first meet PHP, I bought a book, and it tell me php can be installed
in three ways.
as an apache module, as CGI interpreter, and a dynamic module (DSO)

Starting from that time, I just keep using php as a apache module.

however, I find that I have the needs to install PHP as a CGI interpreter..
and the book, doesn't tell me details.

Would you tell me how to install it as a CGI interpreter for Apache??







Hello all, sorry to bother you again, hopefully you might have an answer for
this one.

After the problems I ha with 4.0.6, I decided for now I'd go back to 4.0.5,
and installed it around the first time with no problems. Then I realised
that my GD libraries were extremely old, and that I could get a much newer
one in without any problems - so I put in gd-1.8.3-4, several versions newer
than the current one.

Then, when I came to recompile V4.0.5, with *exactly* the same options as
before, it crashes out during the compile with an error that looks
*completely* unrelated:

---

Making all in libmysql
make[3]: Entering directory `/usr/src/php-4.0.5/ext/mysql/libmysql'
make[4]: Entering directory `/usr/src/php-4.0.5/ext/mysql/libmysql'
/bin/sh /usr/src/php-4.0.5/libtool --silent --mode=compile
gcc  -I. -I/usr/src/p
hp-4.0.5/ext/mysql/libmysql -I/usr/src/php-4.0.5/main -I/usr/src/php-4.0.5 -
I/us
r/include/apache -I/usr/src/php-4.0.5/Zend -I/usr/include/imap -I/usr/src/ph
p-4.
0.5/ext/mysql/libmysql -I/usr/lib/libswf/include -I/usr/src/php-4.0.5/ext/xm
l/ex
pat/xmltok -I/usr/src/php-4.0.5/ext/xml/expat/xmlparse -I/usr/src/php-4.0.5/
TSRM
  -DLINUX=2 -DNO_DBM_REWRITEMAP -DMOD_SSL=202108 -DMOD_PERL -DUSE_PERL_SSI -
Dboo
l=char -DHAS_BOOL -DEAPI -DBIG_SECURITY_HOLE -DCOBALT_RAQ_LED -DSUPPORT_UTF8
 -DX
ML_BYTE_ORDER=12 -g -O2  -c libmysql.c
In file included from mysql.h:55,
                 from libmysql.c:14:
mysql_version.h:15: warning: `MYSQL_UNIX_ADDR' redefined
/usr/src/php-4.0.5/main/php_config.h:1369: warning: this is the location of
the
previous definition
In file included from libmysql.c:9:
global.h:240: warning: redefinition of `uint'
/usr/include/sys/types.h:131: warning: `uint' previously declared here
global.h:241: warning: redefinition of `ushort'
/usr/include/sys/types.h:130: warning: `ushort' previously declared here
In file included from libmysql.c:12:
m_string.h:180: parse error before `__extension__'
m_string.h:180: parse error before `&&'
make[4]: *** [libmysql.lo] Error 1
make[4]: Leaving directory `/usr/src/php-4.0.5/ext/mysql/libmysql'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/src/php-4.0.5/ext/mysql/libmysql'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/php-4.0.5/ext/mysql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/php-4.0.5/ext'
make: *** [all-recursive] Error 1

--

And here's me, again thinking "What the hell?".... no changes have been made
to MySQL or any of it's libraries since it was built with the old GD less
than 3 hours ago. Anyone know what situation can create such an error? Very
strange.

Thanks for your time,

Rob Beckett.







I ran into the same problem with 4.0.5
I solved it by creating libgd.a and pointing the configure script to the
directory containing it.

the gd 2.0.1 readme says:
gd lets you create PNG or JPEG images on the fly. To use gd in your
   program, include the file gd.h, and link with the libgd.a library
   produced by "make libgd.a", under Unix. Under other operating systems
   you will add gd.c to your own project.

just go into your gd dir and "make libgd.a", then reconfigure your php
install like the following:

./configure 
--with-apxs=/usr/local/apache/bin/apxs 
--enable-track-vars 
--with-config-path-file=/etc 
--with-mysql=/usr/local/mysql 
--with-gd=/path/to/libgd.a/dir
--with-jpeg-dir=/usr/lib 
--with-xpm-dir=/usr/X11R6



-- 


Jani Taskinen wrote:
> 
> Try checking the mailing list archives. This has been answered
> at least a dozen time now.
> 
> --Jani
> 
> On Mon, 25 Jun 2001, Kelvin Luck wrote:
> 
> >Hi,
> >I am just trying to install php 4.0.6 on redhat 7.1 so that I can use the
> >new GD library functions. I first downloaded and installed the newest GD
> >libraries (2.0.1 beta) and installed them. I presume that this worked OK
> >because I didn't get any errors. I also made sure I removed the rpm of an
> >earlier version of the gd libraries from the computer to avoid conflicts.
> >I installed GD ("make install") and it seemed to go OK, no errors reported
> >and seemed to copy the file to the right place...
> >Then I configured php:
> >
> >./configure \
> >--with-apxs=/usr/local/apache/bin/apxs \
> >--enable-track-vars \
> >--with-config-path-file=/etc \
> >--with-mysql=/usr/local/mysql \
> >--with-gd \
> >--with-jpeg-dir=/usr/lib \
> >--with-xpm-dir=/usr/X11R6
> >
> >I found that I needed the last two arguments so that configure didn't throw
> >an error, which it doesn't. But when I try and make php I get this error:
> >
> >.
> >.
> >.
> >gd.c:95: conflicting types for 'gdIOCtx'
> >/usr/include/gd_io.h:previous declaration of 'gdIOCtx'
> >make[3]: *** [gd.lo] Error 1
> >.
> >.
> >.
> >
> >That error causes make to stop and prevents me from installing php... Has
> >anyone got any ideas on how to avoid this? If I compile and leave
> >out --with-gd then it makes fine... But I'm upgrading because I want to use
> >the new image functions!
> >Any help or suggestions would be much appreciated,
> >tia,
> >Kelvin.
> >
> >
> >
> 
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

--------------------------------------------------
Sign up for your free AngelHaven E-mail Today...
Join the growing community, http://www.AngelHaven.com 
Come Cruisin with the Angels http://www.AngelCruise.com




I have installed php with personal web server and when I run php in a dos
window it works, but when I run it in the web browser I get a 500 error.

Any ideas?




Reply via email to