Current time: 11-13-2024, 06:09 PM Hello There, Guest! (LoginRegister)


Post Reply 
Change register_globals?
Author Message
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #11
RE: Change register_globals?
ok, read...

http://httpd.apache.org/docs/2.2/en/mod/

prefork - Implements a non-threaded, pre-forking web server

worker - Multi-Processing Module implementing a hybrid multi-threaded multi-process web server


http://httpd.apache.org/docs/2.2/misc/se...ml#dynamic

Embedded scripting options which run as part of the server itself, such as mod_php, mod_perl, mod_tcl, and mod_python, run under the identity of the server itself (see the User directive), and therefore scripts executed by these engines potentially can access anything the server user can. Some scripting engines may provide restrictions, but it is better to be safe and assume not.


And the other hand:
http://www.php.net/manual/en/install.unix.apache2.php

We do not recommend using a threaded MPM in production with Apache2. Use the prefork MPM instead, or use Apache1. For information on why, read the related FAQ entry on using Apache2 with a threaded MPM

hm...
there are plenty of websites to be read by you :-)
(This post was last modified: 05-25-2007 05:25 AM by joximu.)
05-25-2007 05:11 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Eminos Offline
Junior Member
*

Posts: 159
Joined: Jan 2007
Reputation: 0
Post: #12
RE: Change register_globals?
Cool, thanks Smile

/E
05-25-2007 05:18 AM
Find all posts by this user Quote this message in a reply
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #13
RE: Change register_globals?
By the way: http://pecl.php.net/package/htscanner
05-25-2007 08:12 AM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #14
RE: Change register_globals?
@raphael

well, this is great...
I think it would be a good idea to have some FAQ why use fastcgi and so on (htaccess with php ...). And also why PHP doesn't recommend mpm-worker...
http://www.php.net/manual/en/faq.install...on.apache2
???
05-25-2007 05:18 PM
Visit this user's website Find all posts by this user Quote this message in a reply
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #15
RE: Change register_globals?
It doesn't recommend PHP + Apache2 worker, but it says it's ok to use it together with fastcgi (which is what ispCP use)
05-26-2007 05:04 AM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #16
RE: Change register_globals?
Well, I can read :-)
I hoped to see something like "it's more secure to run php with f(ast)cgi and then you also get more performance with apache mpm-worker..."...

Just looking for infos to put in the FAQ...
/Joximu
05-26-2007 06:57 AM
Visit this user's website Find all posts by this user Quote this message in a reply
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #17
RE: Change register_globals?
lol, sorry
05-26-2007 10:02 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ephigenie Offline
Project Leader
*******
Administrators

Posts: 1,578
Joined: Oct 2006
Reputation: 15
Post: #18
RE: Change register_globals?
yeah actually mpm-worker performs far better than mpm-prefork.
For fastest speed the mpm-event is recommended.

But the speed improvements are related to static file transfers.
Php won't get faster with fastcgi - but much more secure - because of the use of suexec (and later chroot Wink )

The speed of php-fastcgi against mod_php is perhaps 90-95% so fastcgi is a bit slower.
But this is nothing compared to other options like suphp (php will be executed as cgi on every call (10-15% of mod_php's speed Wink ).

So fastcgi is the best choice between speed and security.
A small drawback atm is that somehow apache needs a lot of ram to work - but this could be related to some settings for the worker module - we're investigating that Wink
05-26-2007 07:49 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 4 Guest(s)