Installing Composer on cPanel servers

With a tool like Composer it is generally best to have the ability to run it as any user on the server and from any directory. This is generally referred to as being ‘globally installed’ as any user can access the tool from any location. In this guide we will detail how to install Composer globally on a cPanel based server. Continue reading “Installing Composer on cPanel servers”

Composer 101

Composer is a dependency manager for PHP, written in PHP. Specifically, it’s used to simplify the process of using PHP libraries in your projects. The use can range from getting a framework, including a library class, or open source projects; generally these packages are downloaded by Composer and then implemented by a developer in a website’s code. Continue reading “Composer 101”

Fully Managed Templates Now Optimized with FCGI

Your fully managed cPanel server has several different PHP handlers from which to choose, including DSO, SuPHP, and FCGI. These handlers are responsible for reading/interpreting PHP code, then compiling and executing it.

Selecting the best PHP handler for your server is critical to overall performance, but it’s not always an easy choice to make. While FCGI currently is the best-performing PHP handler available on cPanel, it can be somewhat difficult to properly configure.

Since we’re the best Managed Hosting company around, we decided to take care of the initial configuration for you to help make your decision that much easier.

Liquid Web has spent the past few months optimizing FCGI settings to achieve the best performance gains possible while lowering resource utilization and further improving stability. Today, we’re thrilled to announce that we’ve updated our Fully Managed CentOS 6 and CentOS 7 templates to include these optimizations by default!

What type of performance gain does FCGI provide over SuPHP? We’re glad you asked!

To measure performance, we installed a default WordPress site on a Zone C 16 GB Storm VPS, then used Apache Benchmark to hit the server with 10 concurrent connections, and a total of 1,000 requests.

PHP with FCGI and OPcache performed 5 times faster than suPHP in this simpla Apache Benchmark test

With SuPHP as the PHP handler, we were able to get around 30 requests per second. Once we switched the PHP handler to FCGI with our optimizations (which include enabling and configuring OPcache), we were able to get more than 150 requests per second! In this case we saw a 500% increase in performance!

These optimizations are not reserved for new Storm® VPS and Dedicated servers, either. If you have an existing fully managed cPanel server and would like to take advantage of the performance gains FCGI and OPcache can bring to your sites, let us know! Our Heroic Support® technicians can quickly examine your server’s current settings and walk you through any changes necessary to help your server realize its full potential with FCGI and OPcache.

How to Install XCache on Ubuntu 15.04

Pre-Flight Check

  • These instructions are intended specifically for installing XCache, an open-source opcode cacher, on Ubuntu 15.04.
  • I’ll be working from a Liquid Web Self Managed Ubuntu 15.04 server with Apache and PHP installed, and I’ll be logged in as non-root user. If you need more information then visit our tutorial on How to Add a User and Grant Root Privileges on Ubuntu 15.04.

Continue reading “How to Install XCache on Ubuntu 15.04”

How to Install XCache on Ubuntu 14.04 LTS

Pre-Flight Check

  • These instructions are intended specifically for installing XCache, an open-source opcode cacher, on Ubuntu 14.04 LTS.
  • I’ll be working from a Liquid Web Core Managed Ubuntu 14.04 LTS server with Apache and PHP installed, and I’ll be logged in as non-root user. If you need more information then visit our tutorial on How to Add a User and Grant Root Privileges on Ubuntu 14.04 LTS.

Continue reading “How to Install XCache on Ubuntu 14.04 LTS”

How to Install XCache on Ubuntu 12.04 LTS

Pre-Flight Check
  • These instructions are intended specifically for installing XCache, an open-source opcode cacher, on Ubuntu 12.04 LTS.
  • I’ll be working from a Liquid Web Core Managed Ubuntu 12.04 LTS server with Apache and PHP installed, and I’ll be logged in as non-root user. If you need more information then visit our tutorial on How to Add a User and Grant Root Privileges on Ubuntu 12.04 LTS.

Continue reading “How to Install XCache on Ubuntu 12.04 LTS”

How to Install XCache on Fedora 21

Pre-Flight Check
  • These instructions are intended specifically for installing XCache, an open-source opcode cacher.
  • I’ll be working from a Liquid Web Self Managed Fedora 21 server with Apache and PHP installed, and I’ll be logged in as non-root user. If you need more information then visit our tutorial on How to Add a User and Grant Root Privileges on Fedora 21.

Continue reading “How to Install XCache on Fedora 21”

How to Install XCache on Fedora 20

Pre-Flight Check
  • These instructions are intended specifically for installing XCache, an open-source opcode cacher.
  • I’ll be working from a Liquid Web Self Managed Fedora 20 server with Apache and PHP installed, and I’ll be logged in as a non-root user. If you need more information then visit our tutorial on How to Add a User and Grant Root Privileges on Fedora 20.

Continue reading “How to Install XCache on Fedora 20”

How to Install XCache on CentOS 7

Pre-Flight Check
  • These instructions are intended specifically for installing XCache, an open-source opcode cacher.
  • I’ll be working from a Liquid Web Core Managed CentOS 7 server, and I’ll be logged in as non-root user. If you need more information then visit our tutorial on How to Add a User and Grant Root Privileges on CentOS 7.

Continue reading “How to Install XCache on CentOS 7”

How to Install the Memcached PHP Extension on Fedora 21

Memcached is a distributed, high-performance, in-memory caching system that is primarily used to speed up sites that make heavy use of databases. It can, however, be used to store objects of any kind. Nearly every popular CMS has a plugin or module to take advantage of Memcached, and many programming languages have a Memcached library, including PHP, Perl, Ruby, and Python. Memcached runs in memory and is thus quite speedy since it does not need to write data to disk.

Pre-Flight Check
  • These instructions are intended specifically for installing the Memcached PHP Extension on a single Fedora 21 node.
  • I’ll be working from a Liquid Web Self Managed Fedora 21 server, and I’ll be logged in as root.
  • Follow our tutorial on How to Install Memcached on Fedora 21 prior to this KB!
  • Apache and PHP must be installed.

Continue reading “How to Install the Memcached PHP Extension on Fedora 21”