Elxis CMS Forum

Support => Administration => Topic started by: alkis on March 13, 2009, 08:00:01

Title: Register globals / problem to access
Post by: alkis on March 13, 2009, 08:00:01
I have a problem with elxis cms administration. I have try to put register_globals on, (it was off and was working) and just after that, i cannot login neither as administrator. And the site is down.I prompts an error message

" mysql Σφάλμα [1045] : PCONNECT
URI: index.php
Message: Access denied for user 'mainuser'@'localhost' (using password: YES)

Can anybody help me please?

I try to chang by hand the configuration.php,
$mosConfig_register_globals = '0';
but no chance.
Title: Re: Register globals / problem to access
Post by: datahell on March 13, 2009, 08:09:59
Register globals is a php setting. $mosConfig_register_globals is just an emulation. I suggest you to disable both.

ini_set('register_globals', 'off');
Title: Re: Register globals / problem to access
Post by: alkis on March 13, 2009, 10:45:04
i dont have access to php.ini.  I have already did that in .htacces
I wrote a line with
php_flag register_globals off
but..
What is the correct syntax for .htacces?
Title: Re: Register globals / problem to access
Post by: Farhad Sakhaei on March 13, 2009, 20:36:48
Most probably your server is running under suphp or phpsuexec,
In this case some .htaccess flags and values don't work , You can get a copy of php.ini from your server admin and change your desire flags in there ... Then put the new php.ini in every folders that you want that settings be apply on that folder scripts ...
Title: Re: Register globals / problem to access
Post by: alkis on March 14, 2009, 03:27:18
thank you for reply Farhad and datahell.
Finaly, i found a solution.
I added a new user in database and i changed the username and password in configuration.php, and it works, i have access to administration and the site is up.
Anyway, for the records, the problem wasn't the register_globlal on or off, but the fact that
the privileges of the database user was lost by changing register_global from off to on in admin panel.