Can't access vicidial admin.php

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Can't access vicidial admin.php

Postby dosti » Fri Jun 01, 2007 6:17 am

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
dosti
 
Posts: 14
Joined: Sat May 26, 2007 5:39 am

Postby ramindia » Fri Jun 01, 2007 8:01 am

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
Kindly post your feedback, if this solution works.
so its very usefull for others who join later as a NEWBIE.
ramindia
 
Posts: 688
Joined: Wed Oct 11, 2006 4:06 am
Location: India

Postby dosti » Sat Jun 02, 2007 12:52 am

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
dosti
 
Posts: 14
Joined: Sat May 26, 2007 5:39 am

Postby ramindia » Sat Jun 02, 2007 1:23 am

Hi

how about vicidial.php and admin.php

what is the message you gettting



Post full log message here


ram
Kindly post your feedback, if this solution works.
so its very usefull for others who join later as a NEWBIE.
ramindia
 
Posts: 688
Joined: Wed Oct 11, 2006 4:06 am
Location: India

Postby dosti » Sat Jun 02, 2007 3:18 am

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

?>
dosti
 
Posts: 14
Joined: Sat May 26, 2007 5:39 am

Postby ramindia » Sat Jun 02, 2007 3:35 am

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
Kindly post your feedback, if this solution works.
so its very usefull for others who join later as a NEWBIE.
ramindia
 
Posts: 688
Joined: Wed Oct 11, 2006 4:06 am
Location: India

Postby dosti » Sat Jun 02, 2007 4:44 am

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
dosti
 
Posts: 14
Joined: Sat May 26, 2007 5:39 am

Postby ramindia » Sat Jun 02, 2007 5:08 am

Hi

try this should solve the problem

yum install php-mysql*

dontforget to restart webserver or server

ram
Kindly post your feedback, if this solution works.
so its very usefull for others who join later as a NEWBIE.
ramindia
 
Posts: 688
Joined: Wed Oct 11, 2006 4:06 am
Location: India

Postby dosti » Mon Jun 04, 2007 7:32 am

Thanks ram now i can access it.....that was really problem with
Code: Select all
php-mysql
package.....
dosti
 
Posts: 14
Joined: Sat May 26, 2007 5:39 am


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 55 guests