I install XAMPP in c:\xampp and launch XAMPP control panel, then run all services over there. All services except Apache module correctly run. I think main port for Apache conflicts with another services in Windows. For this reason I change Apache main port from 80 to 81, but this does not solve the problem.
Have you tried to change the apache configuration file(http.conf) to Listen to the new port(81)? Navigate to the file via the xampp control panel and search for 'Listen 80' and then change it to listen to 81.
Related
I have Installed Miria server (in vmware with server windows os) which comes with it's own apache server installed.
Now I want to install Xampp, but it shows the ports conflict with the previous Miria apache server. I have changed the server ports from all possible files (httpd, httpd-ssl, xamp->config main port and ssl port as well), but after changing this I dont get any error.
However I only see message apache service is starting in xampp control panel. Please help me here! unable to start apache server in Xampp.
11:05:16 AM [Apache] Apache Service detected with wrong path
11:05:16 AM [Apache] Change XAMPP Apache and Control Panel settings or
11:05:16 AM [Apache] Uninstall/disable the other service manually first
11:05:16 AM [Apache] Found Path: "C:\xampp\apache\bin\httpd.exe" -k runservice
11:05:16 AM [Apache] Expected Path: "c:\newxampp\apache\bin\httpd.exe" -k runservice
11:05:16 AM [mysql] MySQL Service detected with wrong path
11:05:16 AM [mysql] Change XAMPP MySQL and Control Panel settings or
11:05:16 AM [mysql] Uninstall/disable the other service manually first
11:05:16 AM [mysql] Found Path: C:\xampp\mysql\bin\mysqld.exe --defaults-file=c:\xampp\mysql\bin\my.ini mysql
11:05:16 AM [mysql] Expected Path: c:\newxampp\mysql\bin\mysqld.exe --defaults-file=c:\newxampp\mysql\bin\my.ini mysql
11:05:16 AM [mysql] Problem detected!
11:05:16 AM [mysql] Port 3306 in use by "C:\xampp\mysql\bin\mysqld.exe --defaults-file=c:\xampp\mysql\bin\my.ini mysql"!
11:05:16 AM [mysql] MySQL WILL NOT start without the configured ports free!
11:05:16 AM [mysql] You need to uninstall/disable/reconfigure the blocking application
11:05:16 AM [mysql] or reconfigure MySQL and the Control Panel to listen on a different port
I want to run 2 xampp on my local server I have install one following the normal installation the other one I changed the folder name to newxampp. I have changed the ports being used by second xampp in httpd.conf as well as the mysql ports.
Questions is why the xampp apache and mysql of the second xampp is not running and getting the above error.
Reason for installing 2 xampp:
I have done projects running in 5.5 php and currently I want to learn to use zend framework but I cant install composer because it needs 5.6 php and up so I installed new xampp with 7.0. I cant just update the old xampp because I have many project using the old version and its hard to update for now
Xampp versions are :
one is v3.2.1 other is v3.2.2
You can change the port both servers
80 8080 3306 3307 if you want run servers the same time
I suggest you to use virtual hosts to manage multiple versions of PHP.
With virtual hosts you can configure your PHP version that should be used with a specific "htdocs" sub-directory.
This was already answered before here:
Is there way to use two PHP versions in XAMPP?
A workaround may be to install Apache/mysql/php separately instead of the package running a different version.
When I had wamp running I did this and Apache server for both were running.
Google how to Install separately
You can.
Just change the ports
and you can use one MySQL for both
in my case they are of different versions,
XAMPP 3.2.2 and XAMPP 3.2.1 running different versions of mySQL an PHP.
My point is the versions differences may be the reason why it works for me perhaps because of the processes names in the OS.
I have seen this question asked on multiple occasions, but many times the missing clue is not mentioned. Changing the ports is not enough.
If you rename the xampp folder to something else, you need to run <xamppdir>/setup_xampp.bat to make the new xampp dir work
Excavating long dead thread for anyone who tried to do the same, running two instances of Xampp on the same local machine.
These logs say you're trying to start services (https and mysql) but these are already installed - check your services.msc (Apache2.x and Mysql are already there and they belong to first Xampp instance, check binary paths).
You need to manually install required services and change their names at Control Panel.
Run elevated cmd, cd into second instance of your Xampp and install services manually.
For httpd, assuming it is in c:\xampp2 and new name is "Apache2.4_1"
cd \xampp2
cd apache\bin
httpd -k install -n "Apache 2.4_1"
C:\xampp2\apache\bin>httpd.exe -k install -n "Apache2.4_1"
Installing the 'Apache2.4_1' service
The 'Apache2.4_1' service is successfully installed.
Testing httpd.conf....
(my failed here due to some syntax errors generated by lack of coffee)
Next you run control panel (from secondary instance), click "config" in upper-right corner, then "service and port settings" button. In the last window input values as shown at screenshot, save. Then, change your ports in httpd* configs. Start apache, #profit.
Repeat for other services that start as services.
For clarification, I only run two httpd this way. For other services you need to find right cmdline to install service with different name as in httpd and register it in Control Panel with changed names.
You can simply delete or stop the apache service (apache2.4) from services in using run > services.msc. And then try to start apache from the xampp control panel.(In my case delete worked.)
Recently, I installed xampp 5.6.3 successfully. For this, I turned my UAC off and uninstalled my antivirus, but now it's not working. From control panel, I started Apache, MySQL and filezilla. For my Skype I changed the port of Apache from 443 to 4433. And now it's running.But whenever I got to browser and go to http://localhost it shows a blank page with nothing.So please help me.It is hampering in learning PHP. I will be really thankful.
Thanks.
If you changed the Apache port from 443 to 4433, then you need to change your URL accordingly:
http://localhost:4433
Note: you can use netstat from a command prompt to see if the port is running.
netstat -a | find "4433"
http://technet.microsoft.com/en-us/library/bb490947.aspx
I was trying to install XAMPP on my windows machine and while it is installing it says installing Apache server failed because port 80 and 443 are already in use.
Since Skype is also using this port, i have uninstalled Skype and started re-installing XAMPP server.
But still after uninstalling Skype i get the same error message when XAMPP server is installing. Could someone has faced this issue before share your ideas with me
Thanks in advance for any help
At a command prompt type
netstat -a -n -o
to see which process is using the ports.
It's probably IIS if you've got that installed.
One way to fix it is to specify non-standard ports for XAMPP to use, such as 8080 and 8443.
Have You IIS Service running?
just check that IIS Service, when it running just stop it, you can stop it from Computer managment > Services
I have run into a problem. I do both pHp development and JSF development. But i ran into a problem. You see, a while ago I installed Apache2 so that I could do pHp. But then a month later I had to install Apache Tomcat. That's when the problem arose. I followed all the instruction give on the tomcat.apache.org site for Ubuntu. It did not install. And 127.0.0.1 always pointed to Apache2's page. I tried 127.0.0.1:8080 but that did not return anything.
So I am here to ask you if there is anyway I can turn off Apache2 when i want to work with Tomcat? And turn it back on whenever I want?
The two servers should be configured to listen on different ports if you want them both available on the same host.
Instructions for changing ports for Apache2 on Ubuntu
Instructions for changing ports for Apache Tomcat on Ubuntu
Now, if you've configured Apache to listen on 80 and Tomcat to listen on port 8080, you should be able to access them at http://localhost:80 (or just http://localhost) and http://localhost:8080 respectively.
You should ensure both the servers are actually up as well. netstat -npl | grep :8080 and netstat -npl | grep :80 should help you identify what processes are bound to these two ports. If the ports are bound but don't say java or apache2, you've got some other process listening on these ports and that's going to stop the server that tries to bind to that port from starting up.
For Apache2, you could also run service apache2 status to see what the status is.
If however, you want to run both servers bound to the same port( perhaps 80) then as you seem to have guessed, you'll have to stop the other.
To stop Apache2, execute the command service apache2 stop
Stopping Tomcat depends on how you started it. You might simply run the shutdown.sh script in ${CATALINA_HOME}/bin i.e. the bin directory in your Tomcat installation folder.
Note
You will [probably] need to execute the commands as root so you'll need to prefix sudo.