How to Downgrade From MariaDB 10.2 to 10.1 on a cPanel Server? - cpanel

I've installed MariaDB 10.2 on a cPanel server using this procedure:
https://confluence2.cpanel.net/display/CKB/How+to+Replace+MySQL+with+MariaDB
But now, I want to downgrade to 10.1 since 10.2 isn't handled by cPanel / WHM.
I know it's technically impossible to "downgrade" so I want to uninstall 10.2 and then install 10.1 from WHM. I will restore the database from a SQL dump afterward.
Any way to do this? How do I uninstall 10.2 and get WHM to install 10.1? I want cPanel/WHM to handle the future MariaDB upgrades.
Thanks in advance!

It's quite strange you were able to install MariaDB 10.2 since the upgrade procedure from WHM only allows you to install MariaDB 10.x or MariaDB 10.1.x. If that happened then you probably have other CentOS repos added on the WHM server (like rpmforge/epel etc).
Do you experience any issues with the websites hosted on that server because of MariaDB 10.2 or you just want to be complaint with the recommended versions?!
As a downgrade procedure you will have to manually remove the .rpm packages for MariaDB 10.2 then download the MariaDB 10.1 packages and manually install them (you will need the yum download only plugin in order to save the .rpm packages without actually installing them).
I don't know the exact names of those packages but I think it would be better to open a support request on cPanel forums and the cPanel staff guys from there could connect to your server and help you with your issue.

Related

odoo15 enterprise edition installation in Linux VPS server

I am trying to install odoo15 enterprise edition on a Linux VPS server , But I'm facing many issues during installation .
Can you guys help me with a clear guidelines about the installation process?
If you are using an Ubuntu server, you can use an installation script to easily install Odoo.
You can find an installation script from Yenthe over here
I have a slightly modified version of the same script over here

How to downgrade version from 4.5.X to 4.4.X

I upgraded the mettermost version from 4.4.1 to 4.5.
However, I got the error...
So, I tried to downgrade the version to 4.4.1, but the mattermost said "The database schema of the older version isn't supported".
Does anyone know how we should modify the database schema.
※browser: FireFox ESR 52
Unfortunately you can't downgrade a Mattermost install to a previous version through any officially supported path. You will need to revert to the database backup from before the upgrade in order to go back to version 4.4.
However, for the specific versions in question (reverting from 4.5 to 4.4) it is possible to do a downgrade as there are no database schema changes between these two versions. You will need to run the following SQL command in your Mattermost database:
UPDATE Systems SET Value='4.4.0' WHERE Name='Version';
You should then be able to run Mattermost 4.4.1 successfully on that database.

Run MS SQL Server Express on Linux Mint

I am aware that MS SQL Server 2016 is compatible with Linux. Despite this flavor of SQL, I am needing to run SQL Express for training purposes. Is there a method to successfully operate Microsoft SQL Server Express in the Linux Mint environment?
I think this is an interesting question and shouldn't be marked down. After searching online, i came up with his tutorial on setting up mssql server on linux. I tested on linux mint 18.1.
http://www.tecmint.com/install-ms-sql-server-centos-ubuntu-linux/
I installed MSSQL 2016 on Ubuntu last night. Mint is Debian based so it 'might' work. The instructions are here ...
https://learn.microsoft.com/en-gb/sql/linux/sql-server-linux-setup-ubuntu
The installation process is very simple - in fact it literally took seconds, since it uses the familiar apt-get install package manager install which is available with Mint. One thing to be aware of is the requirement for openssl needs version 1.0.2 - this caught me out. I tinkered around trying to upgrade to the correct version on my ubuntu server and did have the correct version installed but MSSQL still would not install. So I created a 16.04 version of ubuntu and then it installed easily. I'm not sure if my comments qualify as an 'answer' but I'd just try and install it as if you have the dependencies I would think you'll be okay.

Apache version 2.2 and security vulnerabilities

A penetration test has recently identified that one of our RHEL(6.7) servers running Apache 2.2.15 is vulnerable on a number of points and needs to be updated to the latest version 2.4. I have run yum update and it says that there are no packages marked for update. I understand that I will need to download the updates manually. There are a few questions I have around the requirement to upgrade Apache.
I am up to date on the 2.2 version tree. Does this mean that any security patches made to version 2.4 will be back patched to version 2.2.X as well?
I am running PHP (version 5.3.3) and MySQL (version 5.1.73) - will these be affected by upgrading the Apache version (Google tells me that there is no problem on both fronts - but I thought I'd ask before I started down this route).
If you experts tell me that I have no other choice but to upgrade, then I'm planning on using the instruction set here: https://unix.stackexchange.com/questions/138899/centos-install-using-yum-apache-2-4
Thank you in advance for your advice.
You could download the 2.4 source code from the Apache site and compile it. There's a setting which will configure for RedHat:
--enable-layout=RedHat
This setting will configure the paths for executables, configuration files, libraries etc in one go.
The following should be a reasonable starting point for a configuration line:
sh ./configure --enable-layout=RedHat --enable-mods-shared=all
then perform a make and make install
Do the same with a newer version of PHP (5.3.29 is available in the "old downloads" section, but try a newer version. Check the changes first though) and your problems should be lessened. Finally, MySQL or MariaDB is available for download and compilation too
Obviously, try all of this on a test machine first and back everything up. Your test machine should be as close as possible to your production machine. If you use something like VirtualBox to try it, you can take a snapshot at each point of the process and rollback if something goes wrong

CPanel and WHM php version change

I have just installed WHM Cpanel on Centos 7
The PHP version is 5.5 is there any way you can downgrade the version to 5.3?
Yes, You can downgrade it if you want php 5.3 version. Please try to run easyapche scripts on your server through command line OR You can run recompile php on your server through WHM, easyapche options