When I change the following line in accounting.php: $link = @da_sql_pconnect($config) or die...
to $link = mysql_pconnect(localhost, <username>,<password>) or die... I can connect to the db and the accounting page works just fine. A problem with my config file? A problem with this "@da_sql_pconnect" function? (I can't seem to find it referenced at php.net so I'm assuming it's a function somewhere in the dialup-admin stuff but I can't find it. I'm just looking for some suggestions folks. Thanks. ~ Jason ----- Original Message ----- From: "Jason M. Weber" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: April 02, 2002 9:14 AM Subject: Dialup-Admin > When Apache was initially set up during the Caldera OpenLinux installation > the default php extension was set to just "php" rather than php3. So I > renamed all of the dialup-admin files to have a php extension and I edited > them all replacing php3 with php. Everything appears to be working for the > most part; radiusd, MySQL, and Apache are all running. But when I try to use > the Dialup_Admin I ran into some problems: > > When I click on: > > Accounting: cannot connect to sql databse > Problem line appears to be "$link = @da_sql_pconnect($config) or die... > Obviously the script is unable to open a persistent connection to the > MySQL db. Any ideas? > > Edit User: Could not connect to database. > New User: Could not connect to database. > Check Server: Could not connect to database. > > I have changed the sql_username and sql_password in admin.conf. Can MySQL > usernames have an underscore in them? The MySQL user that I set up for > radius was "dialup_admin", could this be the problem? Clearly I'm missing > something big (not unusual). > > Are these problems related to my tinkering around with the file extensions? > > Thanks much. > > ~ Jason > > > - > List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html > - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
