Joomla | Database Error: The PHP `ext/mysql` extension is removed in PHP 7, cannot use the `mysql` driver
This error shows up when you change/upgrade the PHP version of your Joomla website to PHP 7.XX. This is because the mysql extension is removed in PHP 7. You may need to change all those functions in PHP code to mysqli_* instead of mysql_* if you want to use PHP 7 for your Joomla website. […]
Subdomain not inheriting PHP version of the main domain | Litespeed issue on cPanel
As you know, in cPanel Multi PHP Manager platform, it does support the ‘inherit’ method between the addon domains/subdomains and its main/primary domain. When you set an Addon domain(if down to the level of main domain’s document root) or Subdomain to use the Inherit option, Apache uses the PHP version that exists in the first […]
Prefer/Precedence IPv4 over IPv6 for DNS lookups
We had an issue with DNS lookup/Querying the whois servers(Example: whois.crsnic.net) while Domain Search/Registration for any TLDs through WHMCS, Domain Manager etc. The tool/system used to timeout whenever the users searched a domain for availability. We found the following via CLI when telnet’ing to the whois server directly. The above indicates it attempts IPv6 DNS […]
How to clean up a hacked server from the Exim vulnerability CVE-2019-10149 | Temporary workaround | cPanel
The recently reported Exim 4.87 to 4.91 versions vulnerability CVE-2019-10149 is of very intense. Many host servers have already been hacked by now. For the host which is clean by the Gods grace and are still running on the vulnerable Exim and outdated cPanel versions, it is highly recommended to upgrade the cPanel to get […]
cPanel domlogs/Webserver Access logs are showing only local server IP addresses
This happens when we have a reverse proxy Nginx->Apache set up on the server. To be precise, when the Apache based website is behind the reverse proxy(Nginx). In such cases, we may see the accessing IPs on the website access logs as server’s local IP address itself. This behavior is because the reverse proxy or […]
Increase TimeoutStartSec for Apache on a Centos7/RHEL7 server
For this, increase its value in the following file. Adding it in seconds. So convert minutes to seconds first. Use TimeoutStartSec, TimeoutStopSec or TimeoutSec to specify how long the timeout should be for starting and stopping the process.
Enable systemd to allow MySQL to be in /home directory
There are many cases systemd doesn’t allow the MySQL to work from a new/custom data directory path. It still restricts the path and stick to the default /var/lib/mysql even if we try to change it. To override this, disable ProtectHome on the following file.
Create WHM root session from command line
If you do not know the server root password but you have access to the server backend using SSH key as the root user, then you can always launch temporary root WHM instance from the CLI with : It will generate a WHM URL and you can copy/paste it on a new web-browser tab to […]
Liblua error: relocation R_X86_64_32 against `luaO_nilobject_’
The full error will be like as below: ———————— /usr/bin/ld: /usr/local/lib/liblua.a(lapi.o): relocation R_X86_64_32 against `luaO_nilobject_’ can not be used when making a shared object; recompile with -fPIC /usr/local/lib/liblua.a: could not read symbols: Bad value ———————— I got the above error in between easyapache. It’s pretty sure lua is present in server but something went unoticed […]
Error while loading shared libraries: liblua.so
I got this liblua error while apache,php recompilation. At first I tried to find the dependencies of lua # ldd `which lua` linux-vdso.so.1 => (0x00007fff1dd7d000) liblua.so => not found libreadline.so.6 => /lib64/libreadline.so.6 (0x0000003b68800000) libncurses.so.5 => /lib64/libncurses.so.5 (0x0000003b68400000) libm.so.6 => /lib64/libm.so.6 (0x0000003b68000000) libdl.so.2 => /lib64/libdl.so.2 (0x0000003b67800000) libc.so.6 => /lib64/libc.so.6 (0x0000003b67400000) libtinfo.so.5 => /lib64/libtinfo.so.5 (0x0000003b6a400000) /lib64/ld-linux-x86-64.so.2 (0x0000003b67000000) […]