ftocc

Unable to access the General Settings page in trixbox 2.6.0.0

majamer
Posts: 171
Member Since:
2007-08-29

Hello,

When I try to access the General Setting page (/maint/index.php?generalsettingstings) I get the following error:

Database error: Cannot connect to PDO Database: SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: YES)
PDO Error
Session halted.

I think this indicates a flaw in the system's authentication because since I change the defualt passwords everything works fine except this page as if it needs the login credentials be hard-coded somewhere. Any ideas how to fix this?

--

Thank you in advance,
Martha Amer



shawnesc
Posts: 38
Member Since:
2007-07-31
I have the same problem

Has anyone come up with a solution to this?
I have just upgraded from 2.6.07 to 2.6.1 and I am getting the netconfig error when I try a yum update and I am getting the following error when selecting general settings:

Database error: Cannot connect to PDO Database: SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: YES)
PDO Error

I am also getting the following error when selecting phpMyAdmin:

Error
MySQL said:
#1045 - Access denied for user 'root'@'localhost' (using password: YES)

I had to chacnge the password for asteriskuser from passw0rd back to "my own password" to get the PBX section to connect and I changed root to my own as well, but now I get the above errors. There seems to be something in the upgrade to 2.6.1 that has reset the passwords to default passwords but not all of them. When reset back to the individual's passwords, not all are reset. I am just guessing here but there must be some truth in this. Please help!
Thanks,

Shawn



rodriguin
Posts: 2
Member Since:
2008-07-15
Cannot connect to PDO Database

you need to edit a file named Common.php in /var/www/html/include/ccsframework

Connect to console via SSL:
run the following command:

nano /var/www/html/include/ccsframework/Common.php

you will see inmediatly three array definitions with DB connect information - you only need to modify "Password" value in "Trixbox" and "Asterisk" array definition

then restart amportal
amportal restar

It works for me!

Regards
Rodrigo de los Santos



londo1958
Posts: 1
Member Since:
2008-07-29
this problem is caused because they are using codecharge

this really needs to be fixed so that a user does not have to manually make this change - as a user of codecharge, this is not the first time I have been bit by one of the hardcoding problems

the developers will need to come up with a fix or workaround - CCS is not as flexible as it needs to be some times



majamer
Posts: 171
Member Since:
2007-08-29
I absolutely agree. There

I absolutely agree. There should be some type of rule to prevent from adding any new features without following certain porgramming cenvention that can never be broken. Throwing in harcoded passwords everywhere is worse makes it a nightmare to change a password.
BTW: now that the system settings page is working, I get the error: "you have both sendmail and postfix are installed" which is not true. I disabled sendmail before installing and configuring postfix.

--

Thank you in advance,
Martha Amer



compdoc
Posts: 93
Member Since:
2007-02-28
I have this problem too...

I have this problem too...

"you only need to modify "Password" value in "Trixbox" and "Asterisk" array definition"

modify the password value to what, exactly?



dinozaur
Posts: 7
Member Since:
2007-12-06
/var/www/html/include/ccsframework/Common.php doesn't exists

I can't find anywhere in my system (/var/www/html/include/ccsframework/) Common.php
that file doesn't exists.
This is after updating trixbox to latest version.



juangabriel
Posts: 45
Member Since:
2008-03-20
Same problem here...

No common.php file..........
error:

Database error: Cannot connect to PDO Database: SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: YES)
PDO Error
Session halted.

Some solution???

Thanks in advance...



juangabriel
Posts: 45
Member Since:
2008-03-20
wow I found it

It's Common.php be carefull with the "C". It's caps lock. The only thing now is when I go to System Status, it is blank, is nothing there, I can see trixbox and the Admin switch options and the System Status version. Nothing else. I thing is another password..

Any Idea?



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.