Micfo.com, LLC. - Official Forums  

Go Back   Micfo.com, LLC. - Official Forums > Webhosting Services > VPS Web Hosting

VPS Web Hosting VPS Web Hosting (Virtual Private Hosting) customers are now able to exchange information, discuss their VPS account, or anything related to this service.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-10-2007, 12:03 PM
drachma's Avatar
Micfo Addict
 
Join Date: Jan 2005
Posts: 294
Getting started with VPS.

Guide to VPS:

Logon to your WHM panel
https:// your_ip:2087 -- use your root/password

Update your cpanel to the latest 'Release' version using the automated scripts.

If you're using your own Nameservers:
* add- ns1.yourdomain.com, ns2.yourdomain.com and associated IPs to your domain registrar (i.e. godaddy.com)
* modify WHM-Hostname (i.e. myserver.yourdomain.com), nameservers

Follow security guidelines
www. webhostingtalk.com/showthread.php?t=468168
Default trojans that can be ignored:
Code:
Possible Trojan - /usr/bin/cpan
Possible Trojan - /usr/bin/instmodsh
Possible Trojan - /usr/bin/prove
Possible Trojan - /usr/bin/psed
Possible Trojan - /usr/bin/pstruct
Possible Trojan - /usr/bin/s2p
Possible Trojan - /usr/bin/splain
Possible Trojan - /usr/bin/xsubpp
Possible Trojan - /etc/cron.daily/logrotate
Possible Trojan - /usr/bin/curl
Possible Trojan - /usr/lib/libcurl.so.3.0.0
Possible Trojan - /usr/sbin/pureauth
Compile Apache, PHP + mods you want
Add eaccelerator - http:// eaccelerator.net/wiki/InstallFromSource
**my modifications
* mkdir /tmp/eaccelerator, chmod 777 /tmp/eaccelerator
* edit /usr/local/lib/php.ini and add
Code:
zend_extension="/usr/local/lib/php/extensions/no-debug-non-zts-20020429/eaccelerator.so"
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/tmp/eaccelerator"
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="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
phpsuexec + eaccelerator/APC/or any php accelerator will not to work...keep this in mind

Add zend optimizer - via SSH su/root run /scripts/installzendopt, follow instructions

Add Cpanel/WHM package + accounts!

Good php scripts for monitoring:
vpsinfo www. labradordata.ca/home/13
loadavg www. labradordata.ca/home/37

If your log files are getting out of control, it's probably because you need to tweak settings in /etc/logrotate.d/httpd and /etc/logrotate.conf to accomodate for cpanel log files
check out www. duntuk.com/node/59

Please install the following modules to your apache. I prefer manual compile vs cpanel's plugins
www. modsecurity.org/ (mod_security) (for apache 1.3.x please install (PCRE)
www. pcre.org/ then compile
modsecurity.org/documentation/modsecurity-apache/1.9.3/html-multipage/02-installation.html Rules from
www. gotroot.com/tiki-index.php?page=Setup+of+mod_security (gotroot)
www. zdziarski.com/projects/mod_evasive/ (mod_evasive)
**Don't forget to change your /usr/local/apache/conf/httpd.conf file to reflect these 2 mods.

I've had issues installing APF firewall or ConfigServer Security & Firewall due to the VPS kernel. I've made settings in those configs to reflect VPS however nothing has worked yet. If anyone has an idea please post.
__________________
Mike
Retired Forum Moderator

Last edited by drachma; 07-08-2007 at 11:21 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Blue Dot this Post!
Reply With Quote
  #2 (permalink)  
Old 06-21-2007, 11:46 AM
Amir's Avatar
Executive Director
 
Join Date: Feb 2002
Location: New York, NY
Posts: 2,781
Mike,

Thanks for sharing such a valuable information with us and other users.

Sincerely,
Amir.
__________________
Founder & Executive Director
Micfo.com, LLC.
www.micfo.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Blue Dot this Post!
Reply With Quote
  #3 (permalink)  
Old 07-20-2007, 07:25 AM
drachma's Avatar
Micfo Addict
 
Join Date: Jan 2005
Posts: 294
Additional modifications to reduce memory usage, and hopefully increase speed

decrease your spamd children to 1 or 2 max
edit: /etc/init.d/exim
Code:
--pidfile=${pidfile-"/var/run/spamd.pid"} --max-children=${maxchildren=1}
restart exim

change mysql /etc/my.cnf
Code:
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
safe-show-database
bind-address=127.0.0.1
log-slow-queries=/var/log/mysql_slow_query.log
skip-locking
skip-bdb
skip-innodb

query_cache_limit=1M
query_cache_size=8M
query_cache_type=1

max_connections=500
max_user_connections=200
interactive_timeout=20
wait_timeout=6
long_query_time=5
connect_timeout=6

thread_cache_size=80
key_buffer=128M
join_buffer=1M
max_allowed_packet=16M
table_cache=2048
tmp_table_size=512M
record_buffer=1M
sort_buffer_size=1M
key_buffer_size=6M
read_buffer_size=1M
max_connect_errors=10
thread_concurrency=2
myisam_sort_buffer_size=64M
read_rnd_buffer_size=2MB

server-id=1
concurrent_insert=2
low_priority_updates=1

[mysql.server]
user=mysql
#basedir=/var/lib

[mysqld_safe]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

[mysql]
no-auto-rehash

[myisamchk]
key_buffer=32M
sort_buffer=32M
read_buffer=16M
write_buffer=16M

[mysqldump]
quick
max_allowed_packet=16M
restart mysql
__________________
Mike
Retired Forum Moderator
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Blue Dot this Post!
Reply With Quote
  #4 (permalink)  
Old 10-15-2008, 01:21 PM
Micfo Newbie
 
Join Date: Oct 2008
Posts: 2
Re

can u be little be more obvious??
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Blue Dot this Post!
Reply With Quote
  #5 (permalink)  
Old 10-15-2008, 07:52 PM
Micfo Newbie
 
Join Date: Oct 2008
Posts: 2
Mike,

Thanks for information with us. also give me information abt on telnet services.

Sincerely,
saravanakumar.R
www.sentersoftech.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Blue Dot this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 -8. The time now is 10:32 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 2002-2009 Micfo.com, LLC. - All Rights Reserved.