1

I have just uploaded a site on a sub-domain, In fact on the 3rd Sub-domain. All the 4 site ( 1 Main, and the 3 on SUB) are completely separate from each other.

Now, the site was developed Offline/Local and then uploaded, the site worked great on a local.

For some reason i keep getting "ERROR 500 - INTERNAL SERVER ERROR", where as my other sites are working fine.

If it would have been a server issue, the other sites would have the same problem. I dont ahve limits on Sub-domains, the disk space and bandwidth is also fine.

Can't Understand what could be the issue. Please help. I have attached the screen shot to the post, but not the link. As i am not sure how it works here.

.Htaccess code :

 RewriteEngine On
 #RewriteCond %{REQUEST_FILENAME} !-f
 #RewriteRule ^(.*)$ $1.php?$1=$1 [QSA,L]
 #RewriteRule ^([^\.]+)$ $1.php [NC,L]
 #RewriteRule ^([^\.]+)$ $1.html [NC,L]
 #RewriteRule ^([a-zA-Z]+)/([a-zcA-Z]+)/([0-9]+)/([-0-9a-zA-Z]+)/?$ /$1/$2.php?id=$3 [L]

 php_value max_execution_time 200
 php_value post_max_size 200M
 php_value upload_max_filesize 100M

Error 500

info.php

12
  • what technology you using for site? PHP / wordpress? Commented Dec 27, 2014 at 9:24
  • It's on PHP.... Commented Dec 27, 2014 at 9:39
  • can you please share .htaccess file code which are in that sub domain root folder? Commented Dec 27, 2014 at 9:41
  • I'm sorry, how do i post the code here? It's all scrambled. I'm new here. Commented Dec 27, 2014 at 9:46
  • please update question and add . htaccess code in proper format there. In comment not possible to format proper. Commented Dec 27, 2014 at 9:49

2 Answers 2

1

First go to : Default htaccess and use that default htaccess code for .htaccess file for your subdomain root.

Also please verify following things :

1 - In apache config , see this option : AllowOverride All [It should be ALL not none]

2 - do you have mod_rewrite enabled

3 - .Htaccess file permission should be 644.

15
  • Ok, I have changed the code in .htaccss, and the file permission is set to 644. But, no idea how to check for mod_rewrite and apache config Commented Dec 27, 2014 at 10:24
  • Please create new page and use function <?php phpinfo(); ? and then access that page. it will show you all status. Commented Dec 27, 2014 at 10:27
  • what exactly goes in the code? "<?php phpinfo(); ?" this? within the quotes? Commented Dec 27, 2014 at 10:36
  • It will give you all php info. all option status of server which are on , which are off and a lot more. Commented Dec 27, 2014 at 10:37
  • yes, but how to use it? Commented Dec 27, 2014 at 10:40
0

Start with the apache error log

This page has some further information, such as the default location on windows of the logfiles

http://httpd.apache.org/docs/2.2/platform/windows.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.