You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 48 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Speed Freaking on Computer Cops [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
bretonmage
Captain
Captain


Joined: Feb 21, 2004
Posts: 421


PostPosted: Sat May 22, 2004 1:52 am Reply with quoteBack to top

hamesh wrote:
Perhaps a little, late, but I see that nukecops doesn't use compression. You could reduce server load and speed considerably by use mod_deflate (Apache 2.x) or mod_gzip (Apache 1.x) in combination with a php accelerator. I have a high volume site serving up around 3 million page views per month/500 GB in traffic and these and mod_expires reduce my server load considerably...


Can you explain how to do this slowly and carefully (for us PHP Newbies)?
Find all posts by bretonmageView user's profileSend private message
hamesh
Support Mod
Support Mod


Joined: Feb 13, 2003
Posts: 170

Location: Canada

PostPosted: Tue May 25, 2004 9:38 pm Reply with quoteBack to top

Well if talking about mod_gzip or mod_deflate, you'll have to recompile Apache with one of these modules. I won't get into it here, as most people won't be in a position to do this unless you have root access on your web host.

But almost anyone should be able to enable gzip compression in nuke by doing the following:

Go to http://www.desilva.biz/gzip-test.php and enter your web address. Confirm that there is no compression on your pages (you'll see RED text confirming). If compression is detected (GREEN text and compression level), you've already got compression enabled so can skip to PHP acceleration/caching further down Smile

If compression is not detected, per the above, do:

1) in your .htaccess file add the following:
Code:
php_flag output_buffering 1

Go back to http://www.desilva.biz/gzip-test.php and re-test. If you still get a the message in RED that no compression was detected, do:

2) in your mainfile.php, add:
Code:
ob_start("ob_gzhandler");

directly below the comments at the top of the file. Return to http://www.desilva.biz/gzip-test.php and re-test. Your pages should now be compressed.

The second step should not be necessary as the compression functions are already in mainfile.php, but depending on your version of nuke, it may not detect your version of PHP so won't enable it.

PHP acceleration/caching falls into the same category as mod_gzip and mod_deflate. But, those without the ability to compile source or install software on their web host can look at jpcache. It works on almost any web host and can reduce page load times. Combine jpcache with compression and you've got a decently fast site and will have reduced server load considerably (by negating the need to compile PHP pages at every http request) and by then compressing the text/html content of your pages (all HTTP/1.1 compliant browsers understand gzip compression and decompress the data automatically).

Oh, an important note about enabling compression... If you have the Forums module enabled in nuke, ensure that you first DISABLED gzip compression in the Forum configuration. When you enable compression in the nuke mainfile, the forums will also be compressed. If you enable compression in both the nuke mainfile and in the Forum configuration, your Forums won't load (you'll have enabled compression twice).

_________________
Image
Find all posts by hameshView user's profileSend private messageSend e-mailVisit poster's websiteMSN MessengerICQ Number
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Sun Jun 13, 2004 11:13 am Reply with quoteBack to top

hamesh wrote:
Perhaps a little, late, but I see that nukecops doesn't use compression. You could reduce server load and speed considerably by use mod_deflate (Apache 2.x) or mod_gzip (Apache 1.x) in combination with a php accelerator. I have a high volume site serving up around 3 million page views per month/500 GB in traffic and these and mod_expires reduce my server load considerably...
CCSP is pulling 7.5 million per month and it uses compression and a php op_code cacher. I notice that belchfire.net takes a good second for even the first byte to load. I'm having the same problem.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
hamesh
Support Mod
Support Mod


Joined: Feb 13, 2003
Posts: 170

Location: Canada

PostPosted: Mon Jun 14, 2004 3:08 pm Reply with quoteBack to top

Ah, you hit me at a bad time. If you try now should be back to normal.

I'm using PHP Accelerator - I highly recommend it. What are you using?

_________________
Image
Find all posts by hameshView user's profileSend private messageSend e-mailVisit poster's websiteMSN MessengerICQ Number
maciekp
Sergeant
Sergeant


Joined: Sep 09, 2003
Posts: 94

Location: Perth, WA

PostPosted: Tue Jun 15, 2004 6:41 am Reply with quoteBack to top

There's a lot of caching systems to choose from - see my earlier post here.

PHP Accelerator is not an option for me... simply because it doesn't come with the source code Surprised

_________________
ElectricDice 0.8 - password & MD5, sitekey generator tool

Use SHA1 in Nuke
Find all posts by maciekpView user's profileSend private messageVisit poster's website
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Tue Jun 15, 2004 8:30 am Reply with quoteBack to top

I'm trialing ZPS right now, and its adding almost a x2 boost without caching. First byte for CCSP has come down too thanks to this. Next up is caching of the files.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Tue Jun 15, 2004 8:33 am Reply with quoteBack to top

I notice right now belchfire.net is coming back with .4 seconds first byte, but overall it took 11 seconds. Your sedotracker php script took 1.6 seconds first byte but took a total of 2.2 seconds to load. It took .2 seconds for your DNS to resolve and almost .5 for the sedotracker.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
hamesh
Support Mod
Support Mod


Joined: Feb 13, 2003
Posts: 170

Location: Canada

PostPosted: Tue Jun 15, 2004 6:14 pm Reply with quoteBack to top

I've used the Zend Performance Suite and performance was impressive, but not $1875 US impressive. Have you tried TurckMMCache? Better performance than PHP Accelerator (second only to Zend) and is open source...

_________________
Image
Find all posts by hameshView user's profileSend private messageSend e-mailVisit poster's websiteMSN MessengerICQ Number
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Wed Jun 16, 2004 6:23 am Reply with quoteBack to top

No I haven't tried the caching packages yet except for ZPS. What is the x performance?

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
chris
Support Mod
Support Mod


Joined: Jul 17, 2003
Posts: 12


PostPosted: Wed Jun 16, 2004 6:56 am Reply with quoteBack to top

For anyone interested in PHP-Nuke acceleration: read the PHP-Nuke HOWTO, especially the chapter on Accelerating PHP-Nuke. The subject is also treated in great detail in the thread How to accelerate PHP-Nuke, which AFAIK was the first one of its kind.

Arrow Note: You can download the PHP-Nuke HOWTO in the format of your choice from the Formats section. Notice that there is a module version of it too, i.e. you can install the PHP-Nuke HOWTO as a PHP-Nuke module on your site.
Find all posts by chrisView user's profileSend private messageVisit poster's website
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Wed Jun 16, 2004 7:21 am Reply with quoteBack to top

Yes I saw that, great work.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Wed Jun 16, 2004 8:17 am Reply with quoteBack to top

Chris/Hamesh: are you using Googletap? I'm finding it a bit challenging caching and wonder if its not due to ob_start.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
Coop
Nuke Soldier
Nuke Soldier


Joined: Mar 03, 2004
Posts: 23

Location: Leeds, UK

PostPosted: Wed Jun 16, 2004 9:54 am Reply with quoteBack to top

I'm trying jpcache and all i'm getting is a blank page. :S I'm using obstart and googletap dunno if thats what is affecting it.

_________________
My eyes! I'm not supposed to get pudding in them!
http://www.crooze-control.com

Last edited by Coop on Wed Jun 16, 2004 11:44 am; edited 1 time in total
Find all posts by CoopView user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger
chris
Support Mod
Support Mod


Joined: Jul 17, 2003
Posts: 12


PostPosted: Wed Jun 16, 2004 10:09 am Reply with quoteBack to top

No, I don't use GoogleTap.

I think the question here is: with Googletap and caching both active, how is the caching program seing things? Does it get "rewritten" or "original" URLs to cache? Is mod_rewrite executed "before" the PHP extension that does the caching or is it the other way round? More technically, in which API phase does the caching occur?

I tend to think that the caching program "sees" only the original URLs, because that's also what PHP sees and executes. Thus it shouldn't make a difference whether one uses Googletap or not...
Find all posts by chrisView user's profileSend private messageVisit poster's website
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Wed Jun 16, 2004 11:42 am Reply with quoteBack to top

Well the problem I'm thinking is that the data gets buffered in order for GT to work right? How is the cache working in this piece?

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.283 Seconds - 278 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::