php-install Digest 19 Mar 2002 08:52:54 -0000 Issue 751

Topics (messages 6405 through 6409):

Re: Problem compiling php 4.1.2, help, anyone?
        6405 by: Kai Schaetzl

Apache/SAPI compile problem:
        6406 by: Alex Black

buildconf generates broken configure script (4.1.2)
        6407 by: Wojciech Gdela

please help
        6408 by: marekza.yahoo.com

PHP 4.1.2 on PWS: "PHP CGI cannot be accessed directly". How do I fix this??
        6409 by: Wetgos

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 ---
> multiple
> >>> definition of `mysql_port'
>

I'm getting the same type of stuff when compiling 4.1.2, just with 
mm. The same make and configure worked great on 4.0.6. See my recent 
new post.


Kai

--

Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com
IE-Center: http://ie5.de & http://msie.winware.org
ClubWin - Help for Windows Users: http://www.clubwin.com



--- End Message ---
--- Begin Message ---
hi all,

making:

make[1]: Leaving directory `/root/bc_install/packages/php-4.1.2.mod/ext'
Making all in sapi
make[1]: Entering directory `/root/bc_install/packages/php-4.1.2.mod/sapi'
Making all in apache
make[2]: Entering directory
`/root/bc_install/packages/php-4.1.2.mod/sapi/apache'
make[3]: Entering directory
`/root/bc_install/packages/php-4.1.2.mod/sapi/apache'
gcc -I. -I/root/bc_install/packages/php-4.1.2.mod/sapi/apache
-I/root/bc_install/packages/php-4.1.2.mod/main
-I/root/bc_install/packages/php-4.1.2.mod
-I/root/bc_install/packages/apache_1.3.22/src/include
-I/root/bc_install/packages/apache_1.3.22/src/os/unix
-I/root/bc_install/packages/php-4.1.2.mod/Zend -I/usr/local/curl/include
-I/usr/local/libxml2/include/libxml2 -I/usr/local/include
-I/usr/local/mcrypt/include -I/usr/local/mhash/include
-I/root/bc_install/packages/php-4.1.2.mod/ext/mysql/libmysql
-I/u01/oracle/product/8.1.6/rdbms/public
-I/u01/oracle/product/8.1.6/rdbms/demo
-I/u01/oracle/product/8.1.6/network/public -I/opt/sapdb/interfaces/odbc/incl
-I/usr/local/mm/include -I/usr/local/expat/include
-I/usr/local/Sablot/include
-I/root/bc_install/packages/apache_1.3.22/src/include
-I/root/bc_install/packages/apache_1.3.22/src/os/unix
-I/root/bc_install/packages/php-4.1.2.mod/TSRM -g -O2  -c sapi_apache.c &&
touch sapi_apache.lo
In file included from
/root/bc_install/packages/apache_1.3.22/src/include/ap_config.h:77,
                 from
/root/bc_install/packages/apache_1.3.22/src/include/httpd.h:72,
                 from sapi_apache.c:32:
/root/bc_install/packages/apache_1.3.22/src/include/ap_config_auto.h:6:
unterminated `#if' conditional
In file included from
/root/bc_install/packages/apache_1.3.22/src/include/httpd.h:72,
                 from sapi_apache.c:32:
/root/bc_install/packages/apache_1.3.22/src/include/ap_config.h:1367:
warning: `XtOffsetOf' redefined
/root/bc_install/packages/php-4.1.2.mod/main/php.h:342: warning: this is the
location of the previous definition
make[3]: *** [sapi_apache.lo] Error 1
make[3]: Leaving directory
`/root/bc_install/packages/php-4.1.2.mod/sapi/apache'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/root/bc_install/packages/php-4.1.2.mod/sapi/apache'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/bc_install/packages/php-4.1.2.mod/sapi'
make: *** [all-recursive] Error 1
root@core php-4.1.2.mod>

Seems to be a problem with SAPI.

I am using PHP 4.1.2 / Apache 1.3.23 w/modssl.

My configure line:

./configure \
        --prefix=${PHP_MOD_PREFIX_DIR} \
        --with-config-file-path=${APACHE_PREFIX_DIR}/conf \
        --with-apache=../${APACHE_DIR} \
        --enable-ftp \
        --with-zlib \
        --enable-bcmath \
        --enable-calendar \
        --with-jpeg-dir=/usr/lib \
        --with-imlib=/usr/local/lib/ \
        --with-iconv=/usr/local/lib \
        --with-tiff-dir=/usr/lib \
        --with-odbc \
        --with-sapdb=/opt/sapdb/interfaces/odbc \
        --with-oci8=${ORACLE_DIR} \
        --with-mhash=${MHASH_PREFIX_DIR} \
        --with-mcrypt=${MCRYPT_PREFIX_DIR} \
        --with-dom=${LIBXML2_PREFIX_DIR} \
        --enable-xslt --with-xslt-sablot=${SAB_PREFIX_DIR} \
        --with-curl=${CURL_PREFIX_DIR} \
        --with-expat-dir=${EXPAT_PREFIX_DIR} \
        --enable-wddx \
        --enable-memory-limit \
        --with-mm=${MM_PREFIX_DIR} \
        --enable-debug=no

I have a shell include that sets those path vars.

Anyone have ideas?

Please email me directly at [EMAIL PROTECTED] as I do not subscribe to
the list.

thanks!

_alex

--- End Message ---
--- Begin Message ---
Hello,

I'm trying to use configure script generated by buildconf. What I do
is:

1. Get 4.1.2 sources, unpack
2. Remove configure script
3. Execute buildconf script, it produces this output:

buildconf: checking installation...
buildconf: autoconf version 2.52 (ok)
buildconf: automake version 1.5 (ok)
buildconf: libtool version 1.4 (ok)
rebuilding configure
configure.in:124: warning: AC_PROG_LEX invoked multiple times
rebuilding main/php_config.h.in

4. Execute new configure script, it fails:

checking for a BSD compatible install... /usr/bin/install -c
[... cutted: more lines similar to this above ...]
checking whether yytext is a pointer... yes
/configure: line 3395: syntax error near unexpected token `fi'
/configure: line 3395: `fi'

I tried to manualy correct syntax of configure script (there had been
more bugs like this one), but then i run make, and it said "no
Makefile found" or something like this. Can anybody help me?

-- 
Wojciech Gdela <[EMAIL PROTECTED]>
--- End Message ---
--- Begin Message ---
Hi!

Please help me if you can .. and I know you can!

I have one basic problem: i need to run PostgreSQL
with PHP on Windows 98. This is what i want to help
with.

I read some manuals and web pages and now i am in this
position:
- i have installed Apache Web Server 1.3 (binary
installation for Windows)
- i have installed PHP 4.0 (binary installation for
Windows) with configuration of php.ini
- i already run MySQL on my computer 
and i read that PostgreSQL on Windows can only run
with CYGWIN. So i downloaded Cygwin installation file
from the internet /my computer is not connected to
internet/ and installed Cygwin on my computer /with
downloaded option - PostgreSQL 7.2.2/. I can run
PostgreSQL through Cygwin.exe /and work with postgre/,
but could not configure in with PHP to run. My
webbrowser inform me like this:

"Fatal error: Call to undefined function: pg_connect()
in ... " 

so this means, that PHP could not work with Postgre,
but i dont know how to make it run!

I have no problem with MySQL in PHP but i could not
configure PostgreSQL to run with PHP on my computer. I
am reading many many scripts and manual on the web but
could not gain understandable information about
POSTGRESQL-PHP-WINDOWS98!

Please, please, i need your help because i think that
you could help me, please!

With regards
Marek Zapach 
from Slovakia

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/
--- End Message ---
--- Begin Message ---
When I make request at http://localhost/scripts/info.php
PHP returns the following:

Security Alert! PHP CGI cannot be accessed directly.
This PHP CGI binary was compiled with force-cgi-redirect enabled. This means
that a page will only be served up if the REDIRECT_STATUS CGI variable is
set. This variable is set, for example, by Apache's Action directive
redirect.

You may disable this restriction by recompiling the PHP binary with
the --disable-force-cgi-redirect switch. If you do this and you have your
PHP CGI binary accessible somewhere in your web tree, people will be able to
circumvent .htaccess security by loading files through the PHP parser. A
good way around this is to define doc_root in your php.ini file to something
other than your top-level DOCUMENT_ROOT. This way you can separate the part
of your web space which uses PHP from the normal part using .htaccess
security. If you do not have any .htaccess restrictions anywhere on your
site you can leave doc_root undefined. If you are running IIS, you may
safely set cgi.force_redirect=0 in php.ini.

I have tried everything, but nothing works!
Can you help me??
Don't reply, please. Send an e-mail to [EMAIL PROTECTED]

Greetz Wetgos




--- End Message ---

Reply via email to