Howdy!
So I was actually going through the Forums... Went through some posts discussing about SSL Certificates for phpVMS.
You don't actually need any Module to force SSL. Just need to edit some lines of Codes
So I'll tell you how to use phpVMS 5.5.x with SSL so that your Login Data is Secured. Please NOTE I have divided this Tutorial into two Parts, One for New Installers and another for the who are already using phpVMS.
FOR PEOPLE WHO ARE INSTALLING PHPVMS FOR THE FIRST TIME
1) Install SSL on Domain (First Things First)
2) Install phpVMS in root, subfolder (You can even make it a Subdomain Like https://phpvms.domain.com)
3) Trigger phpVMS, and Navigate to install.php
4) This Part is very important. By default phpVMS will use http in the VA URL. Make sure you change it to https
5) Enter every other field as normal.
6) After you finish installation, you might encounter a weird layout. That's because the elements, jquery, maps etc are being called over HTTP instead of HTTPS... Ignore this, We will fix this in further steps...
7) Now what you need to do is navigate to the folder where phpVMS is installed. Go to admin/templates/core_htmlhead.php, then replace the following scripts
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.0/jquery-ui.min.js"></script>
<script type="text/javascript" src="<?php echo fileurl('lib/js/jqModal.js'); ?>"></script>
<script type="text/javascript" src="<?php echo fileurl('lib/js/jquery.form.js'); ?>"></script>
<script type="text/javascript" src="<?php echo fileurl('lib/js/jquery.bigiframe.js'); ?>"></script>
<script type="text/javascript" src="<?php echo fileurl('lib/js/jquery.metadata.js'); ?>"></script>
<script type="text/javascript" src="<?php echo fileurl('lib/js/ckeditor/ckeditor.js'); ?>"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>
<script type="text/javascript" src="<?php echo SITE_URL?>/admin/lib/phpvmsadmin.js"></script>
with these
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.0/jquery-ui.min.js"></script>
<script type="text/javascript" src="<?php echo fileurl('lib/js/jqModal.js'); ?>"></script>
<script type="text/javascript" src="<?php echo fileurl('lib/js/jquery.form.js'); ?>"></script>
<script type="text/javascript" src="<?php echo fileurl('lib/js/jquery.bigiframe.js'); ?>"></script>
<script type="text/javascript" src="<?php echo fileurl('lib/js/jquery.metadata.js'); ?>"></script>
<script type="text/javascript" src="<?php echo fileurl('lib/js/ckeditor/ckeditor.js'); ?>"></script>
<script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=true"></script>
<script type="text/javascript" src="<?php echo SITE_URL?>/admin/lib/phpvmsadmin.js"></script>
😎 Now what you need to do next is Go again to the folder where phpVMS is installed. Navigate to your skin's Folder. Open your Skin's Layout.php and change all the http to https
9) Save them and Now open core/templates/core_htmlhead.php and replace the following lines
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>
<script type="text/javascript" src="<?php echo fileurl('lib/js/jquery.form.js');?>"></script>
<script type="text/javascript" src="<?php echo fileurl('lib/js/phpvms.js');?>"></script>
with
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
<script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=true"></script>
<script type="text/javascript" src="<?php echo fileurl('lib/js/jquery.form.js');?>"></script>
<script type="text/javascript" src="<?php echo fileurl('lib/js/phpvms.js');?>"></script>
Thats All! Now Save Everything and Run Your Website on a Secured Server xD
FOR EXISTING PHPVMS USERS
1) Open core/local.config.php
define('SITE_URL', 'http://mydomain.com');
Change it to
define('SITE_URL', 'https://mydomain.com');
Now Repeat the Steps 7, 8 and 9 Mentioned Above!
Done. Hope this Helps you Guys
Sincerely
Aaryan Kapoor