Solved

Using PHPBB and SSL

Posted on 2009-04-04
7
2,052 Views
Last Modified: 2013-11-11
Hello experts,

I'm new to use of SSL. I'm running a forum based on PHPBB3 and I'd like to implement SSL so that users are always under HTTPS when using the board. I know it might sound odd because its quite inusual to see a forum under SSL, but some of the private sections of it contain sensitive data.

Back to the point, I've googled to find an answer but nothing worked until now. Could someone write me a brief walkthrough with the steps I should follow?

Note: I already have an installed SSL certificate in cPanel server.

Thanks,
0
Comment
Question by:striker46
  • 4
  • 3
7 Comments
 
LVL 10

Accepted Solution

by:
cyberstalker earned 500 total points
ID: 24067306
I think the easiest solution is to use ModRewrite.

Place this in a .htaccess file in your phpBB main directory.
RewriteEngine On
 
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]

Open in new window

0
 
LVL 5

Author Comment

by:striker46
ID: 24067364
Thanks for your quick reply, seems to do the trick because it rewrites the URL. But now the page won't load, it displays a browser error page, giving this error code: ssl_error_rx_record_too_long

Any ideas?
0
 
LVL 10

Expert Comment

by:cyberstalker
ID: 24067440
That error indicates that https is not correctly set up on the server. I am not very familier with cPanel, but on most hosts you have to let them set up SSL for you and it cannot be done with cPanel.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 5

Author Comment

by:striker46
ID: 24067463
Yes they already set it up for me, and appears as set up in my backend. Could it be it takes a while to work? This was like 2 hours ago...

Thanks
0
 
LVL 10

Expert Comment

by:cyberstalker
ID: 24067494
SSL should not take time to set up. Could you post the error log. You can find it in cPanel.
0
 
LVL 5

Author Comment

by:striker46
ID: 24067566
Apparently there are no errors in the log as of today. The others can't be related to this. So I guess cPanel is not logging those SSL errors at all.

If you don't mind I will write a quick help ticket to my hosting support and ask them to fix this problem; I leave shortly this post open and will confirm ASAP that I've got PHPBB to work and assign the points.
0
 
LVL 5

Author Comment

by:striker46
ID: 24070388
Technical service fixed the SSL config, now it works.
The code you provided for .htaccess works perfect too, thank you very much!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question