Avatar of doctorbill
doctorbillFlag for United Kingdom of Great Britain and Northern Ireland

asked on 

xampp and development

I have had to rebuild my machine (i7 windows 10) and need to add my php dev. platform
Is xampp ok to use a a dev platform or should I be using full blown apache, php, phpmyadmin  and mysql installs?
I will also need to be changing php versions in the install

PHPApache Web Server

Avatar of undefined
Last Comment
lenamtl
Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

Hey there,

XAMPP is reasonably OK for quick and easy development, but you are somewhat limited to the versions of the components you get. Because it's a one-click install, you may not get to choose the exact version of Apache / MySQL [MariaDB] / PHP etc. I know with WAMPServer (similar package) you do get a bit of flexibility in that you can switch between different versions of the components, but you're still limited to whatever versions are available for WAMP.

Depending on your needs and how complex your app is, it's very possible that XAMPP/WAMP will be more than suitable - it's certainly the quickest and easiest way to get your Dev stack up and running.

However, if you really need to mirror your production server (exact same versions etc), then custom building your stack would be the way to go - this gives you most flexibility, but is also more complex to set up. If you choose this route, then you'll probably want to look at Docker. It allows you to compartmentalise your indivual services (PHP / WebServer / DB etc)
Avatar of doctorbill
doctorbill
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

I was thinking of just installing the apahce, php mysql and phpmyadmin components as full installs and then configuring the various config files
Looks relatively straightforward
I assume one can change the php versions being used by editing the config files to point to a different php directory within apache?
Avatar of doctorbill
doctorbill
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

I am not familiar with Docker but I have done the above previously
Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

Yeah - you can install all of the parts individually, although like the WAMP install, you won't have full flexibility. You can certainly install different versions of PHP into different folders and the use configs to select which version.

There's certainly a learning curve to Docker, but it does offer you the most flexibility and power.

Another powerful option if you're familiar with Linux admin is to install your stack on the Linux SubSystem that comes with Windows 10. This is effectively a full Linux kernel right on your Windows machine. Again - more complex that the windows installers unless you know a little about Linux SysAdmin
Avatar of doctorbill
doctorbill
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

So it looks like xampp is the way to go initially
In xampp, how do I select different versions of php
I assume I use and configure the : httpd-xampp.conf
ASKER CERTIFIED SOLUTION
Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of doctorbill
doctorbill
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

Awesome
I will try WAMP

Avatar of David Favor
David Favor
Flag of United States of America image

What type of dev environment you choses relates to many factors.

If your designing for high speed, high traffic sites, you'll use an actual Linux machine deployed on the net, so once your project is finished...

1) Your runtime environment is already set, as you did all your dev where your site will live after deployment.

2) If #1 is true, there's no site migration step + the many complexities involved.

3) Also if you must support Apache + HTTP/2, your only option is to run Linux, either in a local VM or on a public machine/IP...

As HTTP/2 requires using an Apache MPM which is unsupported on Windows.
Avatar of doctorbill
doctorbill
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

Thanks all
Avatar of lenamtl
lenamtl
Flag of Canada image

Hi,

Wampserver is a lot better and easier to set.
I come with everything you need to start.
It come with xdebug which is very cool, it display PHP errors in a great way so it is easier to fix code.

What I like is to be able to switch easily between PHP version when updating the code to new PHP version for testing code (you can install more than one PHP version so you can switch).

Here is the page to download different version and put it in your favorite:
https://wampserver.aviatechno.net/
PHP
PHP

PHP is a widely-used server-side scripting language especially suited for web development, powering tens of millions of sites from Facebook to personal WordPress blogs. PHP is often paired with the MySQL relational database, but includes support for most other mainstream databases. By utilizing different Server APIs, PHP can work on many different web servers as a server-side scripting language.

125K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo