$ sudo cd /home & curl -o latest -L & sh latestĭepending on the speed of your system, the installation can take from 15 to 30 minutes, because in addition to cPanel and WHM will also be installed Perl and many other components of the program. To finally start the installation, enter this command: Then set the hostname with the name of your domain. This will allow the installer to install the version we want. You can connect to it by using the PuTTY utility.Ĭreate a configuration file to install a specific cPanel version that supports Ubuntu 20.04: Step-by-step installation of cPanel on Ubuntu 20.04Ĭonnect to your server with Ubuntu installed via SSH using the credentials provided by BlueVPS. It has recently been possible to install cPanel on Ubuntu, so let's dive in to see how we can do it. The list of supported operating systems for cPanel is CentOS, RHEL (Red Hat Enterprise Linux), CloudLinux. If not, you can always look at VestaCP, Virtualmin, and other free web panels. But as with any product from a reputable company, you can take a 15 day trial period to see if it suits your needs. Of course, you have to pay for so much functionality, which may be a disadvantage for some users. These environments work together and you can manage your site in either of them - so cPanel is ideal for beginners and for developers who prefer the console rather than a nice design. In fact, the panel consists of two modules-interfaces: the graphical site management panel (cPanel) and the Web Host Manager (WHM) administration console. With its GUI (graphical user interface) cPanel covers several audiences from beginners who find it easier to click on the interface to advanced administrators who are used to working through a console. One does not work without the other, but you can manage your site in either one. Administration Console - WHM (Web Host Manager). The panel itself consists of two modules. Even a newcomer to the industry can easily figure it out. Soon I will be releasing a new mod_maxminddb tutorial for cPanel servers, stay tuned.There are several reasons for this: an impressive feature set, user-friendly interface, and good hosting reseller features. Important Note: at the time of writing this tutorial I didn’t knew there was a new MaxMind GeoIP module, you can find more about it here. Geoip.custom_directory => no value => no value The output should be something like: php -i |grep geo You can test your GeoIP PHP module by running: php -i |grep geo Restart Apache to apply changes: service httpd restart How can I test PHP GeoIP is working? Then add this code to your php.ini file, usually located at /usr/local/lib/php.ini extension=geoip.so Run this command as root: pecl install geoip However, the story doesn’t finish here, now you need to install and add PHP GeoIP extension into your system. At this time mod_geoip should be installe into cPanel and working as expected. GeoIPDBFile /usr/share/GeoIP/GeoIP.dat Memor圜ache Then copy and paste this details into your text area: LoadModule geoip_module /usr/local/apache/modules/mod_geoip.so WHM > Service Configuration > Apache Configuration > Include Editor > Pre Main Include> Select your current Apache version Now that Apache recompilation is done and that mod_geoip is an active apache module, now you need to enable mod_geoip for cPanel, as it’s there, but not enabled until you do it. Enable mod_geoip from Apache configuration That should start the apache compilation process to add mod_geoip to cPanel / WHM server. WHM > Software > EasyApache > Start customizing based on profile > Activate / Check ‘Mod GeoIP’ > then hit ‘Save and Build’. Recompile Apache to activate mod_geoipįor this we will use cPanel’s EasyApache script so this mod_geoip can become an active Apache module. Tar -C /var/cpanel/easy/apache/custom_opt_mods -xzf custom_opt_mod-mod_ 3. The following commmand will download and install mod_geoip for cPanel servers. Download, extract and install MaxMind GeoIP Database mkdir /usr/share/GeoIP & cd /usr/share/GeoIP Login to your VPS / Cloud Hosting or Dedicated server as root (if you don’t have root, you must ask your web hosting provider to install this module for you) 1. On this post today we will explore an easy way to install mod_geoip on cPanel servers.įollow this step by step instructions on how to get mod_geoip installed on your cPanel/WHM server How can I install mod_geoip on cPanel servers? It’s widely used to geo-locate your visitors to know geographical location (country, city, IP lookup, etc). Mod_geoip is an Apache module created by MaxMind.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |