Tag: PHP
Our PHP section covers the many uses and installation of PHP across different OS'. Whether you're troubleshooting a PHP issue or installing a PHP driver, our articles are sure to help!
How to Replace PHP GeoIP with MaxMindDB
Depending on the site or application, looking up geographic information related to an IP address can be a pretty common action. When doing IP geolocation in PHP usually the PHP GeoIP extension would be used to facilitate the retrieval of this information. Unfortunately, this particular plugin is no longer actively supported and has not been updated in a number of years.
Working with Composer & Examples
In the previous articles we worked through what composer is, who uses it, and how to install it. Here we will cover some basic use case examples of how to acquire packages using the composer tool we previously setup.
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.
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.
Examples being: Silex MicroFramework, the infamous PHPMailer class, Laravel Framework, and many more - all of which can be found on Composer’s main repository Packagist.
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.
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.
- 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.
How to Install XCache on Fedora 21
- 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.
How to Install XCache on Fedora 20
- 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.
Our Sales and Support teams are available 24 hours by phone or e-mail to assist.