Solved

Using PHPBB and SSL

Posted on 2009-04-04
7
2,045 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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Imagine a situation that you have installed SSL (http://en.wikipedia.org/wiki/Secure_Sockets_Layer) Certificate on your Cisco ASA (Cisco Adaptive Security Appliance) firewall. Installation of SSL certificate on ASA is an another topic for which you …
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now