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

Notices

Reply
 
Thread Tools
  #51  
Old 02-15-2009, 02:11 AM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,164
Default Re: Internal Server Error (Error 500) Mini Troubleshooting Guide

You need to chmod files to 755, not 777.

If that doesn't help, at this point it is probably best to file a ticket with support.
__________________
Follow me on Twitter! http://twitter.com/mrw
Reply With Quote
  #52  
Old 02-15-2009, 03:25 AM
sharp21 sharp21 is offline
Hatchling Croc
 
Join Date: Jan 2009
Posts: 5
Default Re: Internal Server Error (Error 500) Mini Troubleshooting Guide

When creating an add-on, it also creates a sub-domain. I had been naming that the same as the domain name, instead of using my ftp user name.
The result was weird addresses like htt://www.maindomain.com/subdomain.com...
What is the need for a sub-domain when creating an add-on?
S.
Reply With Quote
  #53  
Old 02-15-2009, 04:22 AM
striddy's Avatar
striddy striddy is offline
Veteran Croc
 
Join Date: Mar 2008
Location: /home/australia/earth
Posts: 4,093
Default Re: Internal Server Error (Error 500) Mini Troubleshooting Guide

Quote:
Originally Posted by sharp21 View Post
When creating an add-on, it also creates a sub-domain.
.....
What is the need for a sub-domain when creating an add-on?
That's just how cpanel works.
__________________
- David
Reply With Quote
  #54  
Old 02-15-2009, 06:54 AM
sharp21 sharp21 is offline
Hatchling Croc
 
Join Date: Jan 2009
Posts: 5
Default Re: Internal Server Error (Error 500) Mini Troubleshooting Guide

Fair enough.
Just so I am clear; can I keep using the same subdomain/ftp user name for each add-on account, or should I be changing it to match the new domain?
S.
Reply With Quote
  #55  
Old 09-17-2009, 06:11 AM
p1nk p1nk is offline
Hatchling Croc
 
Join Date: Feb 2009
Posts: 2
Default Re: Internal Server Error (Error 500) Mini Troubleshooting Guide

Hi there, I know this is an old thread, so I'm sorry for bumping. But I have ran into problems with my site occasionally getting Internal Server Errors now.
It doesn't have that much traffic, so it's not that. Sometimes the number of processes running go as high as 25 (which hits the limit), and sometimes just around 15 (which is still a lot), while other times it's just 2. I have no idea what could be causing this at all, I'm thinking it's a hanging script, but I cannot pinpoint which either.
I use Wordpress and a lot of PHP snippets on my index, but which one of them is causing it?

My error log shows no clue, and if it is showing any, I must be really stupid because I cannot trace the problem.

Would someone be able to pinpoint which of my PHP codings is causing my index to hang if I posted all of my PHP snippets on this thread? I doubt it's Wordpress that's causing this. It has gotten to the point of being annoying, I'm not annoyed at Hosgator, it is I that I am annoyed at because I just can't figure it out & I want it fixed so bad.

It is only on my index page. What would you say is a "running process"? Because I have no idea what it is, really. I have codes like these:

PHP Code:
<?php $dir_path "/home/public_html/site-stuff/";
$count count(glob($dir_path "*")); echo $count?>
^ This one shows the number of files inside a directory, I use a LOT of those codes, but I use them on ALL of my pages, so that couldn't be it could it? If it's only affecting my index?

I also use codes such as:
PHP Code:
<?php
$referrer 
$_SERVER['HTTP_REFERER'];
if (
preg_match("/site1/",$referrer)) { echo 'You came from site1';} elseif (preg_match("/site2/",$referrer)) { echo 'You came from site2';} else { echo 'Who knows where you came from';}; ?>
^Does this code look right? Could it be the one causing a lag on my index?


Ugh, I am really grasping at air right now, hope someone could help. I have submitted a support ticket one time about this, and at that time I thought I figured it out because my running processes did go back to normal, but now, it just goes back up on its own. & Goes back down after a while, but usually its already brought my site down when this happens.
It's not stable, and I don't have a lot of traffic, so it's not the traffic, it's just some script & I just can't figure out which one.

Also, let me know if I should post this as an individual thread, or if this is fine here. Thank you.
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 -5. The time now is 08:46 AM.