• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » APC Configuration and Optimization for Rackspace Cloud Server (PVHVM)

By Abhishek Ghosh April 16, 2014 9:58 pm Updated on April 16, 2014

APC Configuration and Optimization for Rackspace Cloud Server (PVHVM)

Advertisement

Here is a quick guide for APC Configuration and Optimization for Rackspace Cloud Server PVHVM Performance Flavor. Warranted Great Result. It is actually not possible to say from just one Page Speed Test that the website is nicely tweaked or not. On Pingdom, you can see our this website loads at 2.39 seconds :p :

Vim
1
http://tools.pingdom.com/fpt/#!/tOfoN/https://thecustomizewindows.com/2014/04/pvhvm-virtualzation-mode-faster-loading-servers/

First and foremost thing is that, webpagetest.org is the ONLY the standard, time tested, really regularly updated tool to test somewhat real experience, thats too after taking an average sampling more than 100 tests under various situation. There will be third party javascripts and other stuffs, usually from Google, which actually fails and increases the page loading speed. YSlow is definitely another great tool. Now look at this result of the same 2.39 seconds loading one on webpagetest :

Vim
1
http://www.webpagetest.org/result/140416_K1_YYX/1/details/

Well, actually its possible to lower the 2.39 seconds to 1.6 seconds ! The Bible is Yahoo!’s an excellent guide on page speed optimization which everyone knows. If we flush the buffer at regular div interval, on WordPress it will actually show the website to be very fast (this is one of the sophisticated way how the Managed WordPress Hosting, WordPress Theme Creators make the consumers fool). Also note that, webpagetest.org is failing to detect the CDNs. Except Post Attachment images (for SEO) and one CSS (for dev purpose), all static contents are actually served from Cloud Files. So, this much junk is written to make you understand few things and shake your head => How the Heck I Will Understand That My APC Configuration and Optimization for Rackspace Cloud Server for PVHVM Performance Server is Optimum?

Advertisement

---

 

APC Configuration and Optimization for Rackspace Cloud Server (PVHVM)

 

We talked about PVHVM Virtualization Mode. You probably know about guide on How To Install WordPress on Ubuntu 13.10 on Rackspace Cloud Server. That is non-scalable one server setup. We actually prefer at least one separate MySQL server and one loadbalancer in front. Loadbalancers can make the script kiddies fool plus does the HTTP caching. Managed WordPress Hosting charges a HUGE for HTTP Caching.

Back to APC. As we are basically running PHP, which is one of the worst scripting language; together with a kind of crippled MySQL (MySQL actually is not so bad like it appears after using WordPress), we actually need to Optimize the Webserver Software (we prefer Apache2 as tweak can render it more secure and stable) and the way PHP is handled.

 

Alternative PHP Cache or APC is a PHP accelerator. PHP accelerator is nothing but a PHP extension developed to improve the performance of server side software applications written in the PHP. If properly configured, it bypasses the parsing to compiling steps done by PHP for the frontend. You must know that, the way of installing APC is actually 2 or 3 in number. APC is no longer available in PHP 5.5+. The new name is Opcache. We will perform a peck install of APC.

Vim
1
sudo apt-get install php-apc

The last command to install APC will be :

Vim
1
sudo pecl install apc

If it throws error (you might have hardened PHP or many other config is different), it usually solves :

Vim
1
sudo pecl install apc-beta

You will need to install these to run that last step :

Vim
1
2
3
4
5
6
7
8
9
# two commands f
sudo aptitude install php5-dev
# and
sudo apt-get install php-pear make libpcre3-dev
# dependencies are (1) php-pear (2) php5-dev (3) make (4) libpcre3-dev
# obviously the last step
sudo pecl install apc
# restart Apache2
sudo /etc/init.d/apache2 restart

There is reason why aptitude install has been used instead of one liner :

Vim
1
sudo apt-get install php-pear php5-dev make libpcre3-dev

Search on this website if you want to know what is aptitude and what is apt-get. Open the php.ini file and add the extension :

Vim
1
2
3
4
5
sudo nano /etc/php5/apache2/php.ini
# edit, add this and write out { ^ + O }, then exit { ^ + X }
extension=apc.so
# restart Apache2
sudo /etc/init.d/apache2 restart

You will get a file here, its nice :

Vim
1
http://jesin.tk/apc-php-download/

It will show you stat plus you will understand that it is working fine. Like this :

APC Configuration and Optimization for Rackspace Cloud Server

Actually, on Ubuntu 13.10 setup, the file should be here (you need not to download in that case, just move to public folder to run it on browser), location is this :

Vim
1
/usr/share/php/

Delete the file or move to non-public area, its dangerous to keep it public. Again, open php.ini and add :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
sudo nano /etc/php5/apache2/php.ini
# edit, add this and write out { ^ + O }, then exit { ^ + X }
# add after the line you added ==> extension=apc.so
extension=memcache.so
extension=apc.so
apc.shm_size=128M
apc.stat=0
apc.ttl=3600
apc.user_ttl=7200
apc.gc_ttl=3600
apc.max_file_size=1M
# restart Apache2
sudo /etc/init.d/apache2 restart

Its for 2GB server, obviously increase 128M proportionately.

Tagged With apc configuration

This Article Has Been Shared 504 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to APC Configuration and Optimization for Rackspace Cloud Server (PVHVM)

  • WordPress SaaS : Perspective of User and Vendor Aspects

    WordPress SaaS – WordPress as a Service on Cloud Computing Platform. How it is prepared and delivered ? What is advantages for the use and aspects ? We run a limited Pilot project to deliver WordPress SaaS and WordPress VIP delivers WordPress SaaS. We are taking the readers has the basic idea about SaaS, if […]

  • Cloud Computing Categories : Cloud Computing in Layman’s Terms

    Cloud Computing Categories is purely based on the understanding of Cloud Computing in Layman’s Terms and does not follow the definitions and standards by NIST.

  • Get SSH Type Functions When Root Access is Restricted

    Get SSH Type Functions When Root Access is Restricted by Mounting your FTP location locally using SSHFS. This only can be done on some Cloud Computing Platform.

  • Cloud Computing vs Traditional Computing

    Cloud Computing vs Traditional Computing is the one of the topic most new users wants to know about. The basic reason to compare is to understand Cloud itself.

  • Cloud Computing in the Future

    Cloud Computing in the future is like the electrical power thought a century ago, computing power, storage would be available from companies with guarantee.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Is it Good to Run Apache Web server and MySQL Database on Separate Cloud Servers? March 27, 2023
  • Advantages of Cloud Server Over Dedicated Server for Hosting WordPress March 26, 2023
  • Get Audiophile-Grade Music on Your Smartphone March 25, 2023
  • Simple Windows Security and Privacy Checklist for 2023 March 24, 2023
  • 7 Best Artificial Intelligence (AI) Software March 24, 2023

About This Article

Cite this article as: Abhishek Ghosh, "APC Configuration and Optimization for Rackspace Cloud Server (PVHVM)," in The Customize Windows, April 16, 2014, March 28, 2023, https://thecustomizewindows.com/2014/04/apc-configuration-and-optimization-for-rackspace-cloud-server/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT