Running local web servers, Zend Server and XAMPP at the same time : Preparing for vocational skill contest while preserving my current localhost setting

After I changed my current laptop, I've used Zend Server for localhost web server.

I installed this because the textbook of web programing Learning PHP, MySQL, JavaScript, and CSS: A Step-by-Step Guide to Creating Dynamic Websites was using it.

Last week, I was making a mini blog program in which I can post an article on the localhost and show them through my web browser. It seemed that I had no problem with this local host environment.

Things changed when I read carefully about the invitation to Abilympics, a vocational skill contest by disabled people. I'm going to participate the division of creating web pages. The computers used in the contest will be set up so that the participant will be able to create web contents, programs and databases. I found that XAMPP will be used as local host web server in the contest, and moreover, participants have to create sample pages and presentation pages to meet certain requirements. It looks like that based on this creation, participants will continue to work on web pages to improve according to the additional requests being presented on the day of the contest. Therefore, it can be disadvantageous if I don't have XAMPP setting on my laptop.

I didn't want to change my Zend Server setting because I wanted to continue to work on the mini blog on the way. So I decided to set up to run two local web servers at the same time.

With its default setting Apache and MySQL on XAMPP wouldn't run because ones on Zend Server was already running, which caused the conflicts of ports.

I visited support sites like stackoverflow.com, and decided to change the setting of XAMPP.

First I changed the listening port of http and https to 8080 and 8443 respectively, which look like good alternative.

Second, I changed the port of MySQL on XAMPP to 3307 from the default 3306 by editing "my.ini". Many predecessor look like to choose 3307.

After these two configurations, Apache and MySQL on XAMPP ran.

There was another problem, with phpMyAdmin, web database management tool.
By its default setting, it connected the database server on Zend Server, which is using the port 3306. Reading the documentation of phpMyAdmin, I changed the port configuration of  "config.inc.php" making sure the server setting was "127.0.0.1" instead of  "localhost".

In this way, I connected to MySQL on XAMPP via localhost:8080/phpmyadmin.

I've been familiar with XAMPP especially before I buy my new laptop.
On my old laptop at home I installed XAMPP, and I also used XAMPP for testing environment at work.

Comments

Popular posts from this blog

Slow Burst

It's my lack of confidence that is to be beaten