Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Support Windows Apache #49

Open
GoogleCodeExporter opened this issue Apr 6, 2015 · 14 comments
Open

Support Windows Apache #49

GoogleCodeExporter opened this issue Apr 6, 2015 · 14 comments

Comments

@GoogleCodeExporter
Copy link

not really a problem, more of a feature request, but would love to see this mod 
running on WAMP systems as well.

Original issue reported on code.google.com by amirsa...@gmail.com on 8 Nov 2010 at 5:09

@GoogleCodeExporter
Copy link
Author

I believe the issue here is getting mod_instaweb running on Windows Apache.

Original comment by sligocki@google.com on 8 Nov 2010 at 5:36

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

Issue 307 has been merged into this issue.

Original comment by sligocki@google.com on 14 Jun 2011 at 1:29

@GoogleCodeExporter
Copy link
Author

Original comment by sligocki@google.com on 14 Jun 2011 at 1:29

  • Changed title: Support Windows Apache

@GoogleCodeExporter
Copy link
Author

Almost a year has passed. Can you guys please accept this issue?

Original comment by miguel.p...@gmail.com on 25 Nov 2011 at 3:50

@GoogleCodeExporter
Copy link
Author

This is open-source software.  We would love to support Windows but don't have 
much expertise or time to do so.  We would welcome contributions.

It is most likely not likely a large coding task but would involve working with 
configuration scripts.

Note that the FreeBSD people have contributed a mod_pagespeed port and we are 
in the process of incorporating their changes into the trunk.

Original comment by jmara...@google.com on 27 Nov 2011 at 2:28

@GoogleCodeExporter
Copy link
Author

Issue 363 has been merged into this issue.

Original comment by jmara...@google.com on 5 Jan 2012 at 4:46

@GoogleCodeExporter
Copy link
Author

Hi melnick.s.a.  You did *not* get a working modpagespeed.dll or whatever cause 
you were blocked on all these failed compiles, right?

Anyway this was really good stuff.  Are you going to try to continue to work 
toward getting modpagespeed.dll?  Or have you given up at this point?

Original comment by jmara...@google.com on 5 Jan 2012 at 4:46

@GoogleCodeExporter
Copy link
Author

Yeah, I have a couple of ideas and I'm going to proceed with it. However, any 
help regarding reported issues will be extremely useful.

Original comment by melnick....@gmail.com on 6 Jan 2012 at 1:49

@GoogleCodeExporter
Copy link
Author

I looked through the issues.  None of them look intractable but each one 
requires at least a few minutes of tinkering around.

In some cases we need a small refactor to hide a dependence on something that's 
really unix-specific, such as the call to apr_setup_signal_thread() in 
serf_url_async_fetcher.cc.

There are also a few places where the code has never been compiled on Windows 
before and we are calling strcasecmp or similar.  We have portable equivalents 
to those (StringCaseCompare, StringCaseEqual etc) but we'd have to just go and 
change the calls.  The only difficulty is the source-of-truth for some of that 
code is not under our team's control so we'd have to get the owners to change 
it, if we wanted to have Windows-support built into the base distribution.

But, if your goal is a one-time port of the current revision of mod_pagespeed 
it shouldn't be hard to just rip out all the unix-specific stuff and replace 
it, where needed, with Windows-specific stuff.

The only thing that's very complicated is the shared-memory class library, but 
that could mostly be stubbed out if you are running an Apache MPM that does not 
make child processes for requests.  I don't know much about windows-apache but 
I was under the impression that the prefork model simply doesn't exist on 
Windows.

There's a threading abstraction, which you will need. If there is a pthreads 
library available you can use that.  Otherwise you may have to define your own 
in terms of win32 threads or whatever the modern equivalent is. 

Original comment by jmara...@google.com on 6 Jan 2012 at 3:53

@GoogleCodeExporter
Copy link
Author

Original comment by jmara...@google.com on 24 May 2012 at 7:12

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

For people interested in running IIS, WE-AMP has ported PageSpeed to Windows: 
http://www.iispeed.com/

Original comment by jefftk@google.com on 20 Jun 2014 at 3:23

@GoogleCodeExporter
Copy link
Author

Got to a point where a dll is built. Turned off ModPagespeedStatistics because 
it kept crashing the server complaining about the pthreadmutex. and shutting 
down also causes crashes. Expect more, there's a ton of warnings but I turned 
off "warningaserror" so there might be some critical warnings still left. Need 
to take some time to look into them. There are too many hacks and temporary 
patches so I won't bother sharing the code yet. Just as a proof of concept, 
I've attached the Win32 debug version of the dll: 
https://drive.google.com/file/d/0B6F1GJcy613Fek5tb2dmSEF4ZWM/view?usp=sharing 
(The file was over the 10MB attachement limit)
Built for Apache 2.4.10, it doesn't seem to show plt improvements for my pages 
at all in this state, though.

Original comment by bkch...@gmail.com on 25 Feb 2015 at 4:38

@tschallacka
Copy link

Any progress on this google? I have a windows server that i'm using with apache and would love to be able to use mod_pagespeed to automate stuff.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants