php-install Digest 8 Jun 2003 19:50:41 -0000 Issue 1414

Topics (messages 11031 through 11035):

4.3.2 pcreposix.h, regex.h Installation Issue on Red Hat Linux 9
        11031 by: Robert L Cochran
        11032 by: Robert L Cochran

Unknown filter was not added
        11033 by: Robert L Cochran

installation
        11034 by: michael jones

Re: First-timer
        11035 by: Mitch Pirtle

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

I'm running Red Hat Linux 9 with a running Apache (httpd) server version
2.0.46 which I recently compiled myself. The server is up to date with
all current Red Hat-released patches, including the recent kernel
update.

I'm getting these errors when building PHP 4.3.2:

/bin/sh /home/cochranb/php-4.3.2/build-apache/libtool --silent
--preserve-dup-deps --mode=compile gcc  -Isapi/apache2handler/
-I/home/cochranb/php-4.3.2/sapi/apache2handler/ -DPHP_ATOM_INC
-I/home/cochranb/php-4.3.2/build-apache/include
-I/home/cochranb/php-4.3.2/build-apache/main -I/home/cochranb/php-4.3.2
-I/home/cochranb/php-4.3.2/build-apache/Zend -I/usr/include/libxml2
-I/usr/include/freetype2 -I/usr/include/imap -I/usr/kerberos/include
-I/usr/include/mysql -I/usr/include/pspell
-I/home/cochranb/php-4.3.2/main -I/home/cochranb/php-4.3.2/Zend
-I/home/cochranb/php-4.3.2/TSRM 
-I/home/cochranb/php-4.3.2/build-apache/TSRM  -O2 -g -march=i686 -fPIC
-I/usr/kerberos/include -I/usr/lib/httpd  -prefer-pic -c
/home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c -o
sapi/apache2handler/sapi_apache2.lo
In file included from /usr/lib/httpd/httpd.h:86,
                 from /usr/lib/httpd/util_filter.h:61,
                 from
/home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c:40:
/usr/lib/httpd/pcreposix.h:26:1: warning: "REG_ICASE" redefined
In file included from /home/cochranb/php-4.3.2/main/php_regex.h:39,
                 from /home/cochranb/php-4.3.2/main/php.h:74,
                 from
/home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c:25:
/usr/include/regex.h:266:1: warning: this is the location of the
previous definition
In file included from /usr/lib/httpd/httpd.h:86,
                 from /usr/lib/httpd/util_filter.h:61,
                 from
/home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c:40:
/usr/lib/httpd/pcreposix.h:27:1: warning: "REG_NEWLINE" redefined
In file included from /home/cochranb/php-4.3.2/main/php_regex.h:39,
                 from /home/cochranb/php-4.3.2/main/php.h:74,
                 from
/home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c:25:
/usr/include/regex.h:271:1: warning: this is the location of the
previous definition
In file included from /usr/lib/httpd/httpd.h:86,
                 from /usr/lib/httpd/util_filter.h:61,
                 from
/home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c:40:
/usr/lib/httpd/pcreposix.h:28:1: warning: "REG_NOTBOL" redefined
In file included from /home/cochranb/php-4.3.2/main/php_regex.h:39,
                 from /home/cochranb/php-4.3.2/main/php.h:74,
                 from
/home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c:25:
/usr/include/regex.h:285:1: warning: this is the location of the
previous definition
In file included from /usr/lib/httpd/httpd.h:86,
                 from /usr/lib/httpd/util_filter.h:61,
                 from
/home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c:40:
/usr/lib/httpd/pcreposix.h:29:1: warning: "REG_NOTEOL" redefined
In file included from /home/cochranb/php-4.3.2/main/php_regex.h:39,
                 from /home/cochranb/php-4.3.2/main/php.h:74,
                 from
/home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c:25:
/usr/include/regex.h:288:1: warning: this is the location of the
previous definition
In file included from /usr/lib/httpd/httpd.h:86,
                 from /usr/lib/httpd/util_filter.h:61,
                 from
/home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c:40:
/usr/lib/httpd/pcreposix.h:34:1: warning: "REG_EXTENDED" redefined
In file included from /home/cochranb/php-4.3.2/main/php_regex.h:39,
                 from /home/cochranb/php-4.3.2/main/php.h:74,
                 from
/home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c:25:
/usr/include/regex.h:262:1: warning: this is the location of the
previous definition
In file included from /usr/lib/httpd/httpd.h:86,
                 from /usr/lib/httpd/util_filter.h:61,
                 from
/home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c:40:
/usr/lib/httpd/pcreposix.h:35:1: warning: "REG_NOSUB" redefined
In file included from /home/cochranb/php-4.3.2/main/php_regex.h:39,
                 from /home/cochranb/php-4.3.2/main/php.h:74,
                 from
/home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c:25:
/usr/include/regex.h:275:1: warning: this is the location of the
previous definition
In file included from /usr/lib/httpd/httpd.h:86,
                 from /usr/lib/httpd/util_filter.h:61,
                 from
/home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c:40:
/usr/lib/httpd/pcreposix.h:41: conflicting types for `REG_BADBR'
/usr/include/regex.h:312: previous declaration of `REG_BADBR'
/usr/lib/httpd/pcreposix.h:42: conflicting types for `REG_BADPAT'
/usr/include/regex.h:304: previous declaration of `REG_BADPAT'
/usr/lib/httpd/pcreposix.h:43: conflicting types for `REG_BADRPT'
/usr/include/regex.h:315: previous declaration of `REG_BADRPT'
/usr/lib/httpd/pcreposix.h:44: conflicting types for `REG_EBRACE'
/usr/include/regex.h:311: previous declaration of `REG_EBRACE'
/usr/lib/httpd/pcreposix.h:45: conflicting types for `REG_EBRACK'
/usr/include/regex.h:309: previous declaration of `REG_EBRACK'
/usr/lib/httpd/pcreposix.h:46: conflicting types for `REG_ECOLLATE'
/usr/include/regex.h:305: previous declaration of `REG_ECOLLATE'
/usr/lib/httpd/pcreposix.h:47: conflicting types for `REG_ECTYPE'
/usr/include/regex.h:306: previous declaration of `REG_ECTYPE'
/usr/lib/httpd/pcreposix.h:48: conflicting types for `REG_EESCAPE'
/usr/include/regex.h:307: previous declaration of `REG_EESCAPE'
/usr/lib/httpd/pcreposix.h:50: conflicting types for `REG_EPAREN'
/usr/include/regex.h:310: previous declaration of `REG_EPAREN'
/usr/lib/httpd/pcreposix.h:51: conflicting types for `REG_ERANGE'
/usr/include/regex.h:313: previous declaration of `REG_ERANGE'
/usr/lib/httpd/pcreposix.h:52: conflicting types for `REG_ESIZE'
/usr/include/regex.h:319: previous declaration of `REG_ESIZE'
/usr/lib/httpd/pcreposix.h:53: conflicting types for `REG_ESPACE'
/usr/include/regex.h:314: previous declaration of `REG_ESPACE'
/usr/lib/httpd/pcreposix.h:54: conflicting types for `REG_ESUBREG'
/usr/include/regex.h:308: previous declaration of `REG_ESUBREG'
/usr/lib/httpd/pcreposix.h:57: conflicting types for `REG_NOMATCH'
/usr/include/regex.h:300: previous declaration of `REG_NOMATCH'
/usr/lib/httpd/pcreposix.h:57: confused by earlier errors, bailing out
make: *** [sapi/apache2handler/sapi_apache2.lo] Error 1

Comments:

File regex.h is from the Red Hat glibc-devel-2.3.2-27.9 package.

File pcreposix.h was provided by my httpd (Apache) 2.0.46 installation.

Any suggestions for correcting the error?

Thanks,

Bob Cochran
Greenbelt, Maryland, USA



--- End Message ---
--- Begin Message ---
I was able to resolve this issue by checking the bug database and
finding that I needed to remove the line '--with-regex=system'. 

Thanks 

Bob Cochran

On Sat, 2003-06-07 at 22:05, Robert L Cochran wrote:
> Hello,
> 
> I'm running Red Hat Linux 9 with a running Apache (httpd) server version
> 2.0.46 which I recently compiled myself. The server is up to date with
> all current Red Hat-released patches, including the recent kernel
> update.
> 
> I'm getting these errors when building PHP 4.3.2:
> 
> /bin/sh /home/cochranb/php-4.3.2/build-apache/libtool --silent
> --preserve-dup-deps --mode=compile gcc  -Isapi/apache2handler/
> -I/home/cochranb/php-4.3.2/sapi/apache2handler/ -DPHP_ATOM_INC
> -I/home/cochranb/php-4.3.2/build-apache/include
> -I/home/cochranb/php-4.3.2/build-apache/main -I/home/cochranb/php-4.3.2
> -I/home/cochranb/php-4.3.2/build-apache/Zend -I/usr/include/libxml2
> -I/usr/include/freetype2 -I/usr/include/imap -I/usr/kerberos/include
> -I/usr/include/mysql -I/usr/include/pspell
> -I/home/cochranb/php-4.3.2/main -I/home/cochranb/php-4.3.2/Zend
> -I/home/cochranb/php-4.3.2/TSRM 
> -I/home/cochranb/php-4.3.2/build-apache/TSRM  -O2 -g -march=i686 -fPIC
> -I/usr/kerberos/include -I/usr/lib/httpd  -prefer-pic -c
> /home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c -o
> sapi/apache2handler/sapi_apache2.lo
> In file included from /usr/lib/httpd/httpd.h:86,
>                  from /usr/lib/httpd/util_filter.h:61,
>                  from
> /home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c:40:
> /usr/lib/httpd/pcreposix.h:26:1: warning: "REG_ICASE" redefined
> In file included from /home/cochranb/php-4.3.2/main/php_regex.h:39,
>                  from /home/cochranb/php-4.3.2/main/php.h:74,
>                  from
> /home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c:25:
> /usr/include/regex.h:266:1: warning: this is the location of the
> previous definition
> In file included from /usr/lib/httpd/httpd.h:86,
>                  from /usr/lib/httpd/util_filter.h:61,
>                  from
> /home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c:40:
> /usr/lib/httpd/pcreposix.h:27:1: warning: "REG_NEWLINE" redefined
> In file included from /home/cochranb/php-4.3.2/main/php_regex.h:39,
>                  from /home/cochranb/php-4.3.2/main/php.h:74,
>                  from
> /home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c:25:
> /usr/include/regex.h:271:1: warning: this is the location of the
> previous definition
> In file included from /usr/lib/httpd/httpd.h:86,
>                  from /usr/lib/httpd/util_filter.h:61,
>                  from
> /home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c:40:
> /usr/lib/httpd/pcreposix.h:28:1: warning: "REG_NOTBOL" redefined
> In file included from /home/cochranb/php-4.3.2/main/php_regex.h:39,
>                  from /home/cochranb/php-4.3.2/main/php.h:74,
>                  from
> /home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c:25:
> /usr/include/regex.h:285:1: warning: this is the location of the
> previous definition
> In file included from /usr/lib/httpd/httpd.h:86,
>                  from /usr/lib/httpd/util_filter.h:61,
>                  from
> /home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c:40:
> /usr/lib/httpd/pcreposix.h:29:1: warning: "REG_NOTEOL" redefined
> In file included from /home/cochranb/php-4.3.2/main/php_regex.h:39,
>                  from /home/cochranb/php-4.3.2/main/php.h:74,
>                  from
> /home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c:25:
> /usr/include/regex.h:288:1: warning: this is the location of the
> previous definition
> In file included from /usr/lib/httpd/httpd.h:86,
>                  from /usr/lib/httpd/util_filter.h:61,
>                  from
> /home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c:40:
> /usr/lib/httpd/pcreposix.h:34:1: warning: "REG_EXTENDED" redefined
> In file included from /home/cochranb/php-4.3.2/main/php_regex.h:39,
>                  from /home/cochranb/php-4.3.2/main/php.h:74,
>                  from
> /home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c:25:
> /usr/include/regex.h:262:1: warning: this is the location of the
> previous definition
> In file included from /usr/lib/httpd/httpd.h:86,
>                  from /usr/lib/httpd/util_filter.h:61,
>                  from
> /home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c:40:
> /usr/lib/httpd/pcreposix.h:35:1: warning: "REG_NOSUB" redefined
> In file included from /home/cochranb/php-4.3.2/main/php_regex.h:39,
>                  from /home/cochranb/php-4.3.2/main/php.h:74,
>                  from
> /home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c:25:
> /usr/include/regex.h:275:1: warning: this is the location of the
> previous definition
> In file included from /usr/lib/httpd/httpd.h:86,
>                  from /usr/lib/httpd/util_filter.h:61,
>                  from
> /home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c:40:
> /usr/lib/httpd/pcreposix.h:41: conflicting types for `REG_BADBR'
> /usr/include/regex.h:312: previous declaration of `REG_BADBR'
> /usr/lib/httpd/pcreposix.h:42: conflicting types for `REG_BADPAT'
> /usr/include/regex.h:304: previous declaration of `REG_BADPAT'
> /usr/lib/httpd/pcreposix.h:43: conflicting types for `REG_BADRPT'
> /usr/include/regex.h:315: previous declaration of `REG_BADRPT'
> /usr/lib/httpd/pcreposix.h:44: conflicting types for `REG_EBRACE'
> /usr/include/regex.h:311: previous declaration of `REG_EBRACE'
> /usr/lib/httpd/pcreposix.h:45: conflicting types for `REG_EBRACK'
> /usr/include/regex.h:309: previous declaration of `REG_EBRACK'
> /usr/lib/httpd/pcreposix.h:46: conflicting types for `REG_ECOLLATE'
> /usr/include/regex.h:305: previous declaration of `REG_ECOLLATE'
> /usr/lib/httpd/pcreposix.h:47: conflicting types for `REG_ECTYPE'
> /usr/include/regex.h:306: previous declaration of `REG_ECTYPE'
> /usr/lib/httpd/pcreposix.h:48: conflicting types for `REG_EESCAPE'
> /usr/include/regex.h:307: previous declaration of `REG_EESCAPE'
> /usr/lib/httpd/pcreposix.h:50: conflicting types for `REG_EPAREN'
> /usr/include/regex.h:310: previous declaration of `REG_EPAREN'
> /usr/lib/httpd/pcreposix.h:51: conflicting types for `REG_ERANGE'
> /usr/include/regex.h:313: previous declaration of `REG_ERANGE'
> /usr/lib/httpd/pcreposix.h:52: conflicting types for `REG_ESIZE'
> /usr/include/regex.h:319: previous declaration of `REG_ESIZE'
> /usr/lib/httpd/pcreposix.h:53: conflicting types for `REG_ESPACE'
> /usr/include/regex.h:314: previous declaration of `REG_ESPACE'
> /usr/lib/httpd/pcreposix.h:54: conflicting types for `REG_ESUBREG'
> /usr/include/regex.h:308: previous declaration of `REG_ESUBREG'
> /usr/lib/httpd/pcreposix.h:57: conflicting types for `REG_NOMATCH'
> /usr/include/regex.h:300: previous declaration of `REG_NOMATCH'
> /usr/lib/httpd/pcreposix.h:57: confused by earlier errors, bailing out
> make: *** [sapi/apache2handler/sapi_apache2.lo] Error 1
> 
> Comments:
> 
> File regex.h is from the Red Hat glibc-devel-2.3.2-27.9 package.
> 
> File pcreposix.h was provided by my httpd (Apache) 2.0.46 installation.
> 
> Any suggestions for correcting the error?
> 
> Thanks,
> 
> Bob Cochran
> Greenbelt, Maryland, USA
> 
> 


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

I'm attempting to run php 4.3.2 on Red Hat Linux 9 with Apache 2.0.46. I
built both Apache and PHP from source code. This is an upgrade from PHP
4.3.1 and also Apache 2.0.45. 

This error message:

an unknown filter was not added: PHP

appears in my error_log file for httpd (that is, Apache).

Apache also prints this line in the error log:

[Sun Jun 08 02:47:58 2003] [notice] Apache/2.0.46 (Unix) DAV/2 PHP/4.3.2
configured -- resuming normal operations

which gives me the impression that it recognizes PHP/4.3.2 but cannot
locate the DSO module? 

What am I doing wrong here?

Thanks

Bob Cochran
Greenbelt, Maryland, USA




--- End Message ---
--- Begin Message ---
how do i install a php script?
i would like the script the accept incoming messages and automatically
updated to my website?
(i'm a newbie)



--- End Message ---
--- Begin Message ---
David Wilson wrote:

> I have Apache 2.0.45, ActivePerl, and MySQL installed under Win XP Home.
> My immediate goal is to learn PHP programming (I have O'Reilly's
> "Programming PHP").  I plan to use localhost only, there will be no
> outside connections to my web server, and I am not overly concerned with
> security.

Imitates Yoda voice:  "You will be, oh yes you will be."

> I am a little nervous about installing PHP because I do not understand all
> the installation issues (e.g, CGI versus ISAPI).  I can't afford to get
> bogged
> down in these issues, or to botch my install.  I could really use a little
> hand-holding to get me past the install and on to writing PHP. Any help in
> this regard would be greatly appreciated.  I will be forthcoming with any
> information you might need that I can give.

The short list (and by no means comprehensive):

        1) Set up IIS to restrict access from localhost only
        2) Install as ISAPI
        3) Spend an afternoon acquainting yourself with php.ini
        4) Start with PHP

After you get an understanding of how PHP can be (ab)used, you will have a
better feel for if you even need PHP installed as CGI.

You absolutely *must* get acquainted with php.ini, as how it is configured
will tell you how you write (some of) your PHP.  For example, always turn
register_globals off...  Of course your ORA book should take it from here!

-- Mitch

--- End Message ---

Reply via email to