wget http://mirror.clanserverz.de/apache/httpd/httpd-2. 0.54.tar.bz2 tar xjf httpd-2.0.54.tar.bz2 cd httpd-2.0.54 ./configure --enable-mods-shared=all --prefix=/opt/omg_teh_web_servah/ --enable-ssl make sudo make install sudo/opt/omg_teh_web_servah/bin/httpd
Or just be on the safe side and run IIS via the WINE-emulator.
Apache 2 and PHP
by
dananderson
·
· Score: 5, Informative
OK--I'll answer the obligatory question before it's asked:-): Does Apache 2 work with PHP yet?
A: Yes, but only if you use the (default) Apache prefork module with PHP. Some libraries used by PHP are
not thread-safe, so you cannot use the multiple thread model.
For details on using Apache 2 and php see my FAQ at
http://dan.drydog.com/apache2php.html
What exactly does "not thread-safe" mean? I've been running php5 with apache2, though in WinXP, for about 8 months, and I haven't really had any major problems, aside from stupid programming errors.
Re:Apache 2 and PHP
by
Anonymous Coward
·
· Score: -1, Troll
Ignore the moronic grand-parent post.
He obviously does not know what he/she is talking about.
Apache2+PHP work perfectly together.
The "omg dont use PHP with teh apache2 omg"-FUD of the Zend-crew is based on their tight liasons with el-cheapo webhosts who are not willing to update their server-software (it would not be sufficient to just install Apache 2 - they use way outdated OSs, Debian stable and the like, which do not allow recent Apache-versions, therefor a switch to A2 would cost them badly).
Re:Apache 2 and PHP
by
Fweeky
·
· Score: 4, Interesting
PHP itself is thread safe (that's what the Thread Safe Resource Manager is all about); if your extension use is limited, it should work fine in a threaded MPM.
A better solution IMO is to use FastCGI; mod_fastcgi is thread safe, and it seperates PHP (and pretty much any other language) from the webserver so you can't make the webserver blow up with a badly written script, as well as using fewer resources since there's no need for a 1:1 mapping between webserver processes and PHP processes. You can even host your PHP on a seperate machine, or a cluster of them, without having to manage webservers on them all.
Has anyone done any benchmarks I've missed that show apache-httpd is actually faster using threads, for real platforms? Yes, I realise win32 requires them... I don't care.
-- ustr: Managed string API with ave. 44% overhead over strdup(), for 0-20B
Re:Apache 2 and PHP
by
Anonymous Coward
·
· Score: 1, Informative
Apache 2.0 serves static files is about 20% faster (on Linux). --Martiner
Re:Apache 2 and PHP
by
Anonymous Coward
·
· Score: 0
we have apache 2 on our server, with no problems, with many differently coded php pages(different coders, different code). i also have apache 2 on my home server and have never had a problem. now, off to look for porn at work.
But do I lose speed with mod_fastcgi calling PHP or do I have to re-write PHP scripts with #!/bin/env php on all of them?
-- -What have you contributed lately?
Re:Apache 2 and PHP
by
Fweeky
·
· Score: 4, Informative
Any noticable speed loss is unlikely; that you need fewer PHP processes and database connections eating memory could actually make it faster.
There's no need for #! lines in your.php files; the interpreter loads whatever SCRIPT_FILENAME is set to by the webserver. With external servers you don't even need the.php's to be in the webserver's document tree; your PHP interpreter(s) can be running in a seperate part of the filesystem, a chroot jail or even a seperate server; even load balanced across many servers using something like the pen load balancer or lighttpd and its native lb support.
Not necessarily the simplest or most sensible setup for small sites/development, but it works well in more loaded setups.
I use something called turck-mmcache as a php accelerator, would this also work with mod_fastcgi ? php runs very slowly without this accelerator active..
Saying a program is not thread-safe essentially means that it doesn't do the proper chicken dancing to coordinate its memory usage with other threads. This doesn't mean it won't work, it just means that you can't GUARANTEE it. Threads often interact in surprising and unexpected ways, and this can create some very strange problems that depend on the phase of the moon and are difficult to track down.
-- Microsoft cheerleader, blue flag waving, you got a problem with that?
Yes, turck-mmcache (now eAccelerator) works fine with PHP/FastCGI; we make heavy use of it:)
Also today...
by
Anonymous Coward
·
· Score: -1, Troll
In equally useful news, yesterday I clipped my cat's fingernails, so she won't be making me bleed when she scratches me any more.
Least Commented Story
by
trurl7
·
· Score: 0, Offtopic
This is one of the least commented stories that I've seen on/. Also, the percentage of troll posts is almost 50%. Some kind of record maybe (well, assuming average/. aren't trolls:-) )
On a semi-serious note: are there any "top" lists for slashdot stories - i.e. most comments, fewest comments, most active discussion (most posts within some time period), stuff like that? I did google for this, but perhaps my google-fu is not strong today.
If there's not, it would be cool to have it.
Re:Least Commented Story
by
molnarcs
·
· Score: 4, Funny
It is because of your comment. Now that you have drawn attention to the fact that this is the least commented story, readers are tentative (myself included) to post new comments for fear of ruining this new record;)
"This version of Apache is principally a bug fix release.
This release is compatible with modules compiled for 2.0.42 and later versions.
We consider this release to be the best version of Apache available and encourage users of all prior versions to upgrade."
Just finished upgrading:)
Re:Least Commented Story
by
grimarr
·
· Score: 0, Offtopic
Regarding your question about "Top" lists on Slashdot -- check out the "Hall of Fame" link on the left side of the page (in the Stories section).
Re:Least Commented Story
by
datacaliber
·
· Score: 2, Insightful
Looking back at the story history for Apache, it makes you wonder why it's even a section. A quarter or so of the stories have been just Security fixes and minor releases. Although I guess when you're looking for stability, that's a plus.
Way OT, but who cares
by
mhesseltine
·
· Score: -1, Offtopic
Sure, this is way off-topic, but obviously nobody cares. What you might be looking for the the/. Hall of Fame, which lists some of the Top type categories, but none of the bottom (which would be kind of interesting)
Re:Way OT, but who cares
by
trurl7
·
· Score: 0, Offtopic
Ahh, thank you very much for the link. You're right, it would be better for them to list the bottom categories. Can't be that hard - just a sort in the reverse order.
Situation with openBSD?
by
Anonymous Coward
·
· Score: 0
Will this release be available as a package for OpenBSD? Or has BSD really "dropped" Apache after certain issues?
If I want to run this version of Apache on an OpenBSD server, what procedures am I supposed to follow?
TIA.
Interesting Snippets from the Changelog
by
osewa77
·
· Score: 2, Insightful
Interesting changes with Apache 2.0.54:
- Add a build script to create a Solaris package.
- (null)
- (null!)
(Changelog)
poo
shit
A: Yes, but only if you use the (default) Apache prefork module with PHP. Some libraries used by PHP are not thread-safe, so you cannot use the multiple thread model.
For details on using Apache 2 and php see my FAQ at http://dan.drydog.com/apache2php.html
In equally useful news, yesterday I clipped my cat's fingernails, so she won't be making me bleed when she scratches me any more.
This is one of the least commented stories that I've seen on /. Also, the percentage of troll posts is almost 50%. Some kind of record maybe (well, assuming average /. aren't trolls :-) )
On a semi-serious note: are there any "top" lists for slashdot stories - i.e. most comments, fewest comments, most active discussion (most posts within some time period), stuff like that? I did google for this, but perhaps my google-fu is not strong today.
If there's not, it would be cool to have it.
Sure, this is way off-topic, but obviously nobody cares. What you might be looking for the the /. Hall of Fame, which lists some of the Top type categories, but none of the bottom (which would be kind of interesting)
Overrated / Underrated : Moderation
Will this release be available as a package for OpenBSD? Or has BSD really "dropped" Apache after certain issues? If I want to run this version of Apache on an OpenBSD server, what procedures am I supposed to follow? TIA.
Interesting changes with Apache 2.0.54:
- Add a build script to create a Solaris package.
- (null)
- (null!)
(Changelog)
Well, at least Apache now supports Open Solaris!
How do I upgrade Apache on Windows?