PDA

View Full Version : VPS tuning


mikelbeck
06-22-2005, 08:36 PM
I've seen a few articles people have written here about securing the VPS, but haven't seen anything about tuning... What's to be done to get a VPS running as fast & efficient as it can?

Hvu
06-22-2005, 08:45 PM
Are you running PHP/Mysql Site?

If so install eAccelerator >> http://forums.deftechgroup.com/showthread.php?t=45

Optimize Mysql settings and recompile PHP >> http://forums.deftechgroup.com/showpost.php?p=1733&postcount=28

mikelbeck
06-22-2005, 08:48 PM
I installed eAccelerator earlier today, two sites that used phpBB immediately stopped working properly. So I un-installed it.

I'll take a look at the other link, thanks.

mikelbeck
06-22-2005, 09:39 PM
Optimize Mysql settings and recompile PHP

What does this do?

Hvu
06-23-2005, 12:09 AM
hrm, weird PHPbb stop working? Go into PHPbb disable GZIP compression and then reinstall eaccelerator. Since eaccelerator compresses it too thats why PHPBB stop working. What eaccelerator does is cache your php scripts so they load faster.

Optimize mysql will give you faster queries.

Recompile PHP to just the options you need will give less overhead

mikelbeck
06-23-2005, 10:25 AM
hrm, weird PHPbb stop working? Go into PHPbb disable GZIP compression and then reinstall eaccelerator. Since eaccelerator compresses it too thats why PHPBB stop working. What eaccelerator does is cache your php scripts so they load faster.

Optimize mysql will give you faster queries.

Recompile PHP to just the options you need will give less overhead

The solution to the eaccelerator problem (according to the phpBB board) is to use this command:

eaccelerator.enable 0

What does that do? Does that effectively bypass eaccelerator?

PvUtrix
06-23-2005, 10:39 AM
I have eaccelerator running and I have no problems with phpbb, GZIP is enabled also...
(all are latest versions)

eaccelerator.enable 0 - this disables eaccelerator

If you want to disable it completely for a certain domain place

php_flag eaccelerator.enable 0
php_flag eaccelerator.optimizer 0

in your .htaccess

mikelbeck
06-23-2005, 10:48 AM
Ok... it turned out that one file on a site was having a problem, that happened to be the first one I checked out when I first installed eaccelerator yesterday. I fixed that file and the same one on another site.

It's installed & running now, I'll keep an eye on it to see if there's any difference in speed.

As for re-compiling php... Should I already have the php package (with source) on my VPS or do I need to download it?

mikelbeck
06-23-2005, 11:40 AM
Looking at the php configure command you posted:

Yours has, mine doesnt:
--with-curl-dir=/usr/local/lib (mine has "--with-curl", but not -dir)
--with-gd-dir=/usr/local (mine has "--with-gd", but not -dir)
--with-kerberos
--with-mhash
--with-zlib-dir=/usr/local/lib (mine has "--with-zlib", but not -dir)
--enable-memory-limit

Mine has, yours doesnt:
--with-freetype-dir=/usr
--with-ttf
--with-xpm-dir=/usr/X11R6
--enable-discard-path
--enable-gd-native-ttf
--enable-mbstr-enc-trans
--enable-mbregex
--enable-versioning

I'm going to ignore the ones that both have, but mine doesn't specify the directory.

What does "--with-kerberos", "--with-mhash" and "--enable-memory-limit" get me?

Also, what do I lose by removing the items that are listed in mine but not yours?

mikelbeck
06-26-2005, 11:15 PM
Bump...

Any information on this?