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.

  • 2
    Sounds like your version of CentOS is brutally out of date. You'll need to upgrade the entire system to a more recent version, beause PHP 5 is way past EOL. – Shadur May 30 at 6:40
  • How can I do that? yum update just doesn't do anything. – superjesus May 30 at 6:45
  • I'm sorry. Its just that every article uses yum update so. I'll look more into that – superjesus May 30 at 6:52
  • 1
    What are you paying for? If you are paying for a server and OS, then I would expect it to be up to date. – ctrl-alt-delor Jun 18 at 7:25

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.

Not the answer you're looking for? Browse other questions tagged or ask your own question.