Upgrading PHP in Local Server

by 6 replies
7
I want to upgrade my php to the newest version out for my local server (I'm running xampp) because I wanted to start learning an MVC framework but I have to have a newer version of PHP.

I have looked at a few different tutorials, tried them, and none of them have worked so far.

Anyone know how to do this?

Thanks
#programming #local #php #server #upgrading #xampp
  • Why not to upgrade the xampp itself? From what I can see on their official website it has latest php version.
  • Right that's what I was thinking too but is that going to mess up the sites I have already installed since my local sites are installed under the htdocs folder under xampp? One of the other tutorials mentioned to move all of those site files out, install new xampp, and then move them back in there. I just don't want to lose all of that data. Maybe I'll just try that.
    • [1] reply
    • Just take a backup of your database and website files. And if you use virtual hosts take apache config file for it too.

      Then when you install xampp just restore everything.
  • To be able to use PHP 7.0.9 with XAMPP, you need to update it. It is a six step process:
    1. Backup your website files.
    2. Export your databases.
    3. Uninstall the old version of XAMPP.
    4. Install the new version of XAMPP with PHP 7.0.9.
    5. Adjust PHP settings.
    6. Restore your website files and databases.
  • Why are not upgrading your XAMPP server? Upgrade your xampp and enjoy updated PHP
  • You should reinstall new version of wamp or xamp on your server and you will get new version of php. On local machine you should just reinstall it

Next Topics on Trending Feed

  • 7

    I want to upgrade my php to the newest version out for my local server (I'm running xampp) because I wanted to start learning an MVC framework but I have to have a newer version of PHP. I have looked at a few different tutorials, tried them, and none of them have worked so far.