How to Install and Configure Memcached with Apache and PHP

Memcached is a key-value store to cache the dynamic database calls and stores them in memory. This reduces the database load helps in speeding up the dynamic database driven websites.

In this guide you are going to learn how to install and configure Memcached in your server alongside with Apache and PHP on Ubuntu 20.04.

Choose Best Hosting for your Business.

Update your server packages to the latest.

Make sure you have followed the prerequisites guides to install Apache and PHP 8.

Memcached is available by default in the Ubuntu 20.04 repository.

Once the installation is complete you can check the status.

Now you have Memcached up and running.

Install PHP memcached module using the following command.

Restart Apache for the changes to take effect.

Create a file inside the webroot directory with phpinfo function.


Read Full Post

News Link:
RSS Link:

Linux Chatter is a news aggregator service that curates some of the best Linux, Cloud, Technical Guides, Hardware and Security news. We display just enough content from the original post to spark your interest. If you like the topic, then click on the 'read full post' button to visit the author's website. Use Linux Chatter to find content from amazing authors!

Note: The content provided has been modified and is not displayed as intended by the author. Any trademarks, copyrights and rights remain with the source.

Disclaimer: Linux Chatter sources content from RSS feeds and personal content submissions. The views and opinions expressed in these articles are those of the authors and do not necessarily reflect those of Linux Chatter.