A Small Orange Forums: eAccelerator on VPS plans - A Small Orange Forums

Jump to content

  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

eAccelerator on VPS plans Rate Topic: -----

#1 User is offline   jaseone

  • Massive Orange
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,188
  • Joined: 11-February 05

Posted 24 August 2005 - 10:50 AM

For those with shiny new VPS's you should look into installing eAccelerator by following this tutorial, I just did on mine and it seems to have sped things up some. smile.gif

(I installed it as a Zend extension)
Jason Bainbridge
An Aussie geek stuck in Texas
Road Show Blondes - Follow the Road Show as we drive from Houston to New York City to raise awareness and money for suicide prevention with The Jed Foundation.
0

#2 User is offline   -ASO- Tim

  • Former Head Orange
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5,238
  • Joined: 14-March 04

Posted 25 August 2005 - 11:44 PM

Copy and paste instructions for eAccelerator and Zend Optimizer:

CODE
wget http://unc.dl.sourceforge.net/sourceforge/eaccelerator/eaccelerator-0.9.3.tar.gz
tar zxf eaccelerator-0.9.3.tar.gz
cd eaccelerator-0.9.3
mkdir /usr/lib/php/extensions
export PHP_PREFIX="/usr"
$PHP_PREFIX/bin/phpize
./configure --enable-eaccelerator --with-php-config=$PHP_PREFIX/bin/php-config
make                
cp modules/eaccelerator.so /usr/lib/php/extensions/

cat <<EOT >> /usr/local/lib/php.ini  
zend_extension="/usr/lib/php/extensions/eaccelerator.so"              
eaccelerator.shm_size="6"
eaccelerator.cache_dir="/mmcache"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""                  
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="1"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
EOT

cd
wget http://downloads.zend.com/optimizer/2.5.10/ZendOptimizer-2.5.10a-linux-glibc21-i386.tar.gz
tar zxf ZendOptimizer-2.5.10a-linux-glibc21-i386.tar.gz
ZendOptimizer-2.5.10a-linux-glibc21-i386/install

httpd


Just keep hitting enter until it quits during the Zend Optimizer install.

We use this in the bootstrap script I use for setting up new servers. So, it should work without incident.
Owner/Manager
A Small Orange Software
<a href="http://www.timdorr.com" target="_blank">timdorr.com</a>

Looking for quick support? <a href="https://www.asmallorange.com/help//index.php?_m=tickets&_a=submit" target="_blank">Submit a support ticket</a>
0

#3 User is offline   Logan

  • Very Large Orange
  • PipPipPipPipPip
  • Group: Members
  • Posts: 482
  • Joined: 04-December 04

Posted 26 August 2005 - 09:59 AM

I used the tutorial given by Jason to install eAccerlerator and it worked fine.

Any other suggested extensions VPS users should install? smile.gif
0

#4 User is offline   jaseone

  • Massive Orange
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,188
  • Joined: 11-February 05

Posted 26 August 2005 - 10:05 AM

The tutorial I linked to pretty much did the same thing as Tim's steps above anyway.

I'm thinking of setting up that eAccelerator.php script as well just to sataisfy my curiosity to what exactly it is doing.
Jason Bainbridge
An Aussie geek stuck in Texas
Road Show Blondes - Follow the Road Show as we drive from Houston to New York City to raise awareness and money for suicide prevention with The Jed Foundation.
0

#5 User is offline   Stian S

  • Very Large Orange
  • PipPipPipPipPip
  • Group: Members
  • Posts: 465
  • Joined: 06-June 04

Posted 26 August 2005 - 04:25 PM

ASO's servers are automatically gzipping encoded content, but the VPS doesn't seem to do so according to this website

What do I have to install to get the served pages gzipped?
0

#6 User is offline   _Tux_

  • Rather Big Orange
  • PipPipPipPip
  • Group: Members
  • Posts: 261
  • Joined: 25-October 04

Posted 26 August 2005 - 04:28 PM

if im not mistaken, aso run mod gzip with apache?
0

#7 User is offline   Stian S

  • Very Large Orange
  • PipPipPipPipPip
  • Group: Members
  • Posts: 465
  • Joined: 06-June 04

Posted 26 August 2005 - 04:30 PM

Oh, okay. So, how do I easily add that mod? Can it be done with WHM?
0

#8 User is offline   _Tux_

  • Rather Big Orange
  • PipPipPipPip
  • Group: Members
  • Posts: 261
  • Joined: 25-October 04

Posted 26 August 2005 - 04:43 PM

theres a mod_gzip option in the apache update link but it says its experimental :/
0

#9 User is offline   Stian S

  • Very Large Orange
  • PipPipPipPipPip
  • Group: Members
  • Posts: 465
  • Joined: 06-June 04

Posted 26 August 2005 - 05:15 PM

How can I check if the EAccelerator install went okay? I've done all the steps but want to check it is actually working.
0

#10 User is offline   -ASO- Tim

  • Former Head Orange
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5,238
  • Joined: 14-March 04

Posted 26 August 2005 - 05:30 PM

It's been "experimental" for years, but a number of sites use it. It's safe in my book, but hasn't been maintained. It's now known as mod_deflate in Apache 2.0, so the code is still in use.

Just be sure to check /tmp every once in a while if you do use it. Orphaned .wrk files sometimes get left around if Apache crashes or the connection isn't closed properly. They aren't that big, but there can be a lot that build up if you're not careful.
Owner/Manager
A Small Orange Software
<a href="http://www.timdorr.com" target="_blank">timdorr.com</a>

Looking for quick support? <a href="https://www.asmallorange.com/help//index.php?_m=tickets&_a=submit" target="_blank">Submit a support ticket</a>
0

#11 User is offline   Stian S

  • Very Large Orange
  • PipPipPipPipPip
  • Group: Members
  • Posts: 465
  • Joined: 06-June 04

Posted 26 August 2005 - 07:27 PM

Gotta love the easyness of WHM. smile.gif

Woah, gotta say I see a huge speed difference on the forums after I installed eAccelerator. Nice.
0

#12 User is offline   Stian S

  • Very Large Orange
  • PipPipPipPipPip
  • Group: Members
  • Posts: 465
  • Joined: 06-June 04

Posted 26 August 2005 - 07:46 PM

Hmm, after I recompiled Apache with mod gzip eAccelerator seems no longer to work.

The bit in php.ini is still there, and it doesn't help to restart Apache. Before I recompiled Apache with mod gzip I was able to use the ea.php file to see that it was installed and working, but now it says "Not installed".

Any tips?
0

#13 User is offline   jaseone

  • Massive Orange
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,188
  • Joined: 11-February 05

Posted 26 August 2005 - 08:00 PM

Just try rebuilding eAccelerator.
Jason Bainbridge
An Aussie geek stuck in Texas
Road Show Blondes - Follow the Road Show as we drive from Houston to New York City to raise awareness and money for suicide prevention with The Jed Foundation.
0

#14 User is offline   Logan

  • Very Large Orange
  • PipPipPipPipPip
  • Group: Members
  • Posts: 482
  • Joined: 04-December 04

Posted 26 August 2005 - 08:03 PM

This is the 2nd time I recompiled Apache and PHP. Could someone please take a quick look at my php info and let me know if I need anything else? I am going to be doing a lot of PHP developement, and I run Invision Power Board.

I think I have everything I need, my nameservers should be propagated tomorrow night so I want to make sure I have everything I need:

http://70.86.92.85/~logan/phpinfo.php

Thanks

This post has been edited by Logan: 26 August 2005 - 08:12 PM

0

#15 User is offline   Stian S

  • Very Large Orange
  • PipPipPipPipPip
  • Group: Members
  • Posts: 465
  • Joined: 06-June 04

Posted 26 August 2005 - 08:09 PM

QUOTE(jaseone @ Aug 27 2005, 2:00 AM)
Just try rebuilding eAccelerator.
View Post


I tried that, then restarted Apache, but it didn't work.

unsure.gif
0

#16 User is offline   Stian S

  • Very Large Orange
  • PipPipPipPipPip
  • Group: Members
  • Posts: 465
  • Joined: 06-June 04

Posted 26 August 2005 - 08:29 PM

I even changed it to a zend extension, but still not working. And as said, this happened after I recompiled Apache with mod gzip. What else can have changed?
0

#17 User is offline   Stian S

  • Very Large Orange
  • PipPipPipPipPip
  • Group: Members
  • Posts: 465
  • Joined: 06-June 04

Posted 26 August 2005 - 08:47 PM

Hmm, I actually had to remove all the files, remove the commands in php.ini, restart Apache, then compile eAccelerator all over again.

Works now tho. smile.gif
0

#18 User is offline   Stian S

  • Very Large Orange
  • PipPipPipPipPip
  • Group: Members
  • Posts: 465
  • Joined: 06-June 04

Posted 27 August 2005 - 06:38 AM

I have the Personal VPS package. What should I set the memory allocation to?
0

#19 User is offline   bareweb

  • Small Orange
  • PipPip
  • Group: Members
  • Posts: 24
  • Joined: 25-March 05

Posted 30 August 2005 - 12:32 PM

I used Tim's copy and paste instructions to install eaccelerator. Everything seemed to go smoothly. My forums seem quicker now but how do I know for sure that everything was installed properly? Shouldn't I be seeing some cache files in the /mmcache directory?
0

#20 User is offline   jaseone

  • Massive Orange
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,188
  • Joined: 11-February 05

Posted 30 August 2005 - 12:34 PM

have a look at http://vps.yourdomain.com/phpinfo.php at the bottom of the PHP section it should say something about using eAccelerator and the Zend extension, then further down there should be a section for eAccelerator itself.
Jason Bainbridge
An Aussie geek stuck in Texas
Road Show Blondes - Follow the Road Show as we drive from Houston to New York City to raise awareness and money for suicide prevention with The Jed Foundation.
0

  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users