Welcome guest

Please note that access of most of this forum's features, including the ability to post, access to mods and various other features require prior registration using an approved invite key.

If you are an owner,  administrator or webmaster of a website using a version of the phpLinkDirectory script, please use the contact form to request a key.

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - bruleoadmin

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 »
Hosting / Installing Free SSL Certificates
« on: 10 February 2017, 11:58:52 AM »
IMPORTANT : This post relates to the hosting that we provide using the Hepsia Control Panel.  These instructions are meant as a guide only and not a definitive tutorial as changes in hosting terms or the provision of free certificates may change at any time.

If you encounter problems, I will assist for free, ONLY where time allows, but you should understand that you use these instructions at your own risk!

These instructions were correct at the time of posting / updating and were used exclusively to install the certificates at all my own sites, including this forum.

Last updated : 17 February 2017 at 16:12 (UK)

Now that Google have started penalising websites without SSL certificates (or rather, they say, giving sites with HTTPS a ranking boost), it is becoming important that you add them to your site.

Bruleo hosting offers great value certificates, but for those that cannot see the cost justification for your site, it is a relatively easy process to install fully functional free certificates provided by Let's Encrypt.

These certificates offer full TLS 1.2, AES with 128 bit encryption (High); ECDH with 256 bit exchange

Currently, the only draw-back with adding these free certificates is that they have a three month expiry, so would need to be renewed every 90 days.

Note : Many hosts will not allow you to install 3rd-party or free certificates as they want you to spend more money with them.  Most will tell you that you need to have a dedicated IP address, or even worse, a minimum of VPS hosting to install certificates: This is total rubbish as you do not need either (although a dedicated IP is recommended). If they tell you this, tell them to get lost and move to a host that doesn't lie. Unlike most hosts, and despite selling their own certificates and IP address (both of which I provide at cost), you are allowed install 3rd-party certificates on the hosting I provide using special IP addresses that are provided with each hosting account.  Of course, if you want a dedicated IP address, you can do that too!

The following may seem daunting, but all in all, it takes less than five minutes once you've logged in and got the relevant pages up that you need.

 It will be in four parts. Part #1 and #4 only need to be done once, but unfortunately, due to the current nature of free certificates, the rest will need to be done every 90 days (although this is being discussed at Let's Encrypt and may be extended in the future).

PART 1 (Create CSR for your site) :
1) Log into your Hepsia hosting Control Panel Go to 'My Domains' >> 'SSL Certificates'
2) Choose 'CSR Requests', then ''Generate CSR'.
3) Complete the form as required (use www.southsound.co.uk as Hostname as it will cover both www and non-www versions)
4) Once generated, copy the CSR and Private Key, using the icons under 'Actions'.
(Note : The email address you provide MUST be an account set up at your host and related to your domain, otherwise the generated certificate will not be valid.)

PART 2 (Prove site ownership and generate certificate) :
5) Go to https://www.sslforfree.com/ and enter your domain in the box and hit enter.
6) Chose Automatic or Manual Verification, depending on what you prefer. (Automatic might be quicker, but I don't like entering my FTP info on sites, so prefer the Manual method).
7) Follow the instructions.
8) Make Sure 'I Have My Own CSR' is ticked and paste in the CSR content you created in Step #4
9) Click 'Download SSL Certificate'.
(Note : If using manual verification, note that the first folder you will need to create contains a dot at the beginning of the name.)

PART 3 (Upload and install certificate) :
10) In your hosting Control Panel, choose 'My Domains >> Hosted Domains', then choose 'Edit Domain' (the cog icon next to your domain in the list).
11)  In the form that opens, under IP address, choose the IP displayed under 'Available Shared IP's for SSL's'
12) Choose 'Upload SSL Certificate' under 'Secure Socket Layer (SSL).
13) Paste in the Private Key and CSR content from step #4 above.
14) Paste in the 'Certificate' and CA Bundle from sslforfree.com in the other two fields.
15) All other fields can be left as they are, Click save, wait a few seconds and it should be done.

PART 4 (Redirecting http to https) :
Once you have installed, you will need to ensure that http' redirects to 'https'. Some hosts allow you to do this within the main hosting Control Panel, but if they do not, you will need to this in your main htaccess file by adding something like* the following code after 'RewriteEngine On' :
Code: [Select]
      RewriteCond %{HTTPS} off
      RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
(* Please note that there are a great many code variations that do the same thing. Depending on what other redirects you have in place [www to non-www for example], you may need to use different code, most of which can be found online.)

An example which should work in most cases to redirect http non-www to https www would be as follows  :
Code: [Select]
	## Redirect non-www to www taking into account SSL
        RewriteCond %{HTTPS} !on [OR]
        RewriteCond %{HTTP_HOST} !^www\.
        RewriteRule (.*) https://www.yourdomain.com%{REQUEST_URI} [L,R=301]

Extending on the above, another example would be like I have at www.gateuk.com where I redirect non-www to www pages AND redirect 'index.php' pages to the main domain with https :
Code: [Select]
	## Redirect non-www to www and redirect index.php taking into account SSL
RewriteCond %{HTTPS} !on [OR]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule (.*) https://www.gateuk.com%{REQUEST_URI} [L,R=301]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ https://www.gateuk.com/ [R=301,L]
You will need to research the exact code you need for your site, as everyone's exact requirements are different. DO NOT JUST BLINDLY COPY AND PASTE THIS TYPE OF CODE WITHOUT ENSURING IT WORKS FOR YOU!

a) If you have any directs calls to images or content on your site that use http, they will ALL need to be changed to https.  If you do not do them all, security warnings may show in visitor's browsers, with some browsers blocking access completely.  Also, Google will NOT recognise any sites with their latest updates that have any security warnings caused by these.  If you use any server third-party scripts stored on your server, you may need to edit these.  Some third-party ad providers (such as PaidOnResults), still use http for a lot of their banner code. If you use these, your site will suffer from security warnings. For example, if you include a banner on your site that is located on another site's server, that image must also be served though the https protocol. If the external site is not https, then the image will either not load, generate security warnings or prevent your entire site from loading. You will therefore need to consider either removing the banner entirely, or placing the image on your server.

In short, after changing to https, ANY resource used by your site that would ultimately be loaded onto a user's computer, will also need to be using https.

To see if your site fails anywhere, simply load your browser in Chrome, FF, Edge or IE and use any of the included developer resources in that browser and they will tell you exactly where to look. From personal experience, IE and Edge are best.

b) PHPLinkDirectory Users Only : Most, if not all default installations of the PHPLinkDirectory script have poor coding that do not allow for automatic detection of https, causing things like the listing submission process to fail following certificate installation.  For any identified code changes you may need to make following certificate installation, please see the following thread :
(Note : If you find any other problems following installation of SSL on our hosting AND using any version of the phpLD script above 3,2, let me know and if it is a problem caused by the default code, I will look into it and endeavour to find a fix!)

c) Do not forget to change any admin settings if you have them to reflect the new https URL.  For phpLD scripts for example, this would be in your admin 'Settings >> Site' section.  If you find that the https version of your site is loading without any formatting, this is probably the reason. (Note, some scripts contain URL settings in files).

a) Ensure you renew your certificate several days prior to the expiry date. Since the site needs to propagate DNS around the world, any change of certificate may take 24 hours or so before the certificate shows.  From experience with this hosting, it is unlikely to be more than a few minutes to fully propagate, but it is totally possible that it could take up to 72 hours.

b) If you complete your email etc in the main form for the certificate at sslforfree.com, they will send you a reminder one week before it expires.

c) It would be advisable to copy your Private Key & CSR and store them somewhere secure. That way, if the worst happens and you lose your site and need to restore, you should be able to these to reactivate any certificate you have already created. (I'm not sure how to do this just yet, but am advised elsewhere that it can be done!)

d) When creating the certificate at sslforfree.com, be sure to add both the www and non-www version of your domain. Sometimes, certificates for the www version will work with both, but it often depends on both the certificate authority, the hosting and how it is installed.  If you redirect non-www to www (or vica-versa) then this is not that important, as long as the redirect you use works for all pages and the certificate is created for the destination domain. (Note : It is recommended you do this type of redirect as it negates duplicate content issues.)

Update History / 05 Septeber 2016 - additions (v.1.4)
« on: 05 September 2016, 05:22:42 PM »
Version 1.4 released.

Now reports the number if empty categories (without any listings).

Update History / 24 October 2014 - minor change
« on: 24 October 2014, 02:58:33 AM »
A minor change has been added to allow admin to switch on or off the filtered listing displays in the Links menu.

With this change, the mod is also upgraded to now use a central admin Mods Settings Panel to configure settings.

Update History / 24 October 2014 - minor change
« on: 24 October 2014, 02:35:36 AM »
A minor change has been made to the 4.1 to 4.2.2 version to move the two settings options for the widget from the Mod Panel settings area to the actual widget settings area itself.

The function and form of the mod has not changed.

Update History / 19 October 2014 - feature addition
« on: 19 October 2014, 06:30:47 PM »
The mod has now been updated to provide automatically generated menu options for all your link types, that when clicked will show listings for only that link type.

If you create new link types, new menu option will also be dynamically created.

The menu items also contain statistics oo you can see at a glance exactly how many listings for each type you have.

To update, please follow do the following according to your version of phpLD :

For phpLD versions 4.1 to 5.0.0
1) Download and unzip the instructions.
2) Perform the following new steps in the instructions :
  • Step 2a - To provide the additional ajax query for the link type menu item.
  • Step 3 - To provide the additional query for the link type menu item.
  • Step 4 - To perform the required function to insert your link type items into the menu
  • Step 5 - To add the filter query to the URL.

For phpLD versions 5.0.5 to 5.2.2
1) Download and unzip the instructions.
2) Perform the following new steps in the instructions :
  • Step 3 - To perform the required function to insert your link type menu items in the link menu
  • Step 4 - To add the filter query to the URL (For v5.0.5 only).

IMPORTANT NOTE : When creating this mod feature, it was found that that some of the required code already exists in some versions of phpLD, but like a lot of things in phpLD it was never used as the function was never fully completed.  This means that due to phpLD's bad habit of performing silent updates and adding code without changing the version number or even telling anyone, the mod update instructions above may not fully represent the code contained in your active version of phpLD

For example, to our knowledge, there are now AT LEAST six versions of phpLD 4.2.2 that contain different code in various places, the most recent of which contains some VERY significant changes that are incompatible with the others versions if mixed.

Therefore, if in doubt, it is always best to follow the installation instructions for mods in their entirety and ensure that code required actually exists.

Update Histroy / 17 October 2014 - minor bug fix
« on: 17 October 2014, 06:22:47 PM »
A very minor bug was identified only in versions of phpLD where the smarty library had been upgraded to the very latest version, causing pagination for the Mod Settings Panel to stop working.

This does not effect any phpLD versions unless you have manually upgraded smarty.

If the pagination for your Mod Settings Panel is not working you will need to use at least version 1.7.1 of the Mods Settings panel files, so please download the installation ZIP and re-upload both files contained therein.

No other action is regaled.

Update History / 16 October 2014 - minor bug fix
« on: 16 October 2014, 01:42:41 AM »
An error was identified in the instructions for phpLD 4.1 to 4.2.2 where the 'assign' of the link count variable was set incorrectly.  The outcome would be that free link submissions would not close automatically when you expect them to and in some installs running on more recent versions of PHP, would generate a 'PHP Fatal error:  Using $this when not in object context' type error.

To correct this error, download the installation instructions and perform STEP 5 again.

This mod for other versions of phpLD are unaffected.

Update History / 15 October 2014 - major update
« on: 15 October 2014, 11:35:04 PM »
This mod for phpLD versions 4.1 to 4.2.2 has been upgraded to now use a central admin Mods Settings Panel to configure settings.

Only applicable to installations of this mod after 15 October 2014.

This does not effect this mod any other versions of phpLD. (The mod for earlier versions still use the separate admin section for settings. For later versions, this mod is an admin task with it's own settings area).

There are now less edits to install this mod.

If you are running an earlier version of this mod and wish to upgrade to be compatible with the mod settings panel, please perform the following steps :
  • Download the installation ZIP and follow the included instructions in full. (Now only 4 steps).
  • IMPORTANT : Back up your database, then choose the SQL option in your database and run the following query :
  • Edit the following files to remove any references to the previous Directory Report installation, as they are no longer required :
    admin/init.php (2 blocks of code)
    admin/conf_options.php (1 large block near the bottom)
    include/tables.php (1 large block contained within the config array)

Update Histroy / 15 October 2014 - new feature
« on: 15 October 2014, 06:51:15 PM »
Version : 1.7

Added a new feature that enables supported mods to display some help information at the top of the mod settings page.  This is only an aesthetic addition and is not required for the mod to function, although it is recommended as all future supported mods will have 'help' information added.

To upgrade, please see the 'Upgrade' post contained within the installation thread.

Update Histroy / 20 September 2014 - PHP version compatibility upgrade
« on: 15 October 2014, 06:46:43 PM »
Version : 1.6

Added compatibility for PHP 5.5+. This is a required update if your host is running PHP 5.5 or beyond and requires an almost full reinstall of the mod (about 10 minutes work maximum).

Update Histroy / 16 June 2014 - added function
« on: 15 October 2014, 06:45:03 PM »
Version : 1.5

Added pagination functionality.

Update Histroy / 15 February 2014 - minor bug fix
« on: 15 October 2014, 06:44:24 PM »
Version : 1.4

Fixed minor problem with some data not being saved in the Mod Settings Panel when containing quotes. (For example, "That's Entertainment" would cause a whole form not to save. Although no one actually reported this as an issue, it has now been resolved.

Update Histroy / 14 February 2014 - update
« on: 15 October 2014, 06:42:53 PM »
Version : 1.3

Added automatic population of admin menu. No further need to edit admin/init.php when adding supported mods.

Update Histroy / 09 February 2014 - new features
« on: 15 October 2014, 06:41:30 PM »
Version : 1.2

a) In addition to the existing ability to edit mod configuration settings, now added ability to add, edit and list existing mod data such as Events for the Historical Events mod, or Coupon information for that advanced coupons.

b) Added ability to change the active status of mod data with a single click.

c) Added columns sort and ordering functionality to data listing table..

Update Histroy / 03 February 2014 - live elease
« on: 15 October 2014, 06:39:52 PM »
Version : 1.1

‚ó¶First live release with ability to edit mod configuration settings.

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 »