It is currently Thu Aug 28, 2008 12:38 pm
Moderators: General Support Moderators, Hidden - JSST





Hackwar wrote:Eyezberg, feel free to do so.
@tingtong
Its possible that your provider has configured your server in a way that these fixes wont work. In that case you have to ask your provider to switch it off for you.

tingtong wrote:Ok, thanks. If I swith it off, will that be possible some extension need it to be "ON" in order to function?
If my hosting provider had swicth it off, is that I no need to add the php.ini or .htaccess code anymore?







supern00b wrote:In the situation where the server settings can not be changed and the site can not be moved at this point, how can we turn off these warnings?



php_flag register_globals off
php_flag magic_quotes_gpc onregister_globals = off
allow_url_fopen = off
magic_quotes_gpc = on
disable_functions = show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open



suPHP_ConfigPath /home/your_user_name/public_html
<Files php.ini>
order allow,deny
deny from all
</Files>defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.');











briar wrote:given that the code in joomla is written with the .php extension and it appears that php 5 needs this to be .php5
briar wrote:Whilst the change to Joomla's core is perhaps a major undertaking, is possible to make this compatible with the needs of php 5 as this seemingly set up with register_globals 'off' by default. Maybe this line of code could be added as standard to the base htaccess.txt file in the shorterm and perhaps a version of Joomla be dedicated to use with PHP5?


briar wrote:Thanks for your reply Rob
Not being someone who would usually delve deeper than necessary into such issue's. I am I guess like many who visit the forum, a software user rather than a developer. In this case we have to resolve such issues when they appear and as this is problem that needs to be resolved to make any Joomla based site secure we need support from you guys.
I rather naively assumed the need for the added character on the extension in PHP5, so your point has straightened me out on that so my question about modifying the core is also resolved and therefore withdrawn.
I suppose I should have thought harder before asking, given the way Joomla is crafted, my apologies.
Having sought you support through the previous posts and followed this through with the host and been given a very simple way to resolve my problem, my question is now:
(1) Will this work in a generic way if added to the sites .htaccess file and used on any host server or will it be host specific?
(2) Will such an addition in this way affect Joomla if there is no PHP5 on the server?
(3) Will it affect the performance of third party extensions in either case above?
Given that it was a very simple way to resolve my issue with the problem I posted the information for discussion as it saved a heck of a lot of work and worry compared to some of the options discussed. If there is a positive to all of the questions above it may help others who don't have the skills or wish to delve deeper than changing '1' to '0' or adding a line of code, as the risk of breaking the site is always in the back of their minds.
I suspect many have to ignore the warnings for fear of the work and risk involved in overcoming it and put their site on line with a security weakness, or do not use such a superb CMS system because of the perceived difficulty of securing it.
I wonder how many basic users do not even modify the htaccess.txt by renaming it once uploaded, in which case this would not work anyway, therein lies another issue to be resolved perhaps?
I can only hope that my experience is of use in providing an another possible answer to resolving this security issue, particularly if there is a positive answer to the three questions above.
If nothing more, it will answer the question for the users who use the same host as myself and underline the benefits of asking the Host before jumping in deep too quickly.
Look forward to your reply and continued support of a great bit of software.
Regards
David





Users browsing this forum: normdouglas, PhilTaylor-Prazgod,