LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-04-2012, 03:07 AM   #1
conflicker
Member
 
Registered: Sep 2011
Posts: 92

Rep: Reputation: Disabled
Question Internal Server Error


Hi everybody,

I have website backup downloaded from other server, and I use to extract it on one of the cpanel that I've been created, for more specific I paste it on "useracount/public_html/"..

Now, when I try to browse the site, the css is not working.. And I tried to view source and click on one of the css, It says the "Internal Server Error"..

I've already change the ownership and user group of the folder, but still got it this "internal Server Error"..

Any ideas?
 
Old 02-04-2012, 04:09 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

Check the webserver (is it apache?) error_log to see why you get the Internal Server Error

Cheers
 
Old 02-04-2012, 04:57 AM   #3
conflicker
Member
 
Registered: Sep 2011
Posts: 92

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bathory View Post
Hi,

Check the webserver (is it apache?) error_log to see why you get the Internal Server Error

Cheers
I just check it, and I found out that it is a .htaccess issue.. I just rename the .htaccess into some temporary file in directory where the css files has been save. And it works.. I'm just wondering if there is some alternative effects if I rename the .htaccess into some unuseful filename..

This is the content of the htaccess:

Quote:
<files ~ "\.tpl$">
order deny,allow
allow from none
deny from all
</files>
 
Old 02-04-2012, 08:03 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

This .htaccess forbids access to files with a .tpl extension. It looks correct, so I don't know why the server gives that 500 error
If you need to deny access to .tpl files you're going to need it, so if you still get the 500 error post what's written in apache error_log, to see if we can find the reason.

Regards
 
Old 02-04-2012, 08:29 AM   #5
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
Sure "allow from none" is correct ?

It seems redundant somewhat as "deny from all" should cover it anyway
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] 505- Internal server error - The server encountered an internal error or misconfigura physnastr Linux - Server 7 11-17-2011 04:57 PM
Internal Server Error 500 but no error log Sly Phy Programming 1 08-10-2010 10:51 PM
Additionally, a 500 Internal Server Error error was encountered while trying to use a ukrainet Linux - General 10 06-24-2005 02:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration