|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19618 Cannot load - Win32 error 5
Submitted: 2002-09-26 10:33 UTC Modified: 2003-08-09 09:33 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 2 (50.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: bitcode at earthlink dot net Assigned:
Status: Wont fix Package: Apache2 related
PHP Version: 4.2.3 OS: Cygwin-XP
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2002-09-26 10:33 UTC] bitcode at earthlink dot net
Apache 2 was working swell...

These were my PHP 4.2.3 compile commands:
$./configure --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs


(worth noting at the end of make I see this warning...
libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin shared libraries
make[1]: Leaving directory `/home/Administrator/php-4.2.3'
Making all in pear
make[1]: Entering directory `/home/Administrator/php-4.2.3/pear'
make[1]: Leaving directory `/home/Administrator/php-4.2.3/pear'
) {is that the problem I wonder. Next.}

$make install

$cp php.ini-dist /usr/local/lib/php.ini
(i also tried php.ini-recommended with same results)

Then I changed the httpd.conf file....
appropriately... followed by...

$/usr/local/apache2/bin/apachectl restart

Syntax error on line 231 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/ into server: dlopen: Win32 error 5

Win xp pro - Cygwin - Apache 2 - php 4.2.3


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-26 10:54 UTC]
Please try using this CVS snapshot:
For Windows:

 [2002-09-27 06:54 UTC] bitcode at earthlink dot net
Ok starting again with Apache2 & php4-200209261500

I recompiled Apache 2 again just to be safe....

Apache 2 working.

$./configure --with-mysql --with-apxs=/usr/local/apache2/bin/apxs

(this finishes without issue)

(ends with)
collect2: ld returned 1 exit status
MAKE: *** [sapi/cli/php] Error 1

$make install
(ends with)
collect2: ld returned 1 exit status
MAKE: *** [sapi/cli/php] Error 1

(Next the ini copy:
The documentation states...
Next you must copy php.ini-dist to the appropriate place (normally
/usr/local/lib/php.ini) and edit it as necessary to set PHP options.
I am uncertain of the appropriate place.... so I am copying it to the 
suggested place.)

$cp php.ini-dist /usr/local/lib/php.ini

I then add:

     LoadModule php4_module modules/
     AddType application/x-httpd-php .php

,to httpd.conf

$/usr/local/apache2/bin/apachectl restart

Syntax error on line 1028 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/ into server: dlopen: Win32 err
or 5

 [2002-09-27 06:58 UTC] bitcode at earthlink dot net
correction to previous:

$./configure --with-mysql --with-apxs=/usr/local/apache2/bin/apxs


$./configure --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs

I forgot the 2 in the bug report, but not during the configure
 [2002-12-16 00:11 UTC]
If you would take a look at the official Cygwin PHP distribution, you'd see that there needs to be some relocation of symbol tables. This is something specific to Cygwin. The right people to ask would be the maintainer of that distribution, cause on no other platform this is needed.
Whether he/she is willing to look into Apache2 is yet a whole other issue.

Frankly - there are too less people actively using Cygwin, who are also farmiliar with Cygwin and PHP internals, to get this fixed. Until then, suspending.
 [2003-08-09 09:33 UTC]
We do not support Cygwin, only win32 binaries.
(if someone can fix the problems, patches are of course accepted but we will not waste our time on this)

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Feb 25 21:01:31 2024 UTC