Enable http/2 in Apache
Directadmin update httpd to support http/2
1 2 3 4 5 6 7 8 9 10 11 12 |
su - # yum update # cd /usr/local/directadmin/custombuild # ./build update # ./build update_versions # ./build set php1_mode php-fpm # ./build php n # ./build apache # ./build rewrite_confs |
Verify that http/2 is enabled via https://http2.pro/
Check these links:
- https://forum.directadmin.com/threads/http2-does-not-work.60882/
- https://forum.directadmin.com/threads/apache-2-4-27.55064/
- https://www.directadmin.com/features.php?id=1884
- https://www.argeweb.nl/vps/kb/http-2-activeren-op-centos-7-directadmin-apache-861.html
1 2 3 4 5 6 7 |
# sudo yum clean all # sudo yum -y update # sudo yum -y install memcached # sudo memcached -h |
- Edit memcached config
1 2 3 4 5 |
# sudo vi /etc/sysconfig/memcached # sudo systemctl restart memcached |
- Other commands to manage memcached
1 2 3 4 5 6 7 |
# sudo systemctl start memcached # sudo systemctl enable memcached # sudo systemctl status memcached # sudo systemctl stop memcached |
- More detailed documentation:
Directadmin (DA) add PHP memcached extionsion
1 2 3 4 5 6 7 8 |
# sudo yum install cyrus-sasl cyrus-sasl-devel cyrus-sasl-lib cyrus-sasl-plain libmemcached libmemcached-devel memcached memcached-devel # cd /usr/local/directadmin/scripts/custom # sudo wget https://raw.githubusercontent.com/poralix/directadmin-utils/master/php/php-extension.# sudo sh -O php-extension.sh # sudo chmod 750 php-extension.sh # sudo ./php-extension.sh install memcached |
Don’t forget to start Apache after these steps above are complete
1 2 3 |
# sudo systemctl restart httpd |
Recent Posts
- Enable http/2 in Apache 16th Jan 2021
- MySQL Shell 8.x 16th Jan 2021
- vi/vim tricks 30th Dec 2020
- SELinux on CentOS 29th Dec 2020
- ssh-copy-id (password less ssh login) 26th Dec 2020
- MySQL auto_increment capacity calculation 26th Dec 2020
- Using UUID as a Primary Key 24th Dec 2020
- Keycloak and InnoDB Cluster 29th Nov 2020
- How to create Column in MySQL only if one does not exist? 19th Mar 2019
- Inject empty transactions in MySQL 5.6 GTID based Replication 25th Dec 2018
- Adding a new disk to CentOS 26th Aug 2018
- mysqldump extended inserts 26th Jun 2018
- CentOS Logical Volume Manager (LVM) 26th Oct 2017
- How to prepare SD Card for Raspberry Pi on a MAC 26th Jun 2017
- Convert .dmg file on a MAC to .iso 26th Apr 2017
Categories
- CentOS (4)
- CentOS 8 (2)
- InnoDB cluster (1)
- mysql (7)
- Raspberry Pi (1)
- ssh (1)
- Technical (3)
Tag cloud
Archives
- January 2021 (2)
- December 2020 (5)
- November 2020 (1)
- March 2019 (1)
- December 2018 (1)
- August 2018 (1)
- June 2018 (1)
- October 2017 (1)
- June 2017 (1)
- April 2017 (1)
- February 2016 (1)