This forum is no longer active. Please post your questions to our new community site

Forums PhpBB

Help me get phpBB on an existing server

Subscribe to Help me get phpBB on an existing server 2 post(s), 2 voice(s)

 
Avatar kevins 7 post(s)

Hello I have an existing Windows 2003 Server with a website, mydomain.com on port 80. I’d like to install the phpBB bundle on this same server and add a DNS entry forums.mydomain.com. Can anybody help me do this? I’m sure it must be possible through the IIS host header redirecting but I don’t know how to do it.

Thanks.

 
Avatar carlos Administrator 144 post(s)

Hi,

You can follow two approaches:
1- Change IIS port to a different one != 80. Install phpBB Stack or WAMPStack + phpBB module in port 80 and using hostname “forums.mydomain.com”. Then configure Apache to redirect the request to main host to the new IIS port, adding the following to apache2/conf/httpd.conf :


<VirtualHost *>
ServerName mydomain.com
ProxyRequests off
ProxyPass / http://127.0.0.1:<iis_port>/
ProxyPassReverse / http://127.0.0.1:<iis_port>/
</virtualHost>

2- Setup phpBB on a different port != 80 using hostname “forums.mydomain.com”. Then, configure IIS to redirect the requests. I’m not familiar with IIS but something like this does the trick:
- Go to IIS Manager
- Add a new Web Site, in port 80 and with hostname “forums.mydomain.com”. If it asks you for the “path to home directory” you may setup $php_installdir/apache2/htdocs (we are going to change it to a redirection so it doesn’t really matter)
- Once the “Web Site” is created, go to its properties (left button click / properties) and set in “Home Directory” tab the option “the content should come from” to "a redirection to an url "
- Modify “redirect to” field to “http://forums.mydomain.com:8080/” (using the port where phpbb has been setup).
- Now all requests to http://forums.mydomain.com are redirected to apache server.

In both cases you may have to reconfigure the firewall to accept connections in the second port used.
Probably you can find a different IIS configuration more similar to first solution.

Let us know if it works for you.

Regards

Forums PhpBB