XAMPP – Local Host Download and Initial Problems

All my work with WordPress up to now has been done on the live web.  To be able to develop a WordPress Theme from the static version of the website I needed to set up a local server so I can develop the WordPress theme locally before uploading it to the web.

I choose XAMPP a local web server because it is the most popular PHP development environment. Source https://www.apachefriends.org/index.html

It is extremely easy for developers to create a local web server for testing purposes. Everything you need to set up a web server – server application (Apache), database (MySQL), and scripting language (PHP) – is included in a simple extractable file. XAMPP is also cross-platform, which means it works equally well on Linux, Mac and Windows. Since most actual web server deployments use the same components as XAMPP, it makes transitioning from a local test server to a live server is extremely easy as well. Source https://blog.udemy.com/xampp-tutorial/

XAMPP stands for Cross-Platform (X), Apache (A), MySQL (M), PHP (P) and Perl (P).  Source https://blog.udemy.com/xampp-tutorial/

Go to XAMPP – https://www.apachefriends.org/index.html and select download for Windows, Linux or OS X.  The Udemy Blog Post helped me to download and install XAMPP – https://blog.udemy.com/xampp-tutorial/

screen-shot-2016-10-21-at-17-17-06

screen-shot-2016-10-21-at-17-16-28

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Once installed to access XAMPP your local web server open chrome and type in localhost in search bar this then brings up the XAMPP local home page (see below) and phpMyAdmin is available from here.

 

 

 

 

 

 

 

 

These are all the folders listed when ‘Open Application Folder’ is viewed:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

It is only the htdocs folder I will need to use:

 

 

 

 

Once installed you can then view and ‘Manage Servers’ from the main screen.  I found that the MySQL Database would intermittently stop running and I had to restart it sometimes unsuccessfully forcing me to restart my computer and then restart the MySQL Database which did then always start:

 

 

 

 

 

Error Log – I looked at the error log to see if I could see why the server had stopped.

To rectify this I searched forums and XAMPP support including the ‘Stackoverflow’ website for advice –http://stackoverflow.com/questions/18022809/xampp-mysql-shutdown-unexpectedly

After uninstalling XAMPP and reinstalling it I found that the MySQL Database Server now runs successfully and has not shutdown.

Advertisements