drbowen wrote on Friday, April 15, 2005:
We need to know which distribution of linux you are using? (Mandrake, Debian, RedHat, Fedora Core, Suse, Slackware)
Does the login screen list a initial group?
Does it list a textboxes for a username and a password?
sqlconf.php is usually is located in the (depends on the distribution) web root:
/var/www/html/openemr/library/sqlconf.php
Open the sqlconf.php with a text editor and look for
>
> <?
> // OpenEMR
> // MySQL Config
> // Referenced from sql.inc
>
> $host = ‘localhost’;
> $port = ‘3306’;
> $login = ‘openemr’;
> $pass = ‘openemr’;
> $dbase = ‘openemr’;
>
>
> $sqlconf = array();
> $sqlconf[“host”]= $host;
> $sqlconf[“port”] = $port;
> $sqlconf[“login”] = $login;
> $sqlconf[“pass”] = $pass;
> $sqlconf[“dbase”] = $dbase;
> //////////////////////////
> //////////////////////////
> //////////////////////////
> //////DO NOT TOUCH THIS///
> $config = 1; /////////////
>
>
Alter the
$config = 1; /////////////
to read
$config = 0; /////////////
will allow you to start from scratch and try again.
In a pinch you can probable just edit this file by hand. Change the openemr to your mysql login name, password and database.
$login = ‘openemr’;
$pass = ‘openemr’;
$dbase = ‘openemr’;
Alter the
$config = 0; /////////////
to read
$config = 1; /////////////
Logging in for the first time will be username = admin
and the password will be = pass
(Unless you changed the value of the initial username logging in during setup.
Make sure that the mysqld is actually running. You should be able to log in to the mysql server using the root username and password with :
$ mysql -u root -p
enter your password:
And if everything is setup correctly:
$ mysql -u openemr -p openemr
Sam Bowen, MD