7 41 drupal hosting

2013-07-23 1:22 pm EST

Thanks for the question! Yes, you can use a shared SSL certificate. The Shared SSL certificate is preset, so there is no configuration done on the server side. Please review our article on Shared SSLs in order to determine the URL that you would use for your site. Note that a shared SSL is NOT the same URL as the URL that you have setup for your site initially. So, you may need to also set a base URL setting in the settings.php file of your Drupal installation. I found the following instructions with someone who had also asked the same thing in forums online:

7 41 drupal hosting base URL setting

  1. Determine your shared SSL (as per the article above)
  2. Once you know your Shared SSL URL, you will need to determine your Drupal installation directory as it applies to the shared SSL. For example: If your ssl path is https://bizXXX.inmotionhosting.com/

username, and you installed your Drupal site in a folder called 'Drupal', then your path would be https://bizXXX.inmotionhosting.com/

username/Drupal. If you installed your site to the default directory (public_html), then you would not need to change the shared SSL path - it would remain https://bizXXX.inmotionhosting.com/

username.
  • Edit the settings.php file in your sites/default folder
  • Follow the directions to allow Drupal to use SSL (Drupal HTTPS information
  • Add the following line (there should be an example of it in the file already): $base_url="https://bizXXX.inmotionhosting.com/

    username/. )


  • NOTE: Make sure to use the correct shared SSL path - the URL I used in the steps above is simply an example and not the actual path.

    That should be all you need to make it work. It's highly recommended that you simply purchase an SSL since the actual secure path is not the same as your URL, so it may look suspect for some users. SSLs are not as expensive as they once were and are well worth their cost, especially if you are conducting any type of ecommerce.

    I hope this helps to answer your question! If you require any further assistance, please let us know.

    Regards,
    Arnel C.

    thanks for you help. I have worked through the instructions you provided.

    1. I worked out the URL for the shared SSL from InMotion Hosting guide (going from "bizXXX.inmotionhosting.com/

    my_user_name" to "https://secureXXX.inmotionhosting.com/

    2. I installed my site to the default directory (public_html) and so the SSL shared directory is "https://bizXXX.inmotionhosting.com/

    I then configured Drupal 7 to run clean URLs. What happened was the shared SSL url only works for the homepage. All other pages return an Error 404 message. The regular "non-SSL" pages still work with the clean urls.

    7 41 drupal hosting as it does test to

    I checked documentation on one of the links you listed (https://drupal.org/https-information) and it says that

    "If you enabled HTTPS and it only works on the homepage and your sub links are broken, it's because the VirtualHost:443 bucket needs AllowOverride All enabled so URL's can be rewritten while in HTTPS mode."

    I want to support both HTTP and HTTPS on my site and so I am thinking this latest problem is server configuration. Can you just confirm server configuration. If the server is configured to support mixed-mode HTTPS and HTTP sessions then it means the problem is at my end. By the way I am using Ubercart SSL module for the mixed-mode HTTPS and HTTP sessions.

    Again thanks for your help.

    Most, but not all settings for AllowOverride are available. We are happy to help, but we would need more information to provide a specific answer.

    What is the full error/issue you are experiencing?

    Do you have a link to the page where we can view this error?

    Also, in this guide on the official Drupal site. in the section titled Drupal Configuration it gives several options for mixed mode. Which method are you using?

    If you have any further questions, feel free to post them below.
    Thank you,

    2013-07-24 12:16 pm EST

    thanks for your reply.

    I guess the full error/issue is twofold:

    1. The broken links when using https I mentioned previously.

    2. When I configure Ubercart SSL (entering both "Secure Domain Name" and "Non-Secure Domain Name"), I receive the following alert:

    "Ubercart SSL (uc_ssl): The uc_ssl_check() function is returning FALSE because it was unable to contact the SSL (https) version of your website that you defined in the settings. This can be caused by 3 things. 1. Your website is not setup properly for SSL, 2. The OpenSSL extension is not enabled on in your PHP installation, 3. allow_url_fopen is not enabled in php.ini. If #2 fails, uc_ssl will try to use file_get_contents() which requires allow_url_fopen to be set to TRUE in php.ini. Hopefully these hints will help you fix this issue so that you can use uc_ssl. You can try to debug this by going to https://secure139.inmotionhosting.com/

    username//?uc_ssl_check=1

    CRITICAL ERROR! The domain you entered for the secured domain came back as non-secure or it does not point back to this installation of drupal. Your secure domain name MUST be setup and MUST be pointing at this install of drupal."


    For Drupal configuration I am using option 2 on the page you mention. It says:

    "For even better security, leave $conf['https'] at the default value (FALSE) and send all authenticated traffic through HTTPS and use HTTP for anonymous sessions. Once again contributed modules like 443 Session or Secure Login can help you here. Drupal 7 automatically enables the session.cookie_secure PHP configuration on HTTPS sites, which causes SSL-only secure session cookies to be issued to the browser."

    However instead of the modules "443 Session1 or "Secure Login" I am using "Ubercart SSL".

    It would be great for you guys to take a look at the actual site. I am using Ubercart and I am testing with Paypal sandbox. The e-commerce is working fine. However it is still being tested and so I don't want to make it public right now. Can I give you guys confidential access to the site?

    Again thanks for all the help.

    My apologies for the mistake with your name John-Paul :(
    It has been a long long day trying to solve this problem.

    If your site is not live on our servers yet, the shared SSL will not function successfully. Also, I would recommend trying one of the modules they list in the article "443 Session1 or "Secure Login" to see if you get a different affect.

    We would be happy to take a look, you can email your site information to docs@inmotionhosting.com

    With the Subject: jeremy_steel

    Then, post a comment letting us know it has been sent here on this forum post.

    If you have any further questions, feel free to post them below.
    Thank you,

    2013-07-24 3:29 pm EST

    I checked the file mentioned in the Drupal Guide (sites/default/settings.php) on enabling HTTPS, and it was not updated:

    The article states "If you want to support mixed-mode HTTPS and HTTP sessions open up sites/default/settings.php and add $conf['https'] = TRUE;"

    According to the tutorial you have to add this line to the file:
    $conf['https'] = TRUE;

    But since you are following option 2 of the guide, it says to set it to "False":
    "For even better security, leave $conf['https'] at the default value (FALSE) and send all authenticated traffic through HTTPS and use HTTP for anonymous sessions. Once again contributed modules like 443 Session or Secure Login can help you here. Drupal 7 automatically enables the session.cookie_secure PHP configuration on HTTPS sites, which causes SSL-only secure session cookies to be issued to the browser. "

    Then add the line of code:
    $conf['https'] = FALSE;

    Also make sure you are entering the correct secure address for your Shared SSL in the sites/default/settings.php .

    I recommend following these steps, then letting us know if it works successfully, or you get a different error.

    If you have any further questions, feel free to post them below.
    Thank you,

    2013-07-24 5:03 pm EST

    previously I had modified settings.php as suggested but it made no difference, so I left it unchanged. I tried again today and still no solution. I also tried changing the RewriteBase settings in the .htaccess file and $base_url in settngs.php but neither solved the problem.

    I can outline what I did yesterday:

    I began by sourcing the two recommended modules Secure Pages and 443 Session.


    Secure Pages
    After I installed Secure Pages module I tried to configure it but the "Enable Secure Pages" option is grayed out and says: "To start using secure pages this setting must be enabled. This setting will only be able to changed when the web server has been configured for SSL." As far as I know the web server is configured for SSL and so I do not know what is going on here.

    443 Session
    I then sourced the 443 Session module but it hasn't been released for Drupal 7. It also says that for the type of site I am doing (mixed HTTP and HTTPS) it isn't recommended. It says:

    "Since 443 Session module uses separate session cookies for HTTP/HTTPS this means that when a user navigates from an HTTP page to an HTTPS page any session data will appear to be lost. This makes this module unsuitable for running an e-commerce site where most pages are HTTP except for the checkout which is HTTPS. In this case the user's cart contents would appear to be lost when they go to checkout. For this scenario please see the Mixed Session module."

    I then sourced the Mixed Sessions module.

    Mixed Sessions Module
    There is no Drupal 7 version. It does reference Uber SSL though.

    I then sourced Uber SSL

    I installed Uber SSL but then encountered the problems I described previously. In the Uber SSL page it says:

    "- Clean URLs must be enabled
    - SSL Certificate must be installed and working for your website
    - Ubercart is NOT required for this module btw, it can be used for pretty much anything u want. But its most common use is with ubercart so thats where it gets its name from."

    "If you have an SSL Certificate and you want to secure your ubercart pages with that Cert then this is the module for you. Download this module, install, config it, and you'll be running with your cert in no time. This module does NOT help you get your certificate running. If your website does NOT work with https by manually typing it in, then you need to get that working FIRST and then you can configure this module. You can install it before hand but you will not be able to configure it as it does test to see if SSL is actually working or not."

    So I enabled clean URLs but have the problem I mentioned with Uber SSL unable to contact the SSL (https) version of my website.

    For now the main problem seems to be Inmotions TEMP URL and clean URLs used in Drupal 7. I ran some tests this morning comparing the TEMP URL with the permanent URL (disabling Uber SSL). Here are the results:

    TEMP URL
    Disable clean URLs in Drupal 7 and the site works for both http and https
    e.g.
    bizXXX.inmotionhosting.com/

    Enable clean URLs in Drupal 7 and the site shows only the homepage for both http and https. Other pages produce Error 404.
    e.g.
    "bizXXX.inmotionhosting.com/

    username/" shows but "bizXXX.inmotionhosting.com/

    username/about_us" produces Error 404.
    "https://secureXXX.inmotionhosting.com/

    username/" shows but "https://secureXXX.inmotionhosting.com/

    username/about_us" produces Error 404.


    PERMANENT URL
    Disable clean URLs in Drupal 7 and the site works for http (https not available using permanent URL with shared SSL)
    e.g.
    mysite.com/?q=about_us

    Enable clean URLs in Drupal 7 and the site works for http (https not available using permanent URL with shared SSL)
    e.g.
    mysite.com/about_us

    So there seems an issue with Drupal 7 clean URLs and Inmotions TEMP URL (which I have to use for the shared SSL).

    I found another Drupal 7 user had this same problem (https://drupal.org/node/1734722) and solved it via server configuration (I mentioned this previously - changing "AllowOverride None" to "AllowOverride All" for https). Is it possible this is our solution since I have tried everything else?

    Again big thanks to all you guys for trying to help me solve this one.

    Watch this video!

    Related articles

    Drupal hosting with sslHTTPS is a protocol which encrypts HTTP requests and their responses. This ensures that if someone were able to compromise the network between your computer and the server you are requesting...
    Fix broken links drupal hostingI am putting my first "real" drupal site online. But. I've run into a snag. After migrating the database and files to a live server. All of the links on the site are broken except for the...
    Inmotion hosting wordpress install scriptWordPress is known as the most popular blogging platform and content management system. New users are often surprised when we tell them that WordPress is also well known for its ease of...
    Faceted search apache solr drupal hostingNote: Extra special thanks to Doug Vann for providing motivation to finally post this blog post! Early in 2016, when the Search API and Solr-related modules for Drupal 8 were in early alpha...
    Change table prefix drupal hostingI have a drupal 7 site running on a webserver, it is currently using a database that was created with out a prefix. I am attempting to restore that database to a new drupal instance from a...