ID: 19618
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Apache2 related
Operating System: Cygwin-XP
PHP Version: 4.2.3
New Comment:
correction to previous:
$./configure --with-mysql --with-apxs=/usr/local/apache2/bin/apxs
actually
$./configure --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs
I forgot the 2 in the bug report, but not during the configure
Previous Comments:
------------------------------------------------------------------------
[2002-09-27 06:54:57] [EMAIL PROTECTED]
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)
$make
(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/libphp4.so
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/libphp4.so into server: dlopen:
Win32 err
or 5
?
------------------------------------------------------------------------
[2002-09-26 10:54:25] [EMAIL PROTECTED]
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
------------------------------------------------------------------------
[2002-09-26 10:37:11] [EMAIL PROTECTED]
ty
------------------------------------------------------------------------
[2002-09-26 10:33:08] [EMAIL PROTECTED]
Apache 2 was working swell...
These were my PHP 4.2.3 compile commands:
$./configure --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs
$make
(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/libphp4.so into server: dlopen:
Win32 error 5
System:
Win xp pro - Cygwin - Apache 2 - php 4.2.3
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19618&edit=1