Update Centos Machine 5.10 to 6.5 - centos

I want to update my dedicate Centos Machine, which installed WHM. I want to know that if I do update the OS, there any changes on WHM. Like any default Setting changed? or any other Problems.
So please suggest me that right way of update Centos without any problems, because many websites hosted on this Server.
Thanks
Pankaj Gupta

Pankaj, because there are many changes in a major CentOS release you cannot upgrade from 5.10 to 6.5. You need to put together a migration plan. First install CentOS 6.5 on another server, configure httpd and php/passenger/whichever and test that each hosted website is working properly. Then you can reinstall and reconfigure everything.
Give CentOS 7 a try.

Upgrading is not possible and even if you try around doing some search you will end up wasting lot of time by fixing the dependency related errors etc. So its always better and safe to do a fresh install of CentOS 6.5 and then migrate the sites.

Related

Install PHP 7.4 through IUS Package Manager on CentOS 7

I am new to server configuration so please help me with this. I have a server with CentOS Linux 7.4.1708 installed on it. I have Webtatic package manager which does not have the PHP 7.4. There is not much on internet regarding it, if webtatic is active or dead. I can either update to Remi or IUS. Since IUS has better security our company is inclined towards IUS. I am trying to look at https://ius.io but couldn't find documentation to install it.
I want to remove webtatic package manager and PHP 7.1. Install IUS and PHP 7.4.
Please help me to install this tech stack. Thank you in advance.
First you have to update to latest CentOS 7.9.2009 to have all expected updates, including lot of security ones.
webtatic seems indeed dead, no activity since October 2019
IUS seems a bit asleep nowadays (see their wishlist... missing extensions, and some outdated versions)
Remi is the most active
Then you have to disable webtatic, by removing the webtatic-release configuration package.
For "Remi", simply follow the Wizard instructions, using "single version", it should take care of the upgrade from webtatic packages

how to install bind 9.9.8 or higher on CentOS 5.8

I am running a web server based on CentOS 5.8 and I need to upgrade my version of bind to make it PCI compliant. I'm currently running bind 9.3.6 and I need to have bind 9.9.8 or higher. I've tried yum update bind but apparently I already have the latest version according to yum. I did some Googling and I found an RPM file bind-9.10.2-1.el5.i686.rpm which looks like it would work but i don't know if it should try installing it or not. I think I would need bind-devel and bind-libs which I can get from the same site. Am I better off compiling from source? I know CentOS 5 is old but I'm trying to avoid reinstalling the whole server.
Installing binary rpm's from later versions of CentOS is unlikely to work: there are many changes since CentOS5.
Rebuilding a src.rpm locally is one way to see what issues there are.
Meanwhile, upgrading to CentOS6 (at least: CentOS7 uses systemd which takes some study) is often not a whole lot more effort than retrofitting something like bind, and will have other efficiencies. YMMV, everyone's does.

Install YII2 on Centos 7

I read that it was impossible to install yii2 on a standard hosting platform (redhat, centos...) without deleting the AssetManager.
And install is lock with it. Access refused, permission denied.... Despite the rights 777 on the assets folder.
And in default way, hack code, disable control like (is_writable) to allow continued the install process to congratulation, but without css ....
But I can't modify all the code , to use it?
They're a lot of issue about assetmanager.
I tried yii1 few years ago, and it was wonderful framework... But everything is permitted under windows. Someone tried to install it under redhat, fedora, Centos.
There is a specific configuration ... Or yii2 not builted and designed for theses environments ?
Because i found tuto about laravel 5.1, Zend 2 since 2013... But nothing about Yii2, and only one... about Yii1... on this hosting OS.
Yii2 is ready for professionnel standard hosting environnement or is just for hobbist with Wamp under Windows ? (Online tuto is in majority on this OS, with Wamp...).
And maybe for that, it's work fine... like i test under windows
Thank you for the links. I had read
Finally I found the answer, which is never explained in the tutorial above (because often disabled and the module is not present in Ubuntu or Debian)
It's SELinux security. To install Yii2 there are the following commands:
semanage fcontext -a -t httpd_sys_rw_content_t 'each folder writable'
setsebool -P httpd_unified 1
Without this open rignt, you can't install Yii2
All what Yii 2.0 requires is a Web server supporting PHP 5.4 or above.
( currently not PHP 7 due to reserved word conflict that will be solved in future releases )
And yes 5 stables versions ready for production has been released, currently Yii 2.0.5
Here is a quick example about how to install Yii2 with CentOS6 which has nothing different from what is already described in the official docs.
If you know any CentOS related issue please post them and we will discuss answers, because sincerely i just did few searches and didn't found any besides few wrong apache or nginx configurations or missing packages like this CentoOS7 case. Otherwise if you need a pre-configured & working VM with Yii2 and CentOS 7, then you may check this vagrant repo.

Xen on Centos 7

I am a newbie to Xen and want to download it on my machine which currently has CentOS7. I have been researching and experimenting for a couple of days but can't seem to find a straightforward answer on how to install a fully functioning Xen on CentOS7. I tried using the workaround at http://www.lairdscomputer.com/Blog/tabid/62/EntryId/74/Installing-Xen-4-on-Centos-7.aspx, but it seems that some of the packages it uses might be outdated.
Is it even possible to install Xen on CentOS7, even if it is missing some parts to it? Would it be better just to go back to CentOS6.x so that I can install Xen4CentOS?
Thanks in advance! Any advice is appreciated!
Afaik RedHat therefore CentOS is not supporting Xen whoever in fact it is possible.
I am using xen4centos on my Centos7 server, it was installed along with official article from wiki:
https://wiki.centos.org/HowTos/Xen/Xen4QuickStart
It it is not, please provide some logs, errors etc

Will application built on RHEL6.4 be able to run on Centos 6.4 unupdatedly

I learn that RHEL and Centos has the exact same source code. So my question here is if one application built for RHEL 6.4, could we just install and make it running on Centos 6.4 without any update?
And another question is RHEL and Centos will always use the same version number for the same source code, right?
Yes, software built on RHEL 6.4 should work as-is on CentOS 6.4 (assuming you don't depend on one of the relatively few RHEL-specific details, mostly to do with branding).
CentOS, except where necessary, uses upstream RHEL sources unmodified. When they need to modify a package they indicate that in the release notes and in the release field of the RPM in question.