Solved

Using PHPBB and SSL

Posted on 2009-04-04
7
2,051 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
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.

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
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.

856 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