logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Can Apache coexist with another local host?
Author
code-player



Joined: 20 Feb 2012
Posts: 10
Location: UK

PostPosted: Wed 22 Feb '12 13:22    Post subject: Can Apache coexist with another local host? Reply with quote

I have used WampServer/Apache/PHP/MySQL with Windows Vista for some time to test my PHP driven web sites. Wishing to try Microsoft's new WebMatrix environment, I recently installed it with MS SQLServer.

Unfortunately WampServer now no longer functions; it will load but fails to go online. Is this because of a local host or other conflict? If so, can WampServer and SQLServer be made to coexist, or must I uninstall one of them?

Any suggestions would be much appreciated.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Wed 22 Feb '12 20:52    Post subject: Reply with quote

Which error message do you get? Error log?
Back to top
code-player



Joined: 20 Feb 2012
Posts: 10
Location: UK

PostPosted: Thu 23 Feb '12 15:00    Post subject: Reply with quote

WampServer goes online properly, but when I click the icon and select 'Localhost' my browser returns the message 'HTTP404 The webpage cannot be found'.

There are no recent (in 2012) entries in either the Apache or PHP error logs.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Thu 23 Feb '12 16:32    Post subject: Reply with quote

Getting a 404 mean the server runs at least! Did you change the document root? it shows the document root from WebMatrix which is empty?

How do you indicate that the wampserver is running? When you start your wamp, do you see than 2 httpd.exe in the taskmanger running?
Back to top
code-player



Joined: 20 Feb 2012
Posts: 10
Location: UK

PostPosted: Thu 23 Feb '12 17:04    Post subject: Reply with quote

After starting wamp I checked current Applications, Processes and Services in Task Manager, and httpd.exe does not appear in any of them.

Although I have examined httpd.conf in Notepad I have not made any changes.

WebMatrix is not running, so I'm puzzled why its document root should be confused with Apache's root.

Thanks for your continuing help.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Fri 24 Feb '12 11:30    Post subject: Reply with quote

You should check which program is blocking that port. http://dl.dropbox.com/u/40218896/setups/xampp-portcheck.exe
Back to top
code-player



Joined: 20 Feb 2012
Posts: 10
Location: UK

PostPosted: Fri 24 Feb '12 15:12    Post subject: Reply with quote

I ran your link with wamp loaded, which produced the following result:

RESULT
------

Service Port Status
==============================================
Apache (HTTP) 80 Process: System
Apache (WebDAV) 81 free
Apache (HTTPS) 443 free

MySQL 3306 Service: wampmysqld

FileZilla (FTP) 21 free
FileZilla (Admin) 14147 free

Mercury (SMTP) 25 free
Mercury (POP3) 110 free
Mercury (IMAP) 143 free
Mercury (HTTP) 2224 free
Mercury (Finger) 79 free
Mercury (PH) 105 free
Mercury (PopPass) 106 free

Tomcat (AJP/1.3) 8009 free
Tomcat (HTTP) 8080 free

Sadly this means little to me. Can you deduce anything from it?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Fri 24 Feb '12 16:01    Post subject: Reply with quote

code-player wrote:

Apache (HTTP) 80 Process: System


Yepp that shows that a process with the System user is running. Like apache installed as service or WebMatrix is installed as service. You have to figure that out.

If I have to run different servers on my local computer I choose different ports. Like 8080 or so for apache. Just change the Listen 80 to Listen 8080 and start your wamp.

Well disadvantage is that you have to type http://localhost:8080/ into your browser...
Back to top
code-player



Joined: 20 Feb 2012
Posts: 10
Location: UK

PostPosted: Fri 24 Feb '12 17:19    Post subject: Reply with quote

I changed Listen 80 to Listen 8080 in httpd.conf as you suggested and added :8080 to //localhost - and all is working again!

I guess there is no simple way to amend the Localhost link in WampServer to default to //localhost:8080?

Thank you very much Mr Blond; I was shaken but not stirred!
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Sat 25 Feb '12 20:32    Post subject: Reply with quote

code-player wrote:

I guess there is no simple way to amend the Localhost link in WampServer to default to //localhost:8080?


Which default link and where? wamp usually means windows apache mysql php. If you tell me which wamp you use and which default link you mean I might can help.


Mario aka James Blond
Back to top
code-player



Joined: 20 Feb 2012
Posts: 10
Location: UK

PostPosted: Tue 28 Feb '12 15:15    Post subject: Reply with quote

When you left click the Wampserver icon on the right of the Windows task bar, a menu pops up. Clicking 'Localhost' at the top of this menu loads your default browser (IE9 for me) with http://localhost/ as the URL. I would like this to default to http://localhost:8080/.

Hope this is clear. Sorry for my delayed reply - had visitors for the weekend.
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Tue 28 Feb '12 23:24    Post subject: Reply with quote

Right-click on the Localhost icon/link in the menu and choose "Properties," then in the URL add the :8080 and OK it. Make sure to add it before the trailing /
Back to top
code-player



Joined: 20 Feb 2012
Posts: 10
Location: UK

PostPosted: Thu 01 Mar '12 18:05    Post subject: Reply with quote

When I right-click 'Localhost' in the Wampserver pop-up menu it performs exactly like a left-click; there is no pop-up menu from which to click Properties. Perhaps I'm right-clicking the wrong option. Please define exactly which icon/link you mean.
Back to top
code-player



Joined: 20 Feb 2012
Posts: 10
Location: UK

PostPosted: Mon 19 Mar '12 13:44    Post subject: Reply with quote

Still hoping for a reply on how to default to localhost on port 8080.
Back to top
rhossis



Joined: 30 Mar 2011
Posts: 9

PostPosted: Mon 19 Mar '12 21:10    Post subject: Reply with quote

code-player, not sure what version of wampserver you're using, but kindly find your wampserver configuration file which should be named wampserver.ini in your wamp directory or my documents and edit the following line by adding port 8080 to the configuration.

Code:
Type: item; Caption: "Localhost"; Action: run; FileName: "C:\Windows\explorer.exe"; Parameters: "http://localhost/"; Glyph: 5
Back to top
code-player



Joined: 20 Feb 2012
Posts: 10
Location: UK

PostPosted: Tue 20 Mar '12 16:48    Post subject: Reply with quote

Thanks rhossis.

I'm using wampserver 2.0. I did a search of the C:\ drive, but wampserver.ini was not found. However, I did find wampmanager.ini in the wamp directory, and I added :8080 to the line you suggested. I restarted wampserver, but this made no difference to the default url. When I subsequently checked wampmanager.ini this change had disappeared, so it appears that some parameter file is overriding any changes.

Sadly every time I think I understand how wampserver configuration works, it seems that I'm still missing something. Like most programmers, I really want to find out what is happening, even though it is a trivial irritation to have to add the port number each time. Any help will be gratefully received.
Back to top
rhossis



Joined: 30 Mar 2011
Posts: 9

PostPosted: Thu 22 Mar '12 23:03    Post subject: wampmanager edit Reply with quote

Hi code-player, I am actually using the old version of Wamp, It appears you are using Wampserver 2.0 or above. Please edit the file named wampmanager.tpl instead as provided by the kind wampserver members http://forum.wampserver.com/read.php?2,49031,49038 Smile
Back to top
code-player



Joined: 20 Feb 2012
Posts: 10
Location: UK

PostPosted: Fri 23 Mar '12 13:50    Post subject: Reply with quote

Success at last!!

Thanks rhossis, for your relevant and accurate solution. The general point to note is that all changes to wampmanager.ini in 2.0 must be made to wampmanager.tpl, as the former is always rebuilt from the latter on loading.
Back to top
rhossis



Joined: 30 Mar 2011
Posts: 9

PostPosted: Mon 26 Mar '12 9:27    Post subject: Reply with quote

Welcome mate Smile Good for me too, I was unaware of the tpl file as well
Back to top


Reply to topic   Topic: Can Apache coexist with another local host? View previous topic :: View next topic
Post new topic   Forum Index -> Apache