Go Back   HostGator Peer Support Forums > HostGator Peer Support Forums > Shared Hosting Support

Notices

Reply
 
Thread Tools
  #1  
Old 07-20-2007, 02:10 PM
bobby bobby is offline
Hatchling Croc
 
Join Date: Jul 2007
Posts: 3
Default https & PHP 5

I am having an issue accessing my site through the secure server. I was wondering if someone could help me out. I can access my normal domain, but I access it through the secure server I get a "500 Internal Server Error". I am working with support. A couple of days ago, support did something that got it to work, but it broke my site because it looks like what they did was to remove
AddHandler application/x-httpd-php5 .php

from my .htaccess file. By removing this I could see my site on the secure server but since it goes back to PHP 4, my site dies since I use mysqli extensions.

Does anyone have any idea what I can do? Does the Secure servers have PHP 5? I can't a straight answer from support. It looks like there is always a different person in support contacting me.

Thanks,

Bobby
Reply With Quote
  #2  
Old 07-20-2007, 02:32 PM
Sam Sam is offline
Emperor Croc
 
Join Date: Jan 2007
Location: /bin/false
Posts: 3,057
Default Re: https & PHP 5

Are you using your own https certificate of the hostgator shared one?

As far as im aware you cant use a shared cert where you access it via the server hostname with php5

Last edited by Sam; 07-20-2007 at 03:09 PM.
Reply With Quote
  #3  
Old 07-20-2007, 02:33 PM
bobby bobby is offline
Hatchling Croc
 
Join Date: Jul 2007
Posts: 3
Default Re: https & PHP 5

I am using a shared one, so I am accessing the sight using https://secure211.hostgator.com/~vinascon
Reply With Quote
  #4  
Old 07-20-2007, 03:11 PM
Sam Sam is offline
Emperor Croc
 
Join Date: Jan 2007
Location: /bin/false
Posts: 3,057
Default Re: https & PHP 5

Quote:
Originally Posted by bobby View Post
I am using a shared one, so I am accessing the sight using https://secure211.hostgator.com/~vinascon
Ah.. thats why, you can only use php5 if you are accessing it via the domain name of your site.
Reply With Quote
  #5  
Old 07-20-2007, 03:13 PM
bobby bobby is offline
Hatchling Croc
 
Join Date: Jul 2007
Posts: 3
Default Re: https & PHP 5

Is this for security? That's mean I will have to change all of my msqli statements or pay the $175 (or whatever) to get https for my domain name.

Thanks for you response Sam.
Reply With Quote
  #6  
Old 07-20-2007, 03:18 PM
Sam Sam is offline
Emperor Croc
 
Join Date: Jan 2007
Location: /bin/false
Posts: 3,057
Default Re: https & PHP 5

Quote:
Originally Posted by bobby View Post
Is this for security?
No its just the way the servers configured

Quote:
That mean I will have to change all of my msqli statements or pay the $175 (or whatever) to get https for my domain name.
You can get a cert for about $25 and hostgator can install it for $10 i think
Reply With Quote
  #7  
Old 07-20-2007, 03:56 PM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,164
Default Re: https & PHP 5

Quote:
Originally Posted by _Sam_ View Post
You can get a cert for about $25 and hostgator can install it for $10 i think
Yeah..$14/year for the certificate from namecheap.com, plus $10 for HG to install, plus $2/month for the new IP.
__________________
Follow me on Twitter! http://twitter.com/mrw
Reply With Quote
  #8  
Old 07-20-2007, 05:35 PM
gtgeorge's Avatar
gtgeorge gtgeorge is offline
Emperor Croc
 
Join Date: Mar 2005
Posts: 2,223
Default Re: https & PHP 5

Or the $75 cert on a shared server includes everything!
__________________
best regards,
George
Reply With Quote
  #9  
Old 07-20-2007, 05:56 PM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,164
Default Re: https & PHP 5

Still more expensive though, the $75 is recurring fee also (and the $10 isn't).
__________________
Follow me on Twitter! http://twitter.com/mrw
Reply With Quote
  #10  
Old 01-10-2008, 11:28 AM
zietbukuel zietbukuel is offline
Hatchling Croc
 
Join Date: Mar 2007
Location: /dev/peru/lima
Posts: 10
Default Re: https & PHP 5

Use Cacert for your SSL certificate, they offer FREE certificates...
Reply With Quote
  #11  
Old 01-10-2008, 01:09 PM
ghpk ghpk is offline
King Croc
 
Join Date: Nov 2006
Posts: 1,245
Default Re: https & PHP 5

Quote:
Originally Posted by zietbukuel View Post
Use Cacert for your SSL certificate, they offer FREE certificates...
but you won't be able to install it without a dedicated IP which costs 2$/month.
Reply With Quote
  #12  
Old 01-10-2008, 01:25 PM
skeetr's Avatar
skeetr skeetr is offline
Royal Croc
 
Join Date: Dec 2007
Location: Washington State
Posts: 432
Default Re: https & PHP 5

A resolution to the problem. Only took 5 months to do it. hehe
Reply With Quote
  #13  
Old 01-10-2008, 04:01 PM
Kelmas's Avatar
Kelmas Kelmas is offline
Baby Croc
 
Join Date: Jun 2005
Location: Lithuania
Posts: 87
Default Re: https & PHP 5

Not only HTTPS - HTTP will also give "500 errors" when PHP5 script is ran over userdir with "~". That is because of suPHP configuration. You have two options:
  • use PHP 4;
  • get a separate SSL certificate for the domain you want to access securely.
__________________
Regards,
Gytis Repecka a.k.a. Kelmas
NFS and Car Tuning forum | AutoNews.lt

HostGator client since 2005
Reply With Quote
  #14  
Old 01-10-2008, 05:47 PM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,164
Default Re: https & PHP 5

Quote:
Originally Posted by zietbukuel View Post
Use Cacert for your SSL certificate, they offer FREE certificates...
I wouldn't use these on visitor-facing sites. Visitors using most browsers will get a security warning.
__________________
Follow me on Twitter! http://twitter.com/mrw
Reply With Quote
  #15  
Old 01-10-2008, 10:43 PM
zietbukuel zietbukuel is offline
Hatchling Croc
 
Join Date: Mar 2007
Location: /dev/peru/lima
Posts: 10
Default Re: https & PHP 5

Quote:
Originally Posted by slapshotw View Post
I wouldn't use these on visitor-facing sites. Visitors using most browsers will get a security warning.
But they can just click OK...
Reply With Quote
  #16  
Old 01-10-2008, 10:52 PM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,164
Default Re: https & PHP 5

Quote:
Originally Posted by zietbukuel View Post
But they can just click OK...
On Internet Explorer 7, they have to click "continue" next to a big red X on this page:

http://www.bosanova.net/faq/images/ie7certerror.jpg

Visitor facing websites should never have a security pop-up if you want to make them feel comfortable your site is actually secure. Internal websites, sure, it doesn't matter.
__________________
Follow me on Twitter! http://twitter.com/mrw
Reply With Quote
  #17  
Old 01-11-2008, 08:05 AM
vtrain's Avatar
vtrain vtrain is offline
Royal Croc
 
Join Date: Jan 2004
Location: Limerick - Ireland
Posts: 699
Default Re: https & PHP 5

Quote:
Originally Posted by slapshotw View Post
I wouldn't use these on visitor-facing sites. Visitors using most browsers will get a security warning.
Or use them but put an explanation in the non-https page to install the root certificates to CAcert. You can get the links for the root certificates for firefox and explorer here:
http://www.cacert.org/index.php?id=3

After installing the root certificates the browser no longer complains for CAcert certifications. There are several requests at bugzilla to have these certificates included with the browser. Maybe one day in the future...

Vtrain
P.S: maybe this FAQ for installing root CaCert root certificates also helps:
http://wiki.cacert.org/wiki/BrowserC...60e0b54d9e378b
__________________
Vtrain is Linux User #237333 on http://counter.li.org/
"Don't meddle in the affairs of sysadmins,
for they are subtle and quick to anger."

Last edited by vtrain; 01-11-2008 at 08:09 AM. Reason: added PS
Reply With Quote
  #18  
Old 01-11-2008, 06:46 PM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,164
Default Re: https & PHP 5

You can do that...I would never do that on my important sites. It's only $14 for a cert without the popup.
__________________
Follow me on Twitter! http://twitter.com/mrw
Reply With Quote
  #19  
Old 01-11-2008, 09:27 PM
Jordanlw's Avatar
Jordanlw Jordanlw is offline
Royal Croc
 
Join Date: Dec 2007
Location: Australia
Posts: 425
Default Re: https & PHP 5

Well im still annoyed how you issue a SSL cert to www.example.com
But when you visit example.com you get the warning that the SSL cert is not issued to this site...

Im new to the SSL world,
If i purchase one SSL cert can that be placed over my whole site meaning no matter where you visit at https://www.example.com its secure?.
__________________
http://free-vent.com Providing FREE PUBLIC Ventrilo (VOIP) use.
Reply With Quote
  #20  
Old 01-11-2008, 10:06 PM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,164
Default Re: https & PHP 5

You can do that with a "wildcard" certificate but they are significantly more expensive.
__________________
Follow me on Twitter! http://twitter.com/mrw
Reply With Quote
  #21  
Old 01-11-2008, 10:23 PM
vtrain's Avatar
vtrain vtrain is offline
Royal Croc
 
Join Date: Jan 2004
Location: Limerick - Ireland
Posts: 699
Default Re: https & PHP 5

Quote:
Originally Posted by slapshotw View Post
You can do that with a "wildcard" certificate but they are significantly more expensive.
not at CaCert :-P
__________________
Vtrain is Linux User #237333 on http://counter.li.org/
"Don't meddle in the affairs of sysadmins,
for they are subtle and quick to anger."
Reply With Quote
  #22  
Old 01-11-2008, 10:39 PM
Jordanlw's Avatar
Jordanlw Jordanlw is offline
Royal Croc
 
Join Date: Dec 2007
Location: Australia
Posts: 425
Default Re: https & PHP 5

Quote:
Originally Posted by slapshotw View Post
You can do that with a "wildcard" certificate but they are significantly more expensive.
So a normal cert only encrypts one URL?.

@VTrain..
You get what you pay for...
Id rather pay..
__________________
http://free-vent.com Providing FREE PUBLIC Ventrilo (VOIP) use.
Reply With Quote
  #23  
Old 01-12-2008, 12:21 AM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,164
Default Re: https & PHP 5

Quote:
Originally Posted by Jordanlw View Post
So a normal cert only encrypts one URL?.
The regular certificate will *encrypt* the other URLs, but the certificate will be tied to the one domain/subdomain combo and give a pop-up warning if somebody tries to access it with a non-matching domain. If they say "yes" or "continue" on the pop-up however, they'll have a completely secure connection.

Quote:
You get what you pay for...
Id rather pay..
Agreed on both counts. For the $10-15 to get a certificate where the root is already trusted in popular browsers it's a no-brainer to me. Conversion rates would fall through the floor on all my client eCommerce sites if visitors got a big warning before putting in their credit card info. Far more than $15 would be lost.
__________________
Follow me on Twitter! http://twitter.com/mrw
Reply With Quote
  #24  
Old 11-16-2008, 02:09 PM
zietbukuel zietbukuel is offline
Hatchling Croc
 
Join Date: Mar 2007
Location: /dev/peru/lima
Posts: 10
Default Re: https & PHP 5

Quote:
Originally Posted by Jordanlw View Post
Well im still annoyed how you issue a SSL cert to www.example.com
But when you visit example.com you get the warning that the SSL cert is not issued to this site...

Im new to the SSL world,
If i purchase one SSL cert can that be placed over my whole site meaning no matter where you visit at https://www.example.com its secure?.
Or you can Apache to redirect the user to www.example.com.
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 09:12 PM.