Help installing Apache/PHP/MySQL

Bill McCormick wpmccormick@covad.net
Sat Jul 5 19:05:00 GMT 2003


Thanks Stipe and Jason for the info on rebase. I didn't think to google for
'unable to remap'.

rebaseall fixed the problem with server not starting but still I see ...

	$ apachectl start
	[Sat Jul  5 13:33:55 2003] [warn] Loaded DSO lib/apache/mod_auth_mysql.dll
uses
	plain Apache 1.3 API, this module might crash under EAPI! (please recompile
it w
	ith -DEAPI)
	[Sat Jul  5 13:33:55 2003] [warn] Loaded DSO lib/apache/libphp4.dll uses
plain A
	pache 1.3 API, this module might crash under EAPI! (please recompile it
with -DE
	API)
	/usr/sbin/apachectl start: httpd started

and wonder if this is a problem. These were the error messages I was fixated
on and why I did't think to follow the 'unable to remap' lead.

I'm trying to get phpMyAdmin to work and it still just displays the file
contents of index.php3. I'm thinking that php4 can't load php3 files ... is
that correct? I saw something about 'if you want mods for both php3 and php4
do this' but now I need to find that again or maybe just find a phpMySQL
admin for php4.

Thanks.




-----Original Message-----
From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com]On Behalf
Of Stipe Tolj
Sent: Saturday, July 05, 2003 1:37 PM
To: wpmccormick@covad.net
Cc: cygwin@cygwin.com
Subject: Re: Help installing Apache/PHP/MySQL


Bill McCormick wrote:
>
> I've got the MySQL Win32 server up and running and recompiled the MySQL
> binaries under Cygwin and go a client to work. I need some getting Apache
> with the mod_php and mod_auth_mysql installed. The cygwin setup didn't
> appear to do it. Starting httpd I get the following:
>
> [Sat Jul  5 11:13:57 2003] [warn] Loaded DSO lib/apache/mod_auth_mysql.dll
> uses
> plain Apache 1.3 API, this module might crash under EAPI! (please
recompile
> it w
> ith -DEAPI)
> [Sat Jul  5 11:14:17 2003] [warn] Loaded DSO lib/apache/libphp4.dll uses
> plain A
> pache 1.3 API, this module might crash under EAPI! (please recompile it
> with -DE
> API)

there are *warnings* that are telling you that the modules have been
compiled in a non-EAPI environment, which *can* be ignored.

> Syntax error on line 281 of /etc/apache/httpd.conf:
> Cannot add module via name 'mod_mysql_auth.c': not in list of loaded
modules

it should be 'mod_auth_mysql.c'.

> I'm not sure if this means I need to recompile Apache or the mods or both.
> Trying to recompile PHP I get to 'make install' and the output ends with
...
>
> /usr/src/php-4.2.0-2/build/shtool mkdir -p "/usr/lib/apache" && apxs -S
> LIBEXECD
> IR="/usr/lib/apache" -i -a -n php4 libs/libphp4.so
> apxs:Error: file libs/libphp4.so is not a DSO
> make[1]: *** [install-sapi] Error 1
> make[1]: Leaving directory `/usr/src/php-4.2.0-2'
> make: *** [install-recursive] Error 1

please install php-4.x from the cygwin net distribution and see then
/usr/doc/Cygwin/php-4.x for information on how to recompile.

> There's also something confusing about what cygwin setup in my httpd.conf
> file ....
>
> LoadModule mysql_auth_module  lib/apache/mod_auth_mysql.dll
>
> and then ...
>
> AddModule mod_mysql_auth.c

yep, that's an old story (so called apache mod_auth_foobar vs
mod_foobar_auth install problem via apxs).

Simply change to 'AddModule mod_auth_module.c' and you'll be fine.

> but that is different than the "LoadModule" section and the name of the
> actual source and seems to correspond to the error message when Apache
> starts so I changed it to ...
>
> AddModule mod_auth_mysql.c
>
> and then when Apache starts ...
>
> $ apachectl start
> [Sat Jul  5 12:16:07 2003] [warn] Loaded DSO lib/apache/mod_auth_mysql.dll
> uses
> plain Apache 1.3 API, this module might crash under EAPI! (please
recompile
> it w
> ith -DEAPI)
> [Sat Jul  5 12:16:08 2003] [warn] Loaded DSO lib/apache/libphp4.dll uses
> plain A
> pache 1.3 API, this module might crash under EAPI! (please recompile it
> with -DE
> API)

ok, so both modules loaded and get added.

> C:\cygwin\usr\sbin\httpd.exe: *** unable to remap
> C:\cygwin\bin\cygintl-1.dll to
>  same address as parent(0x1860000) != 0x1870000
> /usr/sbin/apachectl start: httpd could not be started

now you get the famous rebase problem. See Jasons reference.

Stipe

tolj@wapme-systems.de
-------------------------------------------------------------------
Wapme Systems AG

Vogelsanger Weg 80
40470 Düsseldorf

Tel: +49-211-74845-0
Fax: +49-211-74845-299

E-Mail: info@wapme-systems.de
Internet: http://www.wapme-systems.de
-------------------------------------------------------------------
wapme.net - wherever you are

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.491 / Virus Database: 290 - Release Date: 6/18/2003

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.491 / Virus Database: 290 - Release Date: 6/18/2003


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list