I recently bought a VPS to host a Laravel website. The problem I have is that the VPS has PHP version 5.3.3 and my Laravel project is created in PHP 7.3. I tried yum update but it says that everything is up to date. Also, it doesn't update my CentOS version, which is also outdated. Installing Epel installs an outdated version also. How do I update everything properly?
closed as unclear what you're asking by Rui F Ribeiro, Sparhawk, msp9011, X Tian, roaima Jun 18 at 22:55
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
PHP 5.4 is the version packaged in the base repositories. Don’t worry about it appearing so old, it gets security fixes from Redhat despite no longer supported by PHP. But if you want/need PHP 7.x, please use the packages from SCL. Those are the most official means of using newer PHP on CentOS.
Another safe third party repository of PHP 7 packages is IUS, which is maintained by Rackspace.
Edit: fixed version of PHP in base.