Re: Php error with Dialup Admin and FreeBSD
Hi, > $auth_user = $HTTP_SERVER_VARS["PHP_AUTH_USER"]; > if ($auth_user){ > if (is_file("../html/buttons/$auth_user/buttons.html.php3")) > include("../html/buttons/$auth_user/buttons.html.php3"); > else{ > if (is_file("../html/buttons/default/buttons.html.php3")) > include("../html/buttons/default/buttons.html.php3"); > } > } > else{ > if (is_file("../html/buttons/default/buttons.html.php3")) > include("../html/buttons/default/buttons.html.php3"); > } > ?> files are .php3 extensionssee what happens if you tell apache config that that means they are PHP files (edit the relevant php module config in apache) alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Php error with Dialup Admin and FreeBSD
Hi, > Dialup Admin works perfectly on Ubuntu 10.04 64 bit with php 5.3 > except for some minor errors. > > No alteration is needed. Indeed. I updated the code to 5.3 compliance a long while ago, and it's running on several of our servers (halfways-recent openSUSE). The file extensions remained, but will be changed to .php in the future. There is NO php3-only code in these files. Greetings, Stefan Winter - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Php error with Dialup Admin and FreeBSD
On 2012-06-01 11:58 PM, Kaya Saman wrote: Hi, I'm trying to test FreeRADIUS on FreeBSD which is the easy part however, I need a web ui and so Dialup Admin directly comes with the port on FreeBSD. Trying to get it running I am having difficulty with php it seems?? I get a green screen saying "Dialup Admin" and that's it. On the left hand side of the screen I have this: I went through the install guide here: http://wiki.freeradius.org/Dialup-admin#Apache+Configuration However, I am using Php5.4 which gets installed by default on FreeBSD unless using a "Legacy" port. Could anyone help me getting this to work or is the web-ui simply too old to be able to work with the latest FreeBSD variant? Regards, Kaya Dialup Admin works perfectly on Ubuntu 10.04 64 bit with php 5.3 except for some minor errors. No alteration is needed. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Php error with Dialup Admin and FreeBSD
On Fri, Jun 01, 2012 at 04:58:20PM +0100, Kaya Saman wrote: > Hi, > > I'm trying to test FreeRADIUS on FreeBSD which is the easy part > however, I need a web ui and so Dialup Admin directly comes with the > port on FreeBSD. > > Trying to get it running I am having difficulty with php it seems?? > > I get a green screen saying "Dialup Admin" and that's it. On the left > hand side of the screen I have this: > > $auth_user = $HTTP_SERVER_VARS["PHP_AUTH_USER"]; > if ($auth_user){ > if (is_file("../html/buttons/$auth_user/buttons.html.php3")) > include("../html/buttons/$auth_user/buttons.html.php3"); > else{ > if (is_file("../html/buttons/default/buttons.html.php3")) > include("../html/buttons/default/buttons.html.php3"); > } > } > else{ > if (is_file("../html/buttons/default/buttons.html.php3")) > include("../html/buttons/default/buttons.html.php3"); > } > ?> > > I went through the install guide here: > > http://wiki.freeradius.org/Dialup-admin#Apache+Configuration > > However, I am using Php5.4 which gets installed by default on FreeBSD > unless using a "Legacy" port. > I left php4 on the machine running Dialup Admin. I think I first tried 5.x but the Dialup Admin code is old and hasn't been updated for deprecated and removed features, IIRC. We originally installed it in a jail on FreeBSD 6.x. The machine is now running FreeBSD 8.3. However, we've left the installed Apache/PHP ports alone. It's firewalled off from public access. Are you sure you spelled the AddType rule correctly in httpd.conf to tell it that .php3 files are php applications? AddType application/x-httpd-php .php3 That's my first guess for why you are seeing php code output in the page rather than executed. If I had it to do over again, I would probably use the DaloRADIUS web interface instead of Dialup Admin. We populate the DB with scripts from our billing/provisioning system and just use Dialup Admin for read-only access to call logs for the occasional tech support calls. -- Scott LambertKC5MLE Unix SysAdmin lamb...@lambertfam.org - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Php error with Dialup Admin and FreeBSD
Hi, I'm trying to test FreeRADIUS on FreeBSD which is the easy part however, I need a web ui and so Dialup Admin directly comes with the port on FreeBSD. Trying to get it running I am having difficulty with php it seems?? I get a green screen saying "Dialup Admin" and that's it. On the left hand side of the screen I have this: I went through the install guide here: http://wiki.freeradius.org/Dialup-admin#Apache+Configuration However, I am using Php5.4 which gets installed by default on FreeBSD unless using a "Legacy" port. Could anyone help me getting this to work or is the web-ui simply too old to be able to work with the latest FreeBSD variant? Regards, Kaya - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Error with dialup admin
Hello all I have installed freeradius 1.1.0 in freebsd 6.0. While clicking on statistic menu of dialup page I got this error. Warning: mktime() expects parameter 1 to be long, string given in /usr/home/httpd/baayu.com.np/baayucom/dialbaayu/lib/functions.php3 on line 83 Warning: mktime() expects parameter 1 to be long, string given in /usr/home/httpd/baayu.com.np/baayucom/dialbaayu/lib/functions.php3 on line 83 - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html