Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   Upgrading PHP in Local Server (https://www.warriorforum.com/programming/1217526-upgrading-php-local-server.html)

TaxMaster 12th September 2016 11:16 AM

Upgrading PHP in Local Server
 
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

fulfilledlife 12th September 2016 12:12 PM

Re: Upgrading PHP in Local Server
 
Why not to upgrade the xampp itself? From what I can see on their official website it has latest php version.

TaxMaster 12th September 2016 02:29 PM

Re: Upgrading PHP in Local Server
 
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.

Ekushey 12th September 2016 06:23 PM

Re: Upgrading PHP in Local Server
 
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.

fulfilledlife 13th September 2016 03:04 PM

Re: Upgrading PHP in Local Server
 
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.

Qquamrul 18th September 2016 12:17 PM

Re: Upgrading PHP in Local Server
 
Why are not upgrading your XAMPP server? Upgrade your xampp and enjoy updated PHP :)

sunsetcoder 19th September 2016 10:49 PM

Re: Upgrading PHP in Local Server
 
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


All times are GMT -6. The time now is 04:39 PM.