LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-27-2014, 08:57 AM   #1
johnchristy
LQ Newbie
 
Registered: Mar 2014
Posts: 13

Rep: Reputation: Disabled
VPS webserver speed


Hello

I recently bought this Centos 5.10 VPS.

They already gave me pre-configured everything :

======
php -v
PHP 5.3.22 (cli) (built: Apr 2 2013 15:04:13)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
with the ionCube PHP Loader v4.4.1, Copyright (c) 2002-2013, by ionCube Ltd., and
with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies
======

But I still feel like my blogs/shopping cart sites loading very slow.

I would like to clarify few things

1) I'm using Apache, should I upgrade my web server? ( I do not wish to go for high end expensive webservers)

2) Should I upgrade my PHP version?

3) Should I install any cache plugins? xcache/APC?

It would be great if someone guide guide me what are the modules/plugins/upgrades can improve my webserver speed.

Thank you in advance
John
 
Old 03-27-2014, 09:51 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,171

Rep: Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752
In general, with VPS you kinda get what you pay for, what guaranteed processor and RAM do you have with it?

How much traffic are you getting?

Regarding your individual points:
  1. I know that Apache will handle millions of page views a month just fine!
  2. In general you should upgrade to whichever is the newest version of PHP that's supported, this can be either the official CentOS supported, or the highly regarded REMI repositories.
  3. Unless you're doing a LOT of traffic to your site you aren't likely to notice much of an improvement with PHP cache.
 
Old 03-27-2014, 09:58 AM   #3
johnchristy
LQ Newbie
 
Registered: Mar 2014
Posts: 13

Original Poster
Rep: Reputation: Disabled
1.5g RAM. 4 CPU cores. Unmetered bandwidth. Yea I like to upgrade php but some scripts works with 5.3. So can I maintain both? 5.4 will it improve speed?
 
Old 03-27-2014, 10:03 AM   #4
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,171

Rep: Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752
Quote:
Originally Posted by johnchristy View Post
1.5g RAM. 4 CPU cores. Unmetered bandwidth. Yea I like to upgrade php but some scripts works with 5.3. So can I maintain both? 5.4 will it improve speed?
You really don't want to be maintaining multiple versions of PHP in a production environment. The main reason for using newer versions of PHP is around the security/bug fix aspect rather than speed. You may find that more RAM will help. Does your VPS provider let you buy incremental add-ons?
 
Old 03-27-2014, 10:04 AM   #5
johnchristy
LQ Newbie
 
Registered: Mar 2014
Posts: 13

Original Poster
Rep: Reputation: Disabled
My traffic is not much. Less than 10gb month but I need my sites to load very fast
 
Old 03-27-2014, 10:21 AM   #6
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,171

Rep: Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752
Quote:
Originally Posted by johnchristy View Post
My traffic is not much. Less than 10gb month but I need my sites to load very fast
You may find the "slowness" is due to your VPS sharing a common link to the outside world. You can have "unlimited bandwidth" which is really unlimited transfer, depending on your provider you could be sharing a single 100Mb link with any number of servers.

Try:

Code:
wget -O /dev/null http://speedtest.wdc01.softlayer.com/downloads/test100.zip
which downloads a 100Mb file and will give you an indication of the line speed you're getting.
 
Old 03-27-2014, 10:23 AM   #7
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,171

Rep: Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752
Oh, and also, depending on your own location / bandwidth your site might seem slow to you but is fast for other people.
 
Old 03-27-2014, 10:34 AM   #8
johnchristy
LQ Newbie
 
Registered: Mar 2014
Posts: 13

Original Poster
Rep: Reputation: Disabled
This is the speed

===
--2014-03-27 22:33:36-- http://speedtest.wdc01.softlayer.com...ds/test100.zip
Resolving speedtest.wdc01.softlayer.com... 208.43.102.250
Connecting to speedtest.wdc01.softlayer.com|208.43.102.250|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104874307 (100M) [application/zip]
Saving to: `/dev/null'

100%[==================================================================================================== ==================================================>] 104,874,307 30.3M/s in 4.2s

2014-03-27 22:33:41 (23.8 MB/s) - `/dev/null' saved [104874307/104874307]
===
 
Old 03-27-2014, 10:43 AM   #9
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,171

Rep: Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752
That's pretty respectable transfer time, so that's not a bottleneck.
 
Old 03-27-2014, 10:46 AM   #10
johnchristy
LQ Newbie
 
Registered: Mar 2014
Posts: 13

Original Poster
Rep: Reputation: Disabled
yea but what i'm trying to do here is since this is a new VPS I want to configure the software properly before considering hardware upgrades such as RAM. Do you think I should consider litespeed etc? Is that a difficult process to migrate?
 
Old 03-27-2014, 10:48 AM   #11
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,171

Rep: Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752
I honestly haven't used litespeed, I've only ever needed to use apache and I'm doing over 1M page displays a month.
 
Old 03-27-2014, 11:10 AM   #12
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,263

Rep: Reputation: 297Reputation: 297Reputation: 297
Hi

I would run "top" in a putty terminal window and try to figure out where the bottleneck is. Keep it open and load some pages. Is it Apache or PHP processes using the CPU? Or maybe the database? Do you see a high waiting percentage? (Look at the number before %wa). Is it using swap?

Upgrading PHP and Apache doesn't help much. If you have lots of PHP code being included in every page, xcache/APC can help a lot. Changing web-server can help for static pages, but not much if the real problem is a slow backend.

Is it using MySql? The default server settings are very minimal. Increasing things like query_cache_size or key_buffer_size can do wonders.

In short, you have to figure out where the bottleneck is. What kind of software are you using?
 
Old 03-27-2014, 04:40 PM   #13
johnchristy
LQ Newbie
 
Registered: Mar 2014
Posts: 13

Original Poster
Rep: Reputation: Disabled
Thank you for the reply

>> Is it using MySql? The default server settings are very minimal. Increasing things like query_cache_size or key_buffer_size can do wonders.

Is there any guide you can link me?

Mostly I'm using prestashop, smf, wordpress etc
 
Old 03-28-2014, 03:43 AM   #14
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,263

Rep: Reputation: 297Reputation: 297Reputation: 297
Some links:

http://linuxsupportz.wordpress.com/2...ile-for-mysql/

http://stackoverflow.com/questions/6...-33ghz-1gb-ram
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
display the client Internet speed on webserver niraj.vara Linux - Server 1 12-30-2013 01:54 AM
[SOLVED] VPS - check network speed dlugasx Linux - Server 3 11-06-2012 01:08 AM
Where can I download UML VPS or Xen VPS to make a virtual private server? abefroman Linux - Software 3 12-09-2005 11:00 AM
Webserver Speed wfernley Linux - Newbie 9 08-08-2005 03:26 PM
WebServer Speed Tester! Gear_freak2000 General 1 02-08-2004 12:25 PM


All times are GMT -5. The time now is 04:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration