PDA

View Full Version : Windows IIS/XAMPP Problem



Moshambi
08-27-2008, 04:02 PM
So I wanted to start learning a bit of ASP so I got my IIS up and running and everything works fine...

Now, I want to go back to using XAMPP to do PHP but I don't know how to do this. They are both "localhost" so I tried to turn off the IIS (which I think I did successfully, but I'm not sure)... I just don't know what to do or how to get my XAMPP working again...

Any help on this would be GREATLY appreciated! Thanks!


EDIT: I just was looking and when I am in the XAMPP control panel to start MySQL and Apache, MySQL is running but when I click on Apache it starts up and then 1 second later it turns off...

codeexploiter
08-28-2008, 09:19 AM
You can use another port for the XAMPP Apache server like 8080 instead of using the default port 80. You need to change the config file of your XAMPP Apache Webserver for that purpose.

Before starting the following steps, shutdown the XAMPP Apache service if it is running.

(a) Open the XAMPP installation folder

(b) Open folder named 'apache' and then a folder name 'conf'

(c) In the 'conf' folder open the file 'httpd.conf' using any text editor like Notepad.

(d) Search for a string 'Listen 80' in the file

(e) After locating the line, change that 80 to some other number like 8080.

(f) Save the file and close it.

(g) Restart the XAMPP server.

(h) Open your browser and enter 'http://localhost:8080' (without quotes) if it shows the page properly the XAMPP server is running properly and listening on port 8080.

Now you can run IIS in port 80 and XAMPP's Apache in port 8080, the only thing is that if you try to access any webserver that listens on a port other than port 80 you'll have to mention that in the URL while trying to access any resource in that server.

Hope this helps.

clmirand
09-17-2008, 02:31 PM
PLEASE HELP!
I already did the procedure written here.
http://www.dynamicdrive.com/forums/showthread.php?t=35972
but still not successful.
I was able to install XAMPP but Apache is not working.
When click Start beside the Apache, it will display the message Running
then it will disappear.

When i tried re-starting XAMPP for the XAMPP folder, it will show a black
screen stating several text including this message.
Apache killed. Unable to open logs.

I tried running it in the Services(Local) window/folder,
but after I clicked Start, an error message displayed stating:
The XAMPP Service service on Local Computer started and then stopped.
Some services stop automatically if they are not in use by other services
or programs

When I tried running xampp-portcheck a message box displayed stating
openports.exe has stopped working.
A problem caused the program to stop working correctly.
Windows will close the program and notify you if solution is available.

Please help me. I need it badly.
I only started experiencing Apache problem after I connected in my work's server which was using asp.
Hope you could help me.

:confused:

clmirand
09-17-2008, 02:55 PM
what is WinNT Service Manager?
It says, failed to open
I tried XAMPP reinstalling w/o checking the services.
then tried to run apache_installservice from the xampp/apache folder
and the message above is what i got.
really need help very badly.

clmirand
09-18-2008, 10:24 AM
tried this but still not successful.

When i tried re-starting XAMPP for the XAMPP folder, it will show a black
screen stating several text including this message.
Apache killed. Unable to open logs.

tried running it in the Services(Local) window/folder,
but after I clicked Start, an error message displayed stating:
The XAMPP Service service on Local Computer started and then stopped.
Some services stop automatically if they are not in use by other services
or programs

tried running it in the Services(Local) window/folder,
but after I clicked Start, an error message displayed stating:
The XAMPP Service service on Local Computer started and then stopped.
Some services stop automatically if they are not in use by other services
or programs

Please help. Thanks.

========================================================

You can use another port for the XAMPP Apache server like 8080 instead of using the default port 80. You need to change the config file of your XAMPP Apache Webserver for that purpose.

Before starting the following steps, shutdown the XAMPP Apache service if it is running.

(a) Open the XAMPP installation folder

(b) Open folder named 'apache' and then a folder name 'conf'

(c) In the 'conf' folder open the file 'httpd.conf' using any text editor like Notepad.

(d) Search for a string 'Listen 80' in the file

(e) After locating the line, change that 80 to some other number like 8080.

(f) Save the file and close it.

(g) Restart the XAMPP server.

(h) Open your browser and enter 'http://localhost:8080' (without quotes) if it shows the page properly the XAMPP server is running properly and listening on port 8080.

Now you can run IIS in port 80 and XAMPP's Apache in port 8080, the only thing is that if you try to access any webserver that listens on a port other than port 80 you'll have to mention that in the URL while trying to access any resource in that server.

Hope this helps.

vendeka
10-14-2008, 01:47 PM
Moshambi wrote:
> when I click on Apache it starts up and then 1 second later it turns off...

Exit from Skype, then try again. It worked for me in the same situation.

Moshambi
10-14-2008, 05:11 PM
I ended up just getting rid of the IIS server and using xampp. I figured I should learn PHP or ASP and not both at the same time, so I stuck with PHP. But to note I don't have skype so that wouldn't have been an issue..thank you for the reply though =)