Jump to content

Recommended Posts

Posted

I'm trying to get IIS and apache with Joomla working in harmony together. So far i've got them both running but apache is on a different port. Ideally i'd like to have apache running on port 80 so have run through a document on how to disable the default "feature" of IIS listening on port 80 for all IP addresses and added a new IP address to the network card specifically for the apache server which pings fine so i know is active.

 

As it stands

 

1. IIS is no longer listening to port 80 on all IP addresses

2. I have the latest WAMP installation

3. I have installed the EduGeek Joomla package onto this with the default settings so my site is currently http://localhost:8075

 

I want to change this to a more relevant name like http://cvhsintranet so thought that by changing the following would sort this out for me

 

1. Edited the listen port in the httpd.conf file from "8075" to "serveripaddress:80"

2. Edited the servername in the httpd.conf file from localhost:8075 to serveripaddress:80

3. Add relevant DNS details to point cvhsintranet to the specified IP address

4. Changed the hostname in the Joomla configuration.php file from "localhost" to the server IP

 

This has not worked though. Can anyone tell me where i've gone wrong?

 

Cheers

Posted
Have you restarted Apache since you changed the config files? The "No web site is configured at this address" is usually served by IIS.
Posted
I'm trying to get IIS and apache with Joomla working in harmony together. So far i've got them both running but apache is on a different port. Ideally i'd like to have apache running on port 80 so have run through a document on how to disable the default "feature" of IIS listening on port 80 for all IP addresses and added a new IP address to the network card specifically for the apache server which pings fine so i know is active.

 

As it stands

 

1. IIS is no longer listening to port 80 on all IP addresses

2. I have the latest WAMP installation

3. I have installed the EduGeek Joomla package onto this with the default settings so my site is currently http://localhost:8075

 

I want to change this to a more relevant name like http://cvhsintranet so thought that by changing the following would sort this out for me

 

1. Edited the listen port in the httpd.conf file from "8075" to "serveripaddress:80"

2. Edited the servername in the httpd.conf file from localhost:8075 to serveripaddress:80

3. Add relevant DNS details to point cvhsintranet to the specified IP address

4. Changed the hostname in the Joomla configuration.php file from "localhost" to the server IP

 

This has not worked though. Can anyone tell me where i've gone wrong?

 

Cheers

 

You say that Apache is on a different port but when you are altering the httpd.conf file you are altering it from localhost:8075 to serverip:80 which im presuming puts it back to port 80 so surely you would need to change that to serverip:8075 or netbiosname:8075.

 

Also when you alter DNS ( not sure if this is possible but wouldn't you need to alter it so that the cvhsintranet points to serverip:8075 or netbiosname:8075 or hostname:8075 so that it points it to the correct ip address on the correct port ?

 

and also in step 4 :

 

4. Changed the hostname in the Joomla configuration.php file from "localhost" to the server IP

 

wouldn't you need to change it from hostname to server IP:8075

 

The above is presuming you still want it on port 8075 instead of port 80

 

Unless im missing something

Posted

Why do you need IIS and apache on the same server?? We do have this on our web server, Apache is on port 80, and IIS on port 8080, with a reverse proxy setup through apache to display the content from IIS through apache. The only reason I have this is our website is ASP, and it's difficult to get ASP working on Apache.

 

If yours is for simelar reasons, I suggest reading about reverse proxying in Apache as a potential solution.

 

Mike.

Posted

@webman: Yes i always restart apache after every change i make

 

@gecko: I used the command CSCRIPT ADSUTIL.VBS SET W3SVC/DisableSocketPooling TRUE to stop IIS from listening on port 80 for all IP adresses so thought that as long as i specify an IP address, i should be able to use port 80. I want to use this port rather than 8075.

 

I'm not so bothered about DNS at the moment as i can't get the first part working yet. I just added that in my list as it's what i will need to do once it's up and running.

 

I wasn't sure what needed changing in Joomla aswell as the httpd.conf file so wanted to know what i need to specify in the global configuration section. If i can get this to work on port 80 would i just need to change the hostname to serverip?

 

@SYSMAN_MK: Yes you are right.

 

My setup on the webserver currently is:

 

Two NIC's - One for Admin network and the other for Curriculum.

Two IP addresses each for Helpdesk and current intranet running from IIS so both can run on port 80

 

I have added a third IP address for the apache server hoping i can do a similar thing!!

 

I have tried browsing to the IP addresses i have for both the helpdesk and intranet but both display "No web site is configured at this address." although if i type in helpdesk or intranet they do go to the relevant sites fine.

Posted (edited)

The first listen line has a # in front of it. I thought this was a comment line so haven't changed this IP address. Should i take the # out then?

#Listen 12.34.56.78:80
Listen 80

Note: I haven't added the relevant IP address on the line with the # as i thought this was just a comment

 

ServerName has been set to

servername serverip:80

 

I'm using WampServer2.0a is this an issue with this version?

Edited by randle
Posted

I've already tried it without the # but seems to make no difference.

 

This is a list of the exact things i've changed. Maybe i've changed something i shouldn't!!

 

httpd.conf

 

From To

 

#Listen 12.34.56.78:80 Listen serverip:80

Listen 8075 Listen 80

ServerName localhost:8075 ServerName serverip:80

 

-------------------------------------------------------------------------------------

 

configuration.php

 

From To

 

$mosConfig_host = 'localhost' $mosConfig_host = 'serverip'

$mosConfig_live_site = 'http://localhost:8075' $mosConfig_live_site = 'http://svrip:80'

 

Is this right?

 

Should i use an older version of WAMP?

Posted

Ok i've changed the files to how you say but when browsing to http://serverip/administrator/index.php i just get a page with

No web site is configured at this address.

 

As mentioned by a previous poster, this page looks like it's being served from IIS!!! I have disabled the socket pooling feature in IIS so it shouldn't be serving this IP address on port 80!!

Posted

IIS is a pain in the arse. How about this:

 

Run IIS on a high port other than 80

Use mod_proxy (Reverse proxy functionality) in Apache (on port 80) to serve the IIS content?

Posted

I don't have too much experience with Apache so will need to look into the Reverse proxy functionality but at the same time IIS is working as it should be and am reluctant to play around with it after the time and problems i had when initially setting it up.

 

Saying that maybe this is the only option but would like to get these running in harmony if possible

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...