Page 1 of 1

Can't access vicidial admin.php

PostPosted: Fri Jun 01, 2007 6:17 am
by dosti
i
i have installed astguiclient on fedora core 4.....and some software specs are
    OS fedora core 4
    linux kernal 2.6.11
    mysql 4.1.11
    php 5.0.4
    perl 5.8.6
    asterisk-perl-0.08
    asterisk-1.2.17
    zaptel-1.2.16
    libpri -1.2.4

and after installing astguiclient
Code: Select all
cd /usr/src/astguiclient
perl install.pl

i can't access it through
Code: Select all
/ourip /vicidial /admin.php.
........cus there is no such folder in
Code: Select all
/var/www/html
directory.....and local host is accessable.........could any one guide me

PostPosted: Fri Jun 01, 2007 8:01 am
by ramindia
Hi

directory.....and local host is accessable.........could any one guide me


can more explaing the above

you able to browse http://localhost/vicidial/admin.php

or you able to see the files in /var/www/html/vicidial ?"

if first one is correct, check the /var/log/httpd/error.log and see if you are getting any errors

ram

PostPosted: Sat Jun 02, 2007 12:52 am
by dosti
i m able to browse welcome.php and when i click on agent and administration page ........its status is Done........and not is show in /var/log/gttpd/error.log

PostPosted: Sat Jun 02, 2007 1:23 am
by ramindia
Hi

how about vicidial.php and admin.php

what is the message you gettting



Post full log message here


ram

PostPosted: Sat Jun 02, 2007 3:18 am
by dosti
sir here is the log msg

[
Code: Select all
client 192.168.0.108] PHP Fatal error:  Call to undefined function mysql_connect() in /var/www/html/vicidial/dbconnect.php on line 38
[Sat Jun 02 06:04:58 2007] [error] [client 192.168.0.108] File does not exist: /var/www/html/favicon.ico


and here is the dbconnect.php

Code: Select all
<?

#

# Copyright (C) 2006  Matt Florell <vicidial@gmail.com>    LICENSE: GPLv2

#

if ( file_exists("/etc/astguiclient.conf") )

{

$DBCagc = file("/etc/astguiclient.conf");

foreach ($DBCagc as $DBCline)

   {

   $DBCline = preg_replace("/ |>|\n|\r|\t|\#.*|;.*/","",$DBCline);

   if (ereg("^PATHlogs", $DBCline))

      {$PATHlogs = $DBCline;   $PATHlogs = preg_replace("/.*=/","",$PATHlogs);}

   if (ereg("^PATHweb", $DBCline))

      {$WeBServeRRooT = $DBCline;   $WeBServeRRooT = preg_replace("/.*=/","",$WeBServeRRooT);}

   if (ereg("^VARDB_server", $DBCline))

      {$VARDB_server = $DBCline;   $VARDB_server = preg_replace("/.*=/","",$VARDB_server);}

   if (ereg("^VARDB_database", $DBCline))

      {$VARDB_database = $DBCline;   $VARDB_database = preg_replace("/.*=/","",$VARDB_database);}

   if (ereg("^VARDB_user", $DBCline))

      {$VARDB_user = $DBCline;   $VARDB_user = preg_replace("/.*=/","",$VARDB_user);}

   if (ereg("^VARDB_pass", $DBCline))

      {$VARDB_pass = $DBCline;   $VARDB_pass = preg_replace("/.*=/","",$VARDB_pass);}

   if (ereg("^VARDB_port", $DBCline))

      {$VARDB_port = $DBCline;   $VARDB_port = preg_replace("/.*=/","",$VARDB_port);}

   }



}

else

{

#defaults for DB connection

$VARDB_server = '192.168.0.108';

$VARDB_user = 'cron';

$VARDB_pass = '1234';

$VARDB_database = 'asterisk';

$WeBServeRRooT = "/var/www/html";

}



$link=mysql_connect("$VARDB_server", "$VARDB_user", "$VARDB_pass");

mysql_select_db("$VARDB_database");



$local_DEF = 'Local/';

$conf_silent_prefix = '7';

$local_AMP = '@';

$ext_context = 'demo';

$recording_exten = '8309';

$WeBRooTWritablE = '1';

$non_latin = '0';   # set to 1 for UTF rules

?>

PostPosted: Sat Jun 02, 2007 3:35 am
by ramindia
Hi


just check php -qa | grep php
if its found result post here


if no results just install

yum install php*

will solve the problem

ram

PostPosted: Sat Jun 02, 2007 4:44 am
by dosti
hi

here is the output of rpm -qa | grep php

[root@localhost ~]# rpm -qa | grep php
php-ldap-5.0.4-10
php-pear-5.0.4-10
php-5.0.4-10

PostPosted: Sat Jun 02, 2007 5:08 am
by ramindia
Hi

try this should solve the problem

yum install php-mysql*

dontforget to restart webserver or server

ram

PostPosted: Mon Jun 04, 2007 7:32 am
by dosti
Thanks ram now i can access it.....that was really problem with
Code: Select all
php-mysql
package.....