I want to run 2 XAMPP instances on a Windows 2016 server.
1 XAMPP version 3.2.4 is already running:
Now version 3.2.4 has default PHP7x running and I need PHP5 also for a website. I tried to run PHP5 on the same instance. And for this I tried to follow: Is there way to use two PHP versions in XAMPP?.
Unfortunately I could not make it work. So I went for another approach and that is installing another version of XAMPP on the same server. I went for version 3.2.2. I changed the ports like stated in this url: How to change XAMPP apache server port?
But still doesnt work. Seems that my apache is hanging. Here is a screenshot:
Can anyone help me to get the 3.2.2 running? Thanks!
Fixed it. This is how to fix it: Change Apache service name. And then, while Apache is not running, click on the red cross (in the screenshot you see a green check mark but this was a red cross first) this will install Apache. Then run localhost en go to http://localhost:8080 and now its working. Two XAMPPs running at the same time.
Screenshot of chaning the Apache service name (you can go here by clicking on the Config button which you see also in the screenshot at the upper right corner):
In services you can see that there are two Apache running now from two XAMPP installations:
Related
Short backstory: Recently I've installed MAMP as I want to start learning PHP. I got version 4.1.1 from the MAMP homepage, Apache didn't start. This seems to be a common bug for that version, I found a solution in downloading version 4.1.0. Both servers started but the Open WebStart Page didn't work.
My Problem: I wanted to try reinstalling it, I deleted the MAMP folder, as I thought that would be sufficient, instead of deleting it in the system settings. Now when I download it again and start the installer it says
MAMP setup has detected existing MAMP installation. You need to remove existing installation before proceeding. Do you want to uninstall it now?
Clicking either yes or no gives me
MAMP setup will now exit and the existing MAMP installation will not be removed.
In the system settings I find
MAMP & MAMP PRO 4.1.0 version 4.1.0 (1.47 GB)
When trying to uninstall it it gives me this error
Windows cannot find 'C:\MAMP\unins000.exe'. Make sure you typed the name correctly, and then try again.
Is there any way, other than reinstalling my whole OS, to solve this problem or do I have to turn to a different web server app?
I just encountered this problem and I hope my solution works for you as well:
Just download the .exe file into another device and install the MAMP.
After a successful installation, just copy the folder to your original device that has the problem.
And then you should find a file with a name starting with "uni" meaning it is for uninstallation. Just run that file and then everything should be fine!
I had the same problem (on OS is windows 10).
I browse the web and found a way:
You can download the ccleaner and use it, it can delete the MAMP.
I am currently running macOS High Sierra version 10.13.6.
I am trying to stop an apache server from running on my localhost port 8080. This is what I get when I load localhost:8080 in my browser: Apache / PHP server screenshot. From research and the help of others in:
How to kill Apache / PHP server running on local host port 8080? I believe that my apache installation is broken because when I run the command sudo /usr/sbin/apachectl stop, it says: cannot find specified service.
I do not ever recall installing apache or starting the server, but it could have something to do with postgres. Is there a way I can try to fix my installation so that I can find the apache instance and stop it when I run sudo /usr/sbin/apachectl stop? If it is not an installation error, I am open to hear other ideas.
The EnterpriseDB logo on the screenshot kind of hints that this is not a standard installation of Apache, but something bundled together with EnterpriseDB, and it seems to have its own control scripts.
If you are not using it and do not plan to use it in the future, the most sensible thing would be to uninstall it completely.
If you just want to stop it, try running sudo /Library/PostgreSQL/EnterpriseDB-ApachePHP/apache/bin/apachectl stop
But if you only stop it, most probably it will start again automatically after next reboot, so if you're not uninstalling it, you can at least disable it. Here's a post on SuperUser (which is where you should've asked this question instead of SO, btw) where it was discussed how to disable the PostgreSQL server.
AFAIK, Apache is started as a part of the whole thing, so it should get disabled together with it.
The post is a bit older but the steps should be very similar, if not the same (apart from the PostgreSQL version).
Hope this helps.
This is my issue and it has given me sleepless night.
I have been working on the wamp 2.1 server environment for the past 3 years and now i want to upgrade. I finally installed wamp 2.5 and would be willing to keep my previous wamp 2.1 version. everything looks good, because after installation, i did the following after:
Copied ?:\wamp_old\bin\apache to ?:\wamp\bin
Copied ?:\wamp_old\bin\mysql to ?:\wamp\bin
Copied ?:\wamp_old\bin\php to ?:\wamp\bin
Now, the issue is this:
Whenever i start the wamp server with the latest version, it works and the icon turns green. but whenever i try changing/switching back to the old version, all the services starts except the Apache. the icon stays orange and never turns green. whenever i click test port, it tells me your port 80 is not actually used. when i click on install service, i get this message: your port 80 is available, install will proceed. when i select remove service, it removes immediately. when i click start/resume service, nothing happens and it never starts.
What I want to achieve is this:
Some old joomla site were developed on the former wamp 2.1 and each time i tried accessing them via the new wamp 2.5, i see some deprecated functions and it display some chunks of codes. meanwhile, i have two projects that refuse to run on the old wamp 2.1, so i decided to run the 2.5. Presently, the system has wamp 2.5 running.
For 5 days now, i have been cracking my head and i have been stucked.. someone out there should please help me with a solution to run wamp 2.1 and wamp 2.5 together so i can switch version easily. or a probably solution will be appreciated.
Kind Regards !
You were on the right track copying the old Apache MySQL and PHP folders into the new 2.5 version.
Unfortunately switching to very old versions from the new ones is now a bit more hassle than it used to be because of the changes made in the version of compiler used to compile Apache and PHP.
Your old versions of Apache and PHP were compiled with MSVC6 and the new versions with MSVC11 and the 2 are not compatible i.e. an Apache compiled with VC11 wont run with a PHP compiled with VC6 etc.
So try this :-
Switch from Apache 2.4.9 to your old version, it wont start because the PHP version will still be 5.5.12.
Ignore the problem.
Now switch to an old version of PHP, thats compatible with the old Apache.
With luck it will now work.
Check you have the correct version by looking at phpinfo
If it does not come up re-do the switch to the old apache and then again to the old PHP by just re-clicking the version numbers on the relevant switch menu.
To be honest I don't know if it would be possible to restore everything to work fine. I had once similar problems - I had Wampserver and installed new PHP version for WAMP and switched to new PHP version and eveything stopped to work. I tried to change PHP version to the previous one but I had info it's not compatible with Apache and I couldn't change PHP version because of chosen PHP version.
Now I moved to easyPHP and it's much more easier, you can have many PHP versions, there's no problem with changing them.
Probably in your case the problem was not WAMP itself but PHP versions. That's why when you launched your older code you have many warnings. You should simple select older PHP version to do that or you simple have to turn off warning (maybe for other PHP version you had turned off displaying warnings by default?).
If I were you, I would move to easyPHP, dump your databases (if any) and move everything to easyPHP. Probably you won't make your installation of WAMPserver work so the other option is backup everything, dump your databases and reinstall WAMPserver but you can be almost sure similar problem occurs sooner or later when you will be switching between PHP versions.
After alot of brainstorming, I finally resolved the issue all by myself.
Though it may not look wise, but i believe it could go a long way to help others who are stucked in situations like this.
First, I started the wamp 2.5, changed all the versions to the latest ones, which is Apache, Mysql and Php... when the icon turned green, I decided to stop all services, uninstalled the services one after the other. (Apache and mysql) and exit the application by right clicking.
Secondly, I renamed the wamp which encapsulates the 2.5 version to wamp_2.5old and renamed the 2.1 folder back to wamp. i launched the wamp and installed the services back again..this time, it was a lower version. both php and apache had just one version while my sql had two. I made sure the right version of sql was selected and i installed it. I restarted all the services, the icon turned green and all my old website worked.
I tried the method vice-versa and all my latest projects worked. it might look challenging but thats my own way of discovering running multiple version of wamp.
Lastly, thanks to Özgür Eroğlu and Marcin Nabiałek.. they have been of helped.
Pleas help me flag this as useful for research..
vielen gluck.. good luck guys !
My OS is XP sp2. I downloaded XAMPP (new version of XAMPP 1.7.7) from apachefriends . Then installed. I read many articles and saw videos. but still I couldn't go to the 'http://localhost/xampp' .Browser says
This webpage is not available
When I started both mysql and the apache, here is a screen shot.
As all tutorials on the internet says, when I started, there is a green color label saying 'Running' infrom of the each component. Here there is nothing showed, but there is something in the console.But I can't see any php page in the browser after any related URL is typed. I m an absolute beginner for this.
New
I installed Apache 2.2 manually. Then it runs well and XAMPP shows Apache is in running. When the URL typed 'localhost', Apache's htdocs html page is appeared. So, now I assume that there is no issue in the port '80'(as the manually installed apache is running on it). I want to configure the XAMPP to work with my manually installed apache version. Any suggestion please ? Thanks in advance.
Make sure no other application is using port 80. (Skype does for example. Close Skype restart Apache).
Check if anything is running with netstat in cmd.
I am pretty new on php particularly wamp. I got to access a live wamp server. PHP version 5.2.5. But my app needs to use PHP 5.3.0, so I just uninstall wamp from live server and install new wamp with PHP 5.3.0. Now the new installed server is not getting started. On starting it gives error that
php_pdo.dll file was not found. RE-installing app could fix problem.
Also the icon is still yellow. I want to know what the problem is with server and how this fix? Also is there some thing because of previously installed wamp server?
Pleas do tell me as it was live server so I need to fix things as quickly as possible.
Having PHP 5.3 you no longer need to have to activate PDO through the php.ini file. That means you're good to go using PDO natively.
This step is not necessary for PHP 5.3
and above, as a DLL is no longer
required for PDO.
http://www.php.net/manual/en/pdo.installation.php
It means that you didn't load the PDO extension. Do a right click on the WAMP icon in your task bar and under PHP menu enable the PDO extension. Restart wamp and the problem should be solved.
Click on the wamp server icon on your taskbar, go to Apache and you will find Test Port 80 in there. That will show whether port 80 is available or not. If not, go to httpd.conf file which is in the Apache menu of wamp server, find line Listen 80. Change 80 to 88. Restart All Services in wamp and that should work. Let me know if that helped.