Solved

Using PHPBB and SSL

Posted on 2009-04-04
7
2,049 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
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 
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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
.htaccess 5 39
javascript: add id amounts 5 47
Decrypt string by php 7 32
Doing something wrong with this PDO Select Statement... 3 11
This article discusses four methods for overlaying images in a container on a web page
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

821 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