| Apache driver testers needed [message #97624] |
Sat, 14 April 2012 17:38  |
|
I need just a few people who want to test a new apache driver. If you are interested, PM me.
Here are some of the details of the driver:
A front end httpd daemon (httpd.worker) that serves static content and is a reverse proxy for another httpd daemon that will process php requests.
The backend httpd daemon is httpd.itk, which allows php to be run as the user.
worker will be configured for 2000 conurrent connections by default. It has mod_disk_cache enabled with the store being set to the domain's own home directory. This is mainly for php files that allow caching. No caching of php files with cookies, POST forms, etc.
itk has mod_php and mod_rpaf so it sees the client's real ip address. It also has apc installed, but you have to first disable Zend and IonCube. Instructions will be given to the testers. APC on this config allows all the APC cache to be shared among the httpd.itk processes. If you see 10 itk processes each with 50 MB in use, you might still see that free -m shows under 400 MB in use. This is because of the shared memory. Also php.ini per user is enabled.
Some differences from the current apache driver:
If you have multiple IP addresses, only the main is used for non-exclusive domains. I did this as I see no reason to use them all. Also this makes it so you get no warnings when restarting httpd.
I've removed the redirect from /webmail to webmail. in order to give the domain owner more control. I also felt that this hurt people who had certain SSL certificates. Now, you can just go to /webmail. You can make your own redirect if you'd like.
I've consolidated the configuration so that you have just 1 config file per domain.
You can test with anything you want. Drupal, WordPress, Multiple IP address, SSL, etc. I am pretty confident that the testers will find it very smooth and should have less trouble than they do with the current driver, but will find this to be much more powerful.
That's about it - PM me if you are intersted. Once I have this pass through a few testers, I will post the instructions for others to test.
https://www.mercuryvps.com
HyperVM Xen VPS hosting
|
|
|
|
| Re: Apache driver testers needed [message #98067 is a reply to message #97624] |
Tue, 08 May 2012 01:34   |
|
I'd be willing to test this provided parked/redirected domains work properly. Still running 6.1.10 mostly because I've been very leery about updating from the sheer amount of bug reports on the project page. Currently I need a solution that doesn't necessarily implement any new features the current feature set is great. I like what changes you have made they seem for the best. The IP one in particular is one change I have already made to my config files. Mostly it avoids issues with any ssl and that kind of thing. One config is better than several also I don't see any reason why people couldn't create their own subdomains for mail although I think that the option should be a form selectable to allow that mail subdomain to be whatever somebody want's it to be and make it easier for those not webmin savy folks to simply toggle the option. For instance any customers on a shared hosting environment. First and foremost I want Kloxo to be robust and easy to use for my customers. Have features they can choose to use or not use or ones that I can intimately control what they have access to on their panel's. Also a bug free environment with regard to very important things like multiple domains and ftp access. Which to my knowledge is still broken out of the box. I have my own solution to the second problem but even so if its in the features of the panel it should work properly.
Forgive the wall of text but the point is I'd be very interested in testing this driver and if it proves to be a great improvement I will be installing it.
Can this run alongside Zend?
[Updated on: Tue, 08 May 2012 01:35] Report message to a moderator
|
|
|
| Re: Apache driver testers needed [message #98081 is a reply to message #98067] |
Tue, 08 May 2012 08:56   |
|
Send me a PM and I will send you instructions for testing. I am not posting the instructions openly yet as I feel more 1 on 1 with testers will help me go in the right direction here.
There is an error with a zend extension loading. I think it just needs a newer version. Perhaps you could get it working and give me some info on that.
Few updates. The config doesn't use the php.ini settings, but I did set all the settings using php_admin_value so users can't set their own values. So you will get settings on a per domain basis with mod_php.
Also keep in mind that this driver won't necessarily be accepted into Kloxo. I hope it will as it is already much more stable than the current one and much more powerful. mod_rewrite rules aren't working properly with Joomla, though. So I definitely need to ensure various default rewrites like that can work properly with this configuration.
https://www.mercuryvps.com
HyperVM Xen VPS hosting
|
|
|
|
|
|
|
| Re: Apache driver testers needed [message #98447 is a reply to message #98238] |
Sat, 02 June 2012 10:37   |
|
I've gotten 2 very good reviews of this driver so far. Both have a decent amount of traffic with one getting up to 300,000 hits per hour (if I am reading the stats correctly). They had major thrashing and other issues with the standard httpd driver. The only problem is with the rewrite rules in .htaccess. I can't get them to work for the friendly urls on Joomla. So maybe if I can get a few more testers, someone can figure that part out. I'll post a few things that I tried but didn't work some other time.
https://www.mercuryvps.com
HyperVM Xen VPS hosting
|
|
|
| Re: Apache driver testers needed [message #98476 is a reply to message #98447] |
Mon, 04 June 2012 15:25   |
|
shazar wrote on Sat, 02 June 2012 16:37I've gotten 2 very good reviews of this driver so far. Both have a decent amount of traffic with one getting up to 300,000 hits per hour (if I am reading the stats correctly). They had major thrashing and other issues with the standard httpd driver. The only problem is with the rewrite rules in .htaccess. I can't get them to work for the friendly urls on Joomla. So maybe if I can get a few more testers, someone can figure that part out. I'll post a few things that I tried but didn't work some other time.
I am the one reported problems with Joomla rewrite rules. Normally those rules works without a problem. I tried everything I could think of to make them work but I failed. So far, this driver looks very promising and works correctly. The only thing that is keeping me from using it are those rewrite rules
|
|
|
|
| Re: Apache driver testers needed [message #98658 is a reply to message #98655] |
Fri, 15 June 2012 10:54   |
|
No it doesn't. I wouldn't switch it any time soon either. Too many variances makes debugging much harder. I like to change one thing at a time. I ask for testers and have had maybe 3 so far. Can you imagine how bad it would be if I used a httpd 2.4.2 and have just 3 people test and then it goes into a release and is found to be incomplete?
https://www.mercuryvps.com
HyperVM Xen VPS hosting
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Re: Apache driver testers needed [message #98892 is a reply to message #98890] |
Wed, 27 June 2012 07:28   |
|
Regarding index.html, you can actually move index.html to the top of the list in Index Manager from Kloxo to get it so index.html will work as a default page. It being first also doesn't prevent index.php from working as a default. I will be looking into making this default during this install of this driver.
Regarding moving forward, once I am satisfied with the limited testing, I will be writing up a page to document as much as possible. For example, WordPress has a nasty looping redirect, but they even have a workaround where you uncomment the fix. Really that should be uncommented by default. WordPress is pretty strict with these "friendly" URLs. Anyway, once I write up a good document, I will also post how others can test and then put up a poll for voting. I won't be releasing this unless there is 100% satisfaction from the community. And if the community is slow to test it and I don't like what I see, it will be a slow process.
https://www.mercuryvps.com
HyperVM Xen VPS hosting
|
|
|
| Re: Apache driver testers needed [message #98896 is a reply to message #98892] |
Thu, 28 June 2012 09:45   |
|
The 3 current issues are:
index.html won't work as default unless it is at the top of the list. This is fixed manually by using Index Manager in Kloxo. I will try to set it this way by default in the future.
WordPress does a constant redirect loop because it wants the URL to match a very precise. To be more detailed, if you go to http://www.example.com/ it wants to just see / as the URI. Instead the reverse proxy setup here makes it see /index.php and it loops trying to redirect it like that. They acknowledge this as a possible problem and it is fixed by editting ./wp-includes/canonical.php and uncommenting the following line:
// $original['path'] = preg_replace('|/index\.php$|', '/', $original['path']);
Joomla's (SEF) friendly URLs don't work completely. On a default install they work, but maybe certain configuration options don't. Specifically I am seeing this where dynamic pages look like html files. I have no resolution to this one yet.
https://www.mercuryvps.com
HyperVM Xen VPS hosting
|
|
|
| Re: Apache driver testers needed [message #98903 is a reply to message #98896] |
Thu, 28 June 2012 20:18   |
|
Changing the rewrite rule for Joomla in the .htaccess file corrects the SEF problem:
#RewriteRule .* index.php [L]
RewriteRule ^(.*)$ index.php/$1 [L]
I want to see if the Joomla developers have any thoughts on this. I had someone test it with a standard httpd config and that worked fine as well. This is similar to how Drupal does it as well.
https://www.mercuryvps.com
HyperVM Xen VPS hosting
|
|
|
| Re: Apache driver testers needed [message #98918 is a reply to message #98903] |
Fri, 29 June 2012 07:09   |
|
Alright so I guess I only need to fix the index.html thing, write up a document on FAQS for people to easily get around the Joomla and WordPress issue. And yes I do blame Joomla and WordPress for the problem lol:) Once I do this I will go ahead and post instructions and a poll for people to use and see what everyone thinks about updating the Kloxo apache driver to this.
Any thoughts from the current testers?
https://www.mercuryvps.com
HyperVM Xen VPS hosting
|
|
|
| Re: Apache driver testers needed [message #98921 is a reply to message #98918] |
Fri, 29 June 2012 07:39   |
|
In my experience (especially when working for my fork), solution for speed-up httpd (in case Wordpress multisite):
1. using php-fpm + fastcgi --> because less memory usage compare to mod_php and suphp; speed like 'standard' mod_php with security like mod_php_ruid2
2. using php 5.3.x version --> php 5.3.x faster than 5.2.x
3. enable deflate and xcache module on httpd
4. modified domain-mapping plugin for creating symlink
5. modified .htaccess (related to point 3) to control httpd for not process static files via php
This trick without using 'proxy trick'.
|
|
|
| Re: Apache driver testers needed [message #98923 is a reply to message #98921] |
Fri, 29 June 2012 08:01   |
|
Not really sure any of those points are relevent here though.
I will not be using php-fpm + fastcgi as this is an httpd worker front end (2000 concurrent connections) that acts as a reverse proxy for PHP requests to an httpd.itk mod_php backend (I think I have it set at 10 concurrent connections here by default). These 2 use under 200 MB total on a fresh installation of Kloxo.
PHP 5.3 will be a completely separate issue and I won't be testing it while polishing up this driver.
I don't recommend xcache, though it is enabled by default, I recommend disabling it and enabling APC, which this driver does install. APC is very special with mod_php. It shares all of its php opcache among the mod_php httpd.itk processes. So once enabled if you see that you have 10 httpd.itk processes using 50 MB, nearly all of that is shared memory so only 70 MB of what free -m shows will be in use from httpd.itk. Other configurations build new cache per process.
Regarding .htaccess, the light end, httpd.worker, serves static files. Only php requests are sent to the backend.
Also this driver has disk caching enabled for php files that allow them to be cached. Unlike other webservers, this caching follows the documented standards of what should be cached and doesn't just cache everything like Varnish or nginx does.
And this driver allows all the same perdir (per domain) php settings that suphp does, but is still with mod_php.
https://www.mercuryvps.com
HyperVM Xen VPS hosting
[Updated on: Fri, 29 June 2012 08:02] Report message to a moderator
|
|
|
|
|
|
|
|
| Re: Apache driver testers needed [message #98965 is a reply to message #98958] |
Sat, 30 June 2012 10:03   |
|
So you mean that 2 second cache helps you for when you are running tests on the server but never in the real world? I am doing this configuration correctly and to be stable. I am not doing it to win in some fake speed test that breaks the rules of the game.
Also for the most part there will not be choices for this. This is what has really screwed up Kloxo in the past already and I won't be doing that.
Again:
httpd.itk backend acts as ruid2 or suphp in terms of security.
My mod_php setup acts like susphp in terms of php settings being on a perdir (domain) bases
The only thing you have told me in terms of functionality is not seeing a script in top or ps.
If you want to make suggestions to tell me more stuff from a functionality stand point not configurations that completely go against what I have written here.
Also to be perfectly honest I've fixed all of the bugs that were introduced to the driver by Mustafa. This is why I have a tough time taking advice from him. Sorry I just have to be honest here.
https://www.mercuryvps.com
HyperVM Xen VPS hosting
|
|
|
|
| Re: Apache driver testers needed [message #98975 is a reply to message #98972] |
Sat, 30 June 2012 18:20   |
|
I am waiting on one more person to test and then I will post the instructions and take a vote.
Also what do you think of my stance on the IPs SSL and exclusive IP?
The primary IP can not be used for a specific domain's SSL and the shared non exclusive hostings all only respond on the primary IP as opposed to unused spare IPs.
I've removed some default subdomains like forcing webmail.* on every domain.
Have you looked through the /home/apache/conf directory? Do you like the format?
https://www.mercuryvps.com
HyperVM Xen VPS hosting
|
|
|
|
| Re: Apache driver testers needed [message #99008 is a reply to message #98985] |
Mon, 02 July 2012 08:08   |
|
So what do you think about how I've explained how the exclusive IPs will work then? Also about the removal of webmail.*. The main reason for this is to allow the domain owner easier use of SSL certs for webmail.
I've sent an email to the devs list with the instructions for this new driver asking for feedback. I'd like a few responses from them and then I will set up the poll here with the full set of instrustions asking for a vote.
https://www.mercuryvps.com
HyperVM Xen VPS hosting
|
|
|