David Cohen | 3 Mar 11:21 2008

Trouble with apache2, mod_php5

Hello and thanks for your work on cygwin ports.  I was very happy to
discover this project.

I've used Cygwin in the past, but have managed to avoid Windows for
years.  Now I need to set up a development environment with Apache, PHP,
MySQL on Windows and I'm hoping Cygwin Ports will work for me.

I've installed apache2 and successfully see the "It works!" page.  I've
also installed mod_php5 and the other packages which I think I need. 
But the apache conf does not automatically include mod_php5.  Should it?
 Or is this something for me to do by hand?  I notice that
/etc/apache2/httpd.conf includes /etc/apache2/conf.d/*, but there is
nothing in that directory.

I feel like I'm close to getting this working.  Any help would be
appreciated.

-Dave

P.S. Before cygwin ports, I've tried XAMPP and WAMP.  The problem with
both is they do not support symbolic links the way cygwin does.  I need
several symbolic links in my environment.  I've also tried to build
mod_php on regular cygwin, but was stymied.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Brian Johnson | 5 Mar 17:37 2008

Re: Trouble with apache2, mod_php5

David,

Have you tried adding the relevant entries to httpd.conf as described here?

http://dan.drydog.com/apache2php.html

- Brian

On Mon, March 3, 2008 2:21 am, David Cohen wrote:
> Hello and thanks for your work on cygwin ports.  I was very happy to
> discover this project.
>
> I've used Cygwin in the past, but have managed to avoid Windows for
> years.  Now I need to set up a development environment with Apache, PHP,
> MySQL on Windows and I'm hoping Cygwin Ports will work for me.
>
> I've installed apache2 and successfully see the "It works!" page.  I've
> also installed mod_php5 and the other packages which I think I need.
> But the apache conf does not automatically include mod_php5.  Should it?
>  Or is this something for me to do by hand?  I notice that
> /etc/apache2/httpd.conf includes /etc/apache2/conf.d/*, but there is
> nothing in that directory.
>
> I feel like I'm close to getting this working.  Any help would be
> appreciated.
>
> -Dave
>
> P.S. Before cygwin ports, I've tried XAMPP and WAMP.  The problem with
> both is they do not support symbolic links the way cygwin does.  I need
(Continue reading)

Gergely Budai | 6 Mar 22:42 2008
Picon
Picon

cygport questions

Dear cygport maintainers!

First of all, thank you for creating such a great project.

I started to use cygport recently and there are some questions I would like
to ask:

Is it possible to change the packer options without modifying the code, in a
form of a hook or something?
( would like to create anonymized archives with the tar option
"--numeric-owner".)

Is it possible that cygport also includes the original package's signature
file in the source package?

Thank you in advance,
Gergely Budai

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
David Cohen | 8 Mar 13:24 2008

Re: Trouble with apache2, mod_php5

My original response (below) never made it to the list because I sent
from the wrong address.

Good news - I solved the problem I report below running rebaseall as
described here:
http://www.garethhunt.com/index.php/2008/02/11/cygwin-died-waiting-for-dll-loading/

However, after the rebaseall, I can no longer run emacs (it hogs all CPU
but never appears).  I have no idea what else rebaseall broke, but for
the moment I am able to run apache2 with mod_php5.

Thanks again,

-Dave

On Fri, 07 Mar 2008 02:42:37 -0800, "David Cohen"
<cygwin@...>
said:
> Brian,
> 
> Thanks for the pointer.  I've just tried adding those lines.  In
> particular:
> 
> LoadModule php5_module lib/apache2/cygphp5.so
> 
> (Note that there is no mod_php5.so, so I'm assuming cygphp5.so is the
> one).
> 
> After adding that line, apache2 fails to start, with the following in
> written to the error_log:
(Continue reading)

Yaakov (Cygwin Ports | 9 Mar 03:46 2008
Picon
Picon

Re: Trouble with apache2, mod_php5


David Cohen wrote:
| Good news - I solved the problem I report below running rebaseall as
| described here:

Just catching up now to a week's worth of messages.

That's good to hear, because I really wasn't sure what the problem was
otherwise.

| However, after the rebaseall, I can no longer run emacs (it hogs all CPU
| but never appears).  I have no idea what else rebaseall broke, but for
| the moment I am able to run apache2 with mod_php5.

emacs is know not to work after rebasing; I'm not sure of the exact
reason, but try searching the cygwin list archives.  This can be fixed
by reinstalling the emacs package with setup.exe.

Yaakov
Cygwin Ports
Brian Johnson | 10 Mar 21:52 2008

GCC 4.x?

This message is primarily for Yaakov, but perhaps anyone else reading may
be able to answer.

I'm trying to compile libtorrent in cygwin (in preparation for eventually
compiling rtorrent). It's reporting some issues, which I believe are
related to the fact that the version of GCC and the related C++ header
files are so old (GCC version is something like 3.3.x)

Yaakov: I was just wondering if you had any intention on releasing GCC 4.x
as part of cygwin-ports, obviously with updated binutils?

On a side note, has anyone been able to update GCC to version 4.x
relatively painlessly? Any 3rd-party packages available that anyone is
aware of?

The error message I am getting is as follows:

 g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -g -O2 -g -DDEBUG
-I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -MT
connection_manager.lo -MD -MP -MF .deps/connection_manager.Tpo -c
connection_manager.cc  -DDLL_EXPORT -DPIC -o .libs/connection_manager.o
In file included from connection_manager.cc:39:
../../rak/address_info.h:71: error: ISO C++ forbids declaration of
`addrinfo' with no type
../../rak/address_info.h:71: error: expected `;' before '*' token
../../rak/address_info.h:72: error: expected `;' before "const"
../../rak/address_info.h:72: error: ISO C++ forbids declaration of
`addrinfo' with no type
../../rak/address_info.h:72: error: expected `;' before '*' token
../../rak/address_info.h:74: error: expected `;' before "address_info"
(Continue reading)

Reini Urban | 13 Mar 19:36 2008
Picon

Re: Still seeking a Cygwin/X maintainer

2008/3/13, Christopher Faylor <cgf-use-the-mailinglist-please@...>:
> Anyone interested in being a Cygwin/X maintainer?  We've been missing
>  one for years and it would be nice to get the packages up to date, fix
>  some bugs, etc.

Yaakov,
You same to have no problem to update it regularly on your site.

Don't you want to do it to catch up with GNOME and gtk2?
--

-- 
Reini

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Yaakov (Cygwin Ports | 14 Mar 05:08 2008
Picon
Picon

Re: Still seeking a Cygwin/X maintainer


Reini Urban wrote:
| You same to have no problem to update it regularly on your site.
|
| Don't you want to do it to catch up with GNOME and gtk2?

I had wanted to ever since modular X117.0, and the client code works
beautifully, but as I've mentioned several times, I got stuck on the
server not finding the fonts.  Therefore, I was resigned to using Xming,
which while missing the MIT-SHM extension, is a fairly good substitute.
~ But a BYOS (S=server) situation didn't seem appropriate for the distro,
so modular X117.0 stayed in Ports, where I've been keeping it relatively
up to date.

A recent hint to the cygwin-xfree list about using a static-only
libXfont allowed XWin to launch, but now:

1) the resulting build (1.3) had no X extensions available (not sure why);

2) the current version (1.4) doesn't compile due to API changes
elsewhere in the common code.

Now I have much less time than I used to for Cygwin development, so I
have yet to figure out either of these issues.  If the 1.3 server can be
made to work, maintaining the client code is no big deal; I've already
done most of the work, and being modular, several people should be able
to maintain X11 together.

In case someone else with the Ports' X11R7 is actually interested in
helping to figure this out:
(Continue reading)

Scott Webster Wood | 15 Mar 19:32 2008
Picon

Apache 2.2, PHP5 and MySQL?

Has anyone got PHP5 to work on apache 2.2 with MySQL?  I actually got MySQL to work under cygwin with no fuss. 
Re-compiled to create libmysqlclient.a again with little fuss.  Apache of course comes with cygwin so
I've been using that version - got mod_perl compiled on it with no fuss.

PHP seems to be the fuss.  Downloaded and configured with apxs2 and --with-mysql and I don't seem to get a
libphp5 of any sort to add to Apache's configuration.  (as it went through the install process it says
simply Installing SAPI:   cgi  while all the other components it shows a full path)

I found some pre-rolls on the sunsite.dk site but the only apache2-php didn't include mysql and the other
packages seemed to be for apache v1.  I even tried grabbing the source and doing a cygport with it but the
dependencies were crazy.  (and yes, I even tried changing the cygport file to just do the bare minimum using
--with-mysql and still had no luck)

Has anyone got a mysql capable PHP5 running with apache 2.2 under cygwin?

SW

      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Yaakov (Cygwin Ports | 16 Mar 03:27 2008
Picon
Picon

Re: Apache 2.2, PHP5 and MySQL?


Scott Webster Wood wrote:
| Has anyone got PHP5 to work on apache 2.2 with MySQL?  I actually got
MySQL
| to work under cygwin with no fuss.  Re-compiled to create
| libmysqlclient.a again with little fuss.  Apache of course comes with
cygwin
| so I've been using that version - got mod_perl compiled on it with no
| fuss.

Why do you want a static libmysqlclient.a?  Ports includes mysql and a
shared libmysqlclient15, which you absolutely will need.

| PHP seems to be the fuss.  Downloaded and configured with apxs2 and
--with-mysql
| and I don't seem to get a libphp5 of any sort to add to Apache's
| configuration.  (as it went through the install process it says simply
| Installing SAPI:   cgi  while all the other components it shows a full
| path)

PHP does *NOT* build on Cygwin OOTB.  The php-5.2.5-1.cygport file is
well documented, and there is a patch as well.  But why not just use the
packages in Ports?

| I found some pre-rolls on the sunsite.dk site but the only apache2-php
| didn't include mysql and the other packages seemed to be for
| apache v1.  I even tried grabbing the source and doing a cygport with it
| but the dependencies were crazy.  (and yes, I even tried changing the
| cygport file to just do the bare minimum using --with-mysql
| and still had no luck)
(Continue reading)


Gmane