abhijit_mohanta wrote:I need to run another instance (apart from xampp) of apache on my system.
When I m starting xampp with port changed(changed httpd.conf to listen on different port).
I am getting error "another instance of httpd daemon" running.How should I start xampp.
I'm guessing you've already installed the other instance of Apache, correct?
Try stopping it, which you should be able to do using
apache2ctl stop.
Then start XAMPP, which should be
/opt/lampp/lampp start.
If XAMPP starts without any problems, check to see if you can access it via
http://localhost/ .
If so, somewhere you've missed setting the ports correctly, because it's still accessing it on port 80.
Otherwise, you should have to enter
http://localhost:1234/ , with 1234 being the new port number you specified.
If this works and port 80 didn't, I'm not sure what would be conflicting, because in theory it should work.
I haven't ever tried running two Apache servers simultaneously, so that's about all I can think for it to be.
If you need a page to be available on a different port, you might aught to look into configuring a VirtualHost in your settings file to listen on the other port instead of trying to run another instance of Apache.
You can have an Apache server that listens on multiple ports and based on what port the traffic comes in on, you can tell it what page to display. This would make more sense, unless you have a specific reason for doing it the way you're trying to do it.