MR1 Posted May 4, 2008 Share Posted May 4, 2008 Hello to those who are reading this, When i go to www.mywebsite.com/admin_login it asks for a password which i have set up with Godady, i type my user name and password, but then i get this error, why? " Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory. " Can some here please help me. I have researched and it seems like it is a global reg problem, but iv tried everything no luck, here is my .htaccess file ======================================================================= # $Id: .htaccess 8777 2006-03-20 16:17:17Z jim $ # # This is used with Apache WebServers # # For this to work, you must include the parameter 'Options' to # the AllowOverride configuration # # Example: # # <Directory "/usr/local/apache/htdocs"> # AllowOverride Options # </Directory> # # 'All' with also work. (This configuration is in the # apache/conf/httpd.conf file) # The following makes adjustments to the SSL protocol for Internet # Explorer browsers <IfModule mod_setenvif.c> <IfDefine SSL> SetEnvIf User-Agent ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 </IfDefine> </IfModule> # If Search Engine Friendly URLs do not work, try enabling the # following Apache configuration parameter # # AcceptPathInfo On # Fix certain PHP values # (commented out by default to prevent errors occuring on certain # servers) # #<IfModule mod_php4.c> # php_value session.use_trans_sid 0 # php_value register_globals 1 #</IfModule> authtype basic authname "Secure Area" authuserfile /home/content/j/a/m/jamesarthgh/htconfig/.htpassword.ghtpassword authgroupfile /dev/null require user admin ========================================================= Thank you MR1 Link to comment Share on other sites More sharing options...
BryceJr Posted May 5, 2008 Share Posted May 5, 2008 Some servers have disabled turning register_globals on through htaccess. You can turn register gloabls on through php. Copy the code below via text editor. <?php register_globals = on ?> *If you are using PHP5, save it as php5.ini Otherwise, save it as php.ini Place it in the root directory of your website. You may also want to consider these contributions. "Admin Access without register globals" --> http://addons.oscommerce.com/info/5438 "Register Globals" --> http://addons.oscommerce.com/info/2097 *refers to godaddy hosted sites, may not apply to other hosting sites Link to comment Share on other sites More sharing options...
MR1 Posted May 5, 2008 Author Share Posted May 5, 2008 Hi to BryceJr, Thank you ever so much for taking your time and helping me out! If i can help you with anything please let me know! even if i have to add 300 products to your website :) Thank you MR1 Have a good day Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.