Top VPS Hosting Provider

Welcome to the myhosting.com Forums.
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    ceiboss is offline Official Member
    Join Date
    Oct 2008
    Posts
    12

    Default Magento setup with Vanity SSL

    I setup Magento a while back and was using Paypal, so I didn't need the SSL feature. I've moved to Authorize.net and now I need to secure the site. Is there a way to do it without reinstalling everything (including all my products, etc).

    I'm also having some issues with sending email from magento. I know I don't have things setup right, but I can't find anyplace to set a login/password for an email address. I've found the smtp server fields.

    Any help?

    Thanks!

  2. #2
    community-manager is offline Silver Member
    Join Date
    May 2008
    Posts
    40

    Default Re: Magento setup with Vanity SSL

    Hello Ceiboss,

    Here is how you can enable SSL in Magento Commerce:

    Log into backend
    Click on System > COnfiguration
    Click on Web on the left menu
    Scroll down and find the SECURE section
    Select YES for the question: Use Secure URLs in Frontend

    I hope this helps...

    About the SMTP problem... Unfortunately, magento commerce does not support this out of the box. Although I've never tried, the following may help. Make sure to backup everything before you try:

    Open /app/code/core/Mage/Core/Model/Email/Template.php and add the following to the send() method

    Code:
    public function send($email, $name=null, array $variables = array())
        {
            if(!$this->isValidForSend()) {
                return false;
            }
    
            $config = array(
                    'ssl' => 'tls', //optional
                    'port' => Mage::getStoreConfig('system/smtp/port'), //optional - default 25
                    'auth' => 'login', 
                    'username' => 'username@somesite.com',
                    'password' => 'secret'
                );
                    
            $transport = new Zend_Mail_Transport_Smtp(Mage::getStoreConfig('system/smtp/host'), $config);
    
            ........................
    
            try {
                $mail->send($transport); //add $transport object as parameter
                $this->_mail = null;
            }
            catch (Exception $e) {
                
                return false;
                
            }
    
            return true;
        }
    Timur Catakli
    myhosting.com - Community Manager
    ---------------------------------------------------------
    cm@myhosting.com
    http://www.myhosting.com
    ---------------------------------------------------------
    Your trusted web hosting company since 1997

  3. #3
    ceiboss is offline Official Member
    Join Date
    Oct 2008
    Posts
    12

    Default Re: Magento setup with Vanity SSL

    Well, the email works. Of course I changed the email address I was going to use and broke it, but I'll work that out later. Thanks for the help there.

    I'm still having problems with the SSL. What I think needs to happen is that I need to copy some or all of the Magento site to my vanity SSL site and then under System/Configuration/Web under Secure, change the base URL to point to the SSL site. I did try changing the setting as you described, but it didn't work.

    Thanks,

    Scott

  4. #4
    decarvalho is offline Junior Member
    Join Date
    Oct 2008
    Posts
    3

    Default Re: Magento setup with Vanity SSL

    I am having the same problem with email. Tried adding the code to the php page mentioned. The file and code certainly have to do with the issue, but I am getting an error (before I did not get any errors, but the emails would not be sent). My smpt server does require authentication. If I post my code here, could someone take a look at it for me?

  5. #5
    ceiboss is offline Official Member
    Join Date
    Oct 2008
    Posts
    12

    Default Re: Magento setup with Vanity SSL

    I'm still working on this and thought I'd update hoping somebody would have some ideas on what's going on:

    1. I deleted my magento install (not the database though).
    2. I setup my vanity SSL under Linux.
    3. I re-installed magento.

    Now, I still have my data which is good considering all the work I went through to set things up. The problem is that when I go to checkout and it tries to get to my secure site, I get the 404 error. I have no idea what or where to go now. I entered and double checked the https://copelandcommunicationscom.secure.myhosting.com/ (and made sure the "/" was on the end). It still gives me the error. How do I fix this? I'm assuming that for some reason the files that need to be transferred to the secure site, haven't been. I did select "Use Secure URLs in Front End". It makes no difference.

    Help! I'm so close I can taste it. Thanks

  6. #6
    tima is offline Administrator
    Join Date
    Apr 2008
    Posts
    191

    Default Re: Magento setup with Vanity SSL

    Hello ceiboss,

    Just to explain a bit how Vanity SSL works. There is no seperate site for your Vanity SSL site. It is like a website alias that points to the same content on the webserver.

    So if your shopping cart is located at http://x.your-site.com/cart/index.php then to use your Vanity SSL you just point your browser at https://vanitySSLname.secure.myhosting.net/cart/index.php and you will see the same content. There is no need to copy any files to any other location to use the Vanity SSL.

    Also, please note that Vanity SSL URLs usually end in ".secure.myhosting.net". You may get an error or a redirect to http://myhosting.com if you use ".com" at the end.

    Hope this helps.
    Tim Attwood
    Product Manager
    myhosting.com


 

Similar Threads

  1. New to Magento Commerce? Get started with our Setup Guide...
    By community-manager in forum News, Announcements, and Notices
    Replies: 5
    Last Post: 2009-07-22, 02:16 AM
  2. SSL, overrated?
    By twit in forum How-To
    Replies: 2
    Last Post: 2008-06-30, 06:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts