php-install Digest 12 Feb 2003 16:27:44 -0000 Issue 1244

Topics (messages 10017 through 10021):

PHP 4.3.0 - inbuilt GD and MySQL (fix)
        10017 by: Jason Donald

msession compiling
        10018 by: Robin Mordasiewicz

Re: Call to undefined function: imagettftext()
        10019 by: sb

Pb with FastCGI and PHP
        10020 by: Stephane Rozes

PHP + Apache + FastCGI
        10021 by: Stephane Rozes

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 ---
Over the past few hours, I have managed to get one of my machines to 
compile.  I imagine a similar fix for the other. 

Basically, and very simply, I had to download the latest versions of 
all dependencies (mysql/libpng/libjpeg/gd/etc) and recompile 
*everything* from child to parent.

Also of note, I am using the inbuilt GD, external MySQL, and using 
"=/usr/local/lib" for my --with-png and --with-jpeg lines in my php 
configure statement.  For some reason it doesn't appear to find .h 
files where it should be.

Anyway, HTH.

Jason.

--- End Message ---
--- Begin Message ---
I have installed and compiled the phoenix libraires in
/usr/local/phoenix/lib
and compiled msession in
/usr/local/phoenix/bin

"configure --with-msession" works but compile fails with errors

ext/mysql/libmysql/my_tempnam.o: In function `my_tempnam':
/opt/src/php-4.3.0/ext/mysql/libmysql/my_tempnam.c:103: the use of
`tempnam' is dangerous, better use `mkstemp'
/usr/local/phoenix//lib/libphoenix.a(reqclient.o):/usr/local/phoenix/src/reqclient.cpp:36:
undefined reference to `__gxx_personality_v0'
/usr/local/phoenix//lib/libphoenix.a(mfile.o):/usr/local/phoenix/src/mfile.cpp:31:
undefined reference to `__cxa_pure_virtual'
/usr/local/phoenix//lib/libphoenix.a(mfile.o):/usr/local/phoenix/src/mfile.cpp:31:
undefined reference to `__cxa_pure_virtual'
/usr/local/phoenix//lib/libphoenix.a(mfile.o):/usr/local/phoenix/src/mfile.cpp:31:
undefined reference to `__cxa_pure_virtual'
/usr/local/phoenix//lib/libphoenix.a(mfile.o):/usr/local/phoenix/src/mfile.cpp:31:
undefined reference to `__cxa_pure_virtual'
/usr/local/phoenix//lib/libphoenix.a(mfile.o):/usr/local/phoenix/src/marray.h:122:
undefined reference to `vtable for __cxxabiv1::__class_type_info'
/usr/local/phoenix//lib/libphoenix.a(mfile.o):/usr/local/phoenix/src/marray.h:122:
undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
/usr/local/phoenix//lib/libphoenix.a(mfile.o):/usr/local/phoenix/src/marray.h:122:
undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
/usr/local/phoenix//lib/libphoenix.a(mfile.o):/usr/local/phoenix/src/mfile.cpp:31:
undefined reference to `__cxa_pure_virtual'
/usr/local/phoenix//lib/libphoenix.a(mfile.o):/usr/local/phoenix/src/mfile.cpp:31:
undefined reference to `__cxa_pure_virtual'
/usr/local/phoenix//lib/libphoenix.a(mfile.o): In function
`__static_initialization_and_destruction_0':
/usr/local/phoenix/src/mfile.cpp:294: undefined reference to
`__cxa_pure_virtual'
/usr/local/phoenix/src/mfile.cpp:296: undefined reference to
`__cxa_pure_virtual'
/usr/local/phoenix/src/mfile.cpp:296: undefined reference to
`__cxa_pure_virtual'
/usr/local/phoenix//lib/libphoenix.a(mfile.o):/usr/local/phoenix/src/mfile.cpp:297:
more undefined references to `__cxa_pure_virtual' follow
/usr/local/phoenix//lib/libphoenix.a(mfile.o):/usr/local/phoenix/src/marray.h:122:
undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
/usr/local/phoenix//lib/libphoenix.a(mfile.o):/usr/local/phoenix/src/mfile.cpp:31:
undefined reference to `__gxx_personality_v0'
/usr/local/phoenix//lib/libphoenix.a(mutils.o):/usr/local/phoenix/src/mutils.cpp:118:
undefined reference to `vtable for __cxxabiv1::__class_type_info'
/usr/local/phoenix//lib/libphoenix.a(mutils.o):/usr/local/phoenix/src/mutils.cpp:120:
undefined reference to `__gxx_personality_v0'
/usr/local/phoenix//lib/libphoenix.a(msocket.o):/usr/local/phoenix/src/msocket.cpp:53:
undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
/usr/local/phoenix//lib/libphoenix.a(msocket.o):/usr/local/phoenix/src/msocket.cpp:54:
undefined reference to `__gxx_personality_v0'


I have noticed that the mohawk software website mentions to copy
reqclient.h, php-msession.h, and msession.c in to your PHP's ext/msession
but these files are already there
the previous errors are when i do not overwrite the files and the below
errors are for when I did overwrite the files in ext/msession with the
files provided by mohawk software.

When I overwrite the files and execute make it errors out immediately with
[robin@desktop php-4.3.0]# make
gcc  -Iext/msession/ -I/opt/src/php-4.3.0/ext/msession/ -DPHP_ATOM_INC
-I/opt/src/php-4.3.0/include -I/opt/src/php-4.3.0/main
-I/opt/src/php-4.3.0 -I/opt/src/php-4.3.0/Zend
-I/opt/src/php-4.3.0/ext/xml/expat  -I/opt/src/php-4.3.0/TSRM  -g -O2  -c
/opt/src/php-4.3.0/ext/msession/msession.c -o ext/msession/msession.o  &&
echo > ext/msession/msession.lo
In file included from /opt/src/php-4.3.0/ext/msession/msession.c:27:
/opt/src/php-4.3.0/ext/msession/reqclient.h:144: parse error before
"ReopenReqConn"
/opt/src/php-4.3.0/ext/msession/reqclient.h:144: warning: data definition
has no type or storage class
/opt/src/php-4.3.0/ext/msession/msession.c:151: `zif_msession_exec'
undeclared here (not in a function)
/opt/src/php-4.3.0/ext/msession/msession.c:151: initializer element is not
constant
/opt/src/php-4.3.0/ext/msession/msession.c:151: (near initialization for
`msession_functions[23].handler')
/opt/src/php-4.3.0/ext/msession/msession.c:151: initializer element is not
constant
/opt/src/php-4.3.0/ext/msession/msession.c:151: (near initialization for
`msession_functions[23]')
/opt/src/php-4.3.0/ext/msession/msession.c:152: `zif_msession_ping'
undeclared here (not in a function)
/opt/src/php-4.3.0/ext/msession/msession.c:152: initializer element is not
constant
/opt/src/php-4.3.0/ext/msession/msession.c:152: (near initialization for
`msession_functions[24].handler')
/opt/src/php-4.3.0/ext/msession/msession.c:152: initializer element is not
constant
/opt/src/php-4.3.0/ext/msession/msession.c:152: (near initialization for
`msession_functions[24]')
/opt/src/php-4.3.0/ext/msession/msession.c:153: initializer element is not
constant
/opt/src/php-4.3.0/ext/msession/msession.c:153: (near initialization for
`msession_functions[25]')
/opt/src/php-4.3.0/ext/msession/msession.c: In function
`PHPMsessionGetData':
/opt/src/php-4.3.0/ext/msession/msession.c:344: `REQ_DATAGET' undeclared
(first use in this function)
/opt/src/php-4.3.0/ext/msession/msession.c:344: (Each undeclared
identifier is reported only once
/opt/src/php-4.3.0/ext/msession/msession.c:344: for each function it
appears in.)
/opt/src/php-4.3.0/ext/msession/msession.c: In function
`PHPMsessionSetData':
/opt/src/php-4.3.0/ext/msession/msession.c:358: `REQ_DATASET' undeclared
(first use in this function)


--- End Message ---
--- Begin Message --- Hello,
I'm trying to get to run the GD function imagettftext(). Compilation and installation seems to work fine, but when running a script with this function i get this error: "Call to undefined function: imagettftext()."

The same script runs fine under the Win binaries.

Has anyone an idea what is wrong? Other GD function I am using are OK so far.
//======================
Configure Command './configure' '--with-apache=../apache' '--enable-debug=no' '--enable-track-vars=yes' '--with-mysql' '--with-gd' '--with-ttf' '--enable-gd-native-ttf' '--enable-gd-imgstrttf' '--with-jpeg-dir=/usr/local' '--with-png' '--with-zlib-dir=./ext/zlib' '--with-xml' '--enable-ftp' '--enable-memory-limit=yes'

PHP Verison 4.3.0
GD bundled

Thanx

--- End Message ---
--- Begin Message ---
Hello the list,

I have a problem when I try to install Apache+PHP+FastCGI.

When I start Apache I have the following error messages :

[Tue Feb 11 17:23:43 2003] [info] created shared memory segment #1605632
[Tue Feb 11 17:23:43 2003] [notice] Apache/1.3.27 (Unix) mod_fastcgi/2.4.0
configured -- resuming normal operations
[Tue Feb 11 17:23:43 2003] [info] Server built: Feb 11 2003 18:16:40
[Tue Feb 11 17:23:43 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Tue Feb 11 17:23:43 2003] [notice] FastCGI: process manager initialized
(pid 2122)
[Tue Feb 11 17:23:43 2003] [warn] FastCGI: server "/bin/php" started (pid
2124)
PHP Fatal error:  input in flex scanner failed in - on line 1

Fatal error: input in flex scanner failed in - on line 1
[Tue Feb 11 17:23:43 2003] [warn] FastCGI: server "/bin/php" (pid 2124)
terminated by calling exit with status '0'
[Tue Feb 11 17:23:48 2003] [warn] FastCGI: server "/bin/php" restarted (pid
2125)
PHP Fatal error:  input in flex scanner failed in - on line 1

Could help me to find out what is wrong ?


Below my conf :

Installation & configuration on Linux RH 7.3 :

sablotron : (XML engine)
-----------

./configure --prefix=/usr/local/sablotron
make && make install


fcgi-2.2.2 :
------------
./configure --prefix=/usr/local/fcgi
make && make install

php 4.3.0:
----------
./configure --prefix=/usr/local/php --with-mysql --with-apache=/usr/local/ap
ache_1.3.27 --with-xslt-sablot=/usr/local/sablotron/ --enable-xslt --with-fa
stcgi=/usr/local/fcgi
make && make install

mod_fastcgi 2.4.0:
------------------

"tar xcvf" of the tarball in the apache_1.3.27/src/modules directory & "mv
mod_fastcgi-2.4.0 fastcgi"

apache 1.3.27 :
---------------
./configure --prefix=/usr/local/apache --activate-module=src/modules/fastcgi
/libfastcgi.a
make && make install

(I tried also
./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/li
bphp4.a --activate-module=src/modules/fastcgi/libfastcgi.a - by using the
PHP module - but I have the same problem)

- I've  configured and installed Apache in a chrooted environment (root =
/usr/local/apapche) with all required libraries and files to run Apache
(Apache works fine and Apache with only PHP (without FastCGI) works fine
too).

- I put the php binary from /usr/local/php/bin in the /usr/local/apache/bin
directory

- I put all FastCGI libraries (in /usr/local/fgci/lib) in the lib directory
in my chrooted env. Perhaps I forgot to add some bin or lib files ?

- In my httpd.Conf, I put the following lines to handle fastcgi :

#Fast-CGI
FastCgiServer /bin/php         <= path in my chrooted env (ie
/usr/local/apache/bin)
AddHandler php-fastcgi .php
 <Location /fast-cgi>                    <= root directory for my ".php" files
     SetHandler fastcgi-script
 </Location>
Action php-fastcgi /bin/php

.... and I have the error messages when I try to start the Apache web
server:


Thank you in advance for your help.

Best Regards

Stephane Rozes

--- End Message ---
--- Begin Message ---
Hello the list,

I'm trying to run an Apache server with FastCGI and PHP.

The install seems to works :

"[Wed Feb 12 16:25:35 2003] [notice] FastCGI: process manager initialized
(pid 19259)
[Wed Feb 12 16:25:35 2003] [warn] FastCGI: server "/bin/php" started (pid
19260)
[Wed Feb 12 16:25:35 2003] [info] created shared memory segment #2555904
[Wed Feb 12 16:25:35 2003] [notice] Apache/1.3.27 (Unix) mod_fastcgi/2.4.0
PHP/4.3.0 configured -- resuming normal operations
[Wed Feb 12 16:25:35 2003] [info] Server built: Feb 12 2003 09:17:29
[Wed Feb 12 16:25:35 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)


So, I put a simple php script in my fast-cgi directory :

=> info.php :
<?php
phpinfo();
?>

But when I try to run this script (http://www.server.com/fast-cgi/info.php)
I have the following error message

[Wed Feb 12 16:26:16 2003] [warn] FastCGI: (dynamic) server
"/fast-cgi/info.php" started (pid 19267)
FastCGI: can't start server "/fast-cgi/info.php" (pid 19267), execle()
failed: Exec format error

Is there a special way to design php scripts for FastCGI ? or what is wrong
?

Below my apache.conf to run FastCGI :

#Fast-CGI
FastCgiServer /bin/php
 <Directory /fast-cgi>
     AddHandler php-fastcgi .php
     Action php-fastcgi /bin/php
     Options +ExecCGI
     SetHandler fastcgi-script
 </Directory>


Thank you in advance for your help

Best regards

Stephane Rozes

--- End Message ---

Reply via email to