php-install Digest 31 Dec 2002 09:58:04 -0000 Issue 1179

Topics (messages 9466 through 9470):

Re: --with-mysql= compile error?
        9466 by: Jim Thome

Unable to run PHP4 under Apache2 in Win2K
        9467 by: Moutoux, Myles
        9468 by: Moutoux, Myles
        9470 by: Nuno Lopes

Segmentation Fault in child (poor child!)
        9469 by: Damon

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 ---
Try --with-mysql=/usr

>>> Stephen <[EMAIL PROTECTED]> 12/29/02 09:57PM >>>
Hrmmmm. This lets php compile but apache still breaks with similar errors.
Anyone else having this prob?


Stephen

Quoting Stephen <[EMAIL PROTECTED]>:

> Ummm, duh!
> To prevent this error use --disable-cli with ./configure
> 
> 
> Regards,
> Stephen
> 
> 
> Quoting Stephen <[EMAIL PROTECTED]>:
> 
> > PHP 4.3.0
> > Linux 2.2.21
> > --with-mysql=/usr/local/mysql seems to be generating this compile
> > error:
> > 
> > 
> > ext/mysql/php_mysql.o: In function `zif_mysql_client_encoding':
> > /usr/src/php-4.3.0/ext/mysql/php_mysql.c:1077: undefined reference to
> 
> > `mysql_character_set_name'
> > ext/mysql/php_mysql.o: In function `zif_mysql_real_escape_string':
> > /usr/src/php-4.3.0/ext/mysql/php_mysql.c:1671: undefined reference to
> 
> > `mysql_real_escape_string'
> > collect2: ld returned 1 exit status
> > make: *** [sapi/cli/php] Error 1
> > 
> > 
> > It ./configures fine - but breaks when compiling.
> > Ideas?
> > Anyone else run into this?
> > 
> > 
> > Regards,
> > Stephen
> > 
> > -- 
> > PHP Install Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php 
> > 
> 
> -- 
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php 
> 

-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php 


--- End Message ---
--- Begin Message ---
I am running Apache 2.0.43 under Win2k with most of the latest patches. I have been 
trying to get PHP4.2.3 to run and have been unable to do so successfully. I did the 
installation from the win32 zip file rather than from the install executable. I one of 
the posts to the php archive I saw that the setup in the apache2 httpd.conf was 
changed to the following:

LoadModule php4_module modules/php4apache2.dll
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>


I tried this as well as downloading the latest stable release dated 12/30. So far, 
everything is unsuccessful. I get the following error no matter where I put the dll 
whenever I try to start apache with the -t option:

Syntax error on line 174 of C:/Program Files/Apache Group/Apache2/conf/httpd.conf:
Cannot load C:/Program Files/Apache Group/Apache2/modules/php4apache2.dll into server: 
The specified procedure could not be found.

Any help would be much appreciated.

--- End Message ---
--- Begin Message ---
I am running Apache 2.0.43 under Win2k with most of the latest patches. I have been 
trying to get PHP4.2.3 to run and have been unable to do so successfully. I did the 
installation from the win32 zip file rather than from the install executable. I one of 
the posts to the php archive I saw that the setup in the apache2 httpd.conf was 
changed to the following:

                LoadModule php4_module modules/php4apache2.dll
                <Files *.php>
                SetOutputFilter PHP
                SetInputFilter PHP
                </Files>
                

I tried this as well as downloading the latest stable release dated 12/30. So far, 
everything is unsuccessful. I get the following error no matter where I put the dll 
whenever I try to start apache with the -t option:

        Syntax error on line 174 of C:/Program Files/Apache 
Group/Apache2/conf/httpd.conf:
        Cannot load C:/Program Files/Apache Group/Apache2/modules/php4apache2.dll into 
server: The specified procedure could not be found.

        Any help would be much appreciated.

--- End Message ---
--- Begin Message ---
You must use PHP 4.3.


----- Original Message -----
From: "Moutoux, Myles" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 30, 2002 4:51 PM
Subject: [PHP-INST] Unable to run PHP4 under Apache2 in Win2K


> I am running Apache 2.0.43 under Win2k with most of the latest patches. I
have been trying to get PHP4.2.3 to run and have been unable to do so
successfully. I did the installation from the win32 zip file rather than
from the install executable. I one of the posts to the php archive I saw
that the setup in the apache2 httpd.conf was changed to the following:
>
> LoadModule php4_module modules/php4apache2.dll
> <Files *.php>
> SetOutputFilter PHP
> SetInputFilter PHP
> </Files>
>
>
> I tried this as well as downloading the latest stable release dated 12/30.
So far, everything is unsuccessful. I get the following error no matter
where I put the dll whenever I try to start apache with the -t option:
>
> Syntax error on line 174 of C:/Program Files/Apache
Group/Apache2/conf/httpd.conf:
> Cannot load C:/Program Files/Apache Group/Apache2/modules/php4apache2.dll
into server: The specified procedure could not be found.
>
> Any help would be much appreciated.


--- End Message ---
--- Begin Message ---
I'm having a problem getting php scripts to execute.  When I point to my
test.php file I get the standard IE "Cannot be displayed" error.

I'm using Redhat 7.1.  I wanted to install Slash, which required recompiling
Apache through the mod_perl install.  I told apache to include mod_so so I
could compile a DSO version of php.

The mod_php4 appears to be loading:

# /usr/local/apache/bin/httpd -l
Compiled-in modules:
  http_core.c
  ...
  mod_perl.c
  mod_php4.c
suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec

and...

# httpd -v
Server version: Apache/1.3.27 (Unix)
Server built:   Dec 22 2002 14:37:04

I've put in the LoadModule and AddType directives into the httpd.conf as the
instruction said, as well as copy over the php.ini-distribution to
/usr/local/lib/php/php.ini.  The logs show:

[Mon Dec 30 16:33:10 2002] [notice] Apache/1.3.27 (Unix) PHP/4.2.3 PHP/4.2.3
mod_perl/1.27 configured -- resuming normal operations
[Mon Dec 30 16:33:10 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)

should there be two "PHP/4.2.3"'s in that line?  If I take out the
LoadModule directive for PHP (there's only one in httpd.conf) then I get

[Mon Dec 30 16:46:49 2002] [notice] Apache/1.3.27 (Unix) PHP/4.2.3
mod_perl/1.27 configured -- resuming normal operations
[Mon Dec 30 16:46:49 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)

I've restarted my server, rebooted, and thrown salt over my shoulder.  I can
access any of the web pages fine but trying to execute my test.php or my old
mysqladmin (which worked before I had to upgrade apache).

In the apache logs I get

[Mon Dec 30 16:42:18 2002] [notice] child pid 13223 exit signal Segmentation
fault (11)

whenever I try and load a .php file.  Any suggestions?

-
natch


--- End Message ---

Reply via email to