View previous topic :: View next topic |
Author |
Message |
al-Quaknaa n00b
Joined: 14 Feb 2006 Posts: 20 Location: Czech Republic
|
Posted: Sun Jan 14, 2007 6:30 pm Post subject: Mass hosting and PHP running with owner UID:GID |
|
|
Hello everybody,
I need to help with Apache configuration. The problem is that I want PHP scripts to run under their owners UID:GID and to have mass hosting (so I can't set it per-VirtualHost as with MPM-Peruser or MPM-ITK). I know suPHP, but it is 10 times slower then mod_php, also FastCGI/PHP is maybe 2 times slower and I haven't found any howto about how to set it to work this way. So my question is, if there is a way to set something like Code: | ServerEnvironment %0 %0 | for the mass hosting VirtualHost. I tried that with no success, but I don't know Apache well so I want to know, if it is really impossible or if it was just my fault.
I've already spent 3 days googling and searching through wikis, forums and so on, so if there is an Apache expert who can tell me that it is not possible, just go on, I will find another way (probably throw mass hosting away and use some smart scripts to generate VirtualHost sections instead of it).
Thanks in advance
al-Quaknaa |
|
Back to top |
|
|
jmz2 Guru
Joined: 13 Jan 2004 Posts: 421 Location: Finland
|
Posted: Sun Jan 14, 2007 8:19 pm Post subject: |
|
|
I know a couple of ISP's who use CGI and suexec for PHP. It's not the fastest solution, but it works and it's easy to maintain. The execution time of the scripts is not important, as long as the server is not under heavy load. And when it comes to that, you know you've oversold your capacity; time to get another server. |
|
Back to top |
|
|
al-Quaknaa n00b
Joined: 14 Feb 2006 Posts: 20 Location: Czech Republic
|
Posted: Sun Jan 14, 2007 8:38 pm Post subject: |
|
|
Well, performance is important for me, because now I have not enough money to buy a new server and I don't know, if it will make that much money (it is going to be normal hosting but ALSO a special free service, getting money via some advertisement). Also - I can do it (if there is no way to do it with mass hosting, that's what I'm asking for) with some smart scripts to generate VHost entries and run Apache with MPM-Peruser. Still - thanks for reply |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|