I've been setting up a phpbb forum, and have been encountering a bug in many of the page redirects. When someone logs in, for example, it goes to this: your domain.com:34543/index.php?sid=6bcf305366b67a83a882c2323d9ee967.
When I delete the :34543
, it loads just fine. How do I prevent this from happening?
-
What does your site configuration (config.php) look like (taking out database config strings, etc.)? Can you update your post with that? – samlev Sep 21 '15 at 13:14
-
1this must be a port configuration issue, you have to define that this is the default port – CDrosos Sep 21 '15 at 13:16
-
@CDrosos So the default port needs to be 34543? – Clifton M Sep 21 '15 at 17:33
-
@samlev I can't get to it right now, as I'm on another network right now, but I will tell you as soon as I have access to it. – Clifton M Sep 21 '15 at 17:34
-
` – Clifton M Sep 21 '15 at 22:03
-
So I figured what the problem is. It's OS X server. Some reason the Apache server is running through port 34543 instead of 443 and 80. Does anyone know how to fix this? – Clifton M Sep 22 '15 at 18:36
1 Answers
Go into /Library/Server/Web/Config/apache2/sites/ and open the 0000_127.0.0.1_34543_.conf in TextEdit. In my case, I'm using Xcode. Change <VirtualHost 127.0.0.1:34543>
to <VirtualHost 127.0.0.1>
Also note: you must enable permissions with an admin account. To do this, right click on the folder and choose get info. Scroll to the bottom and click the lock to authenticate. In permissions change read only to read and write. Do this for the files, too.
EDIT:
I forgot to add that you need to restart web services in order for the fix to take effect. I'm sorry to the people that I lead wrong, as I was distracted while writing this.
Note:
You will need to do this for every time that you update server. It is also a good idea to do this with the .default file, too

- 1
- 3