Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
I know that Apache will handle millions of page views a month just fine!
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.
Unless you're doing a LOT of traffic to your site you aren't likely to notice much of an improvement with PHP cache.
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?
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?
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.
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?
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.