#1 (permalink)  
Old 01-11-2009, 06:16 PM
Junior Member
 
Join Date: Dec 2008
Posts: 12
Default Optimizing httpd.conf

Hello,

I started last week to optimize apache.
Edit httpd.conf :

Timeout 15
KeepAlive On
MaxKeepAliveRequests 400
KeepAliveTimeout 15
StartServers 10
MinSpareServers 10
MaxSpareServers 15
ServerLimit 10
MaxClients 128
MaxRequestsPerChild 300

I have a VPS VZ3 1 gb Ram. What do you think? The Configuration is good?
HostV installed for me eAccelerator and with this settings I have a mean Cpu load of 0.40 per day.
The vps has 70 accounts (ffmpeg sites, joomla, php nuke, etc)

Please post sugestions! Thank you!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-10-2009, 12:40 AM
Junior Member
 
Join Date: Mar 2009
Posts: 9
Default

I'm sorry for dumb question, i have a VPS VZ2 500gb ram.

I have in tv only a site, with vshare, a youtube clone.

But, consume too much memory in the hours with most access...

Do you think use this "eAccelerator" in my vps will help to reduce the memory usage?

and what about the "keep alive on", also this can help me to use less cpu/memory?

Thank you and sorry if this are stupid question.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-03-2009, 06:09 AM
Junior Member
 
Join Date: May 2009
Posts: 1
Default

Hello, someone have a how to, to install eAccelerator in server?, thank you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-03-2009, 08:48 PM
bdh734's Avatar
Senior Member
 
Join Date: Jun 2008
Location: A small room with flickering blue and green lights
Posts: 309
Send a message via MSN to bdh734 Send a message via Yahoo to bdh734
Default

Quote:
Originally Posted by linux View Post
Hello, someone have a how to, to install eAccelerator in server?, thank you.
It is setup be default on all HostV VPS's
But......

Download the latest version of eAccelerator from http://eaccelerator.net, Version may of changed....
Login via SSH as ROOT!

Code:
cd ../tmp
Code:
wget http://bart.eaccelerator.net/source/0.9.5.3/eaccelerator-0.9.5.3.tar.bz2
After you download the file, uncompress the file
Code:
tar xjvf eaccelerator-0.9.5.3.tar.bz2
You will then have a new directory called eaccelerator-0.9.5.3, go to that

Code:
cd eaccelerator-0.9.5.3
directory and execute this command:
Run phpize

Code:
phpize
Configure eAccelerator

Code:
./configure
After that, don’t forget to build the files

Code:
make
You might want to run make test to test it first.
Finally, we install eAccelerator

Code:
make install
You process will give you and output that might be similar to this line below:
Code:
Installing shared extensions:     /usr/lib/php5/20060613+lfs/
Copy the above information to a text file, we gonna need this one later. Now that we’ve finally managed to install eAccelerator, we have to add several settings to the php.ini file.
Code:
vi /etc/php5/apache2/php.ini
(NOTE: This may vary depending on which Linux you have installed.)
And then insert this code at the end of php.ini file.
Code:
zend_extension="/usr/lib/php5/20060613+lfs/eaccelerator.so"
eaccelerator.shm_size="0"
eaccelerator.cache_dir="/home/cache/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
eaccelerator.allowed_admin_path=""
Note that we used the line we previously saved on the zend_extention parameter. You can also change the value of eaccelerator.cache_dir to any directory you want.
To see weather eAccelerator was successfully installed, create phpinfo file in your site directory. You should see a eAccelerator v0.9.5.3 text somewhere in the phpinfo page.
__________________
For HELP, summon support with the Bat-Signal: http://support.hostv.com/

Sysadmins are sexy.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 03:40 PM.


Powered by: vBulletin
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15