Vicidial admin.php access error. "require dbconnect.php

All installation and configuration problems and questions

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

Vicidial admin.php access error. "require dbconnect.php

Postby ramonvel » Fri May 11, 2007 9:09 am

When I access the server http://10.1.1.7/vicidial/admin.php it says "required dbconnect.php"

Per the scratch installation says modify the astguiclient.conf .
# this is the astguiclient configuration file
# all comments will be lost if you run install.pl again

# Paths used by astGUIclient
PATHhome => /usr/share/astguiclient
PATHlogs => /var/log/astguiclient
PATHagi => /var/lib/asterisk/agi-bin
PATHweb => /usr/local/apache2/htdocs
PATHsounds => /var/lib/asterisk/sounds
PATHmonitor => /var/spool/asterisk/monitor

# The IP address of this machine
VARserver_ip => 10.1.1.7

# Database connection information
VARDB_server => localhost
VARDB_database => asterisk
VARDB_user => cron
VARDB_pass => 1234
VARDB_port => 3306

the dbconnect.php was in folders agc, vicidial but not in the asguiclient folder ; so, I put a copy of it there.

I did a search of dbconnect.php and here is the output.

[root@dialer astguiclient]# find / -name dbconnect.php
/usr/src/astguiclient/LANG_www/agc_en/dbconnect.php
/usr/src/astguiclient/LANG_www/agc_pt/dbconnect.php
/usr/src/astguiclient/LANG_www/vicidial_en/dbconnect.php
/usr/src/astguiclient/LANG_www/vicidial_es/dbconnect.php
/usr/src/astguiclient/LANG_www/agc_br/dbconnect.php
/usr/src/astguiclient/LANG_www/agc_it/dbconnect.php
/usr/src/astguiclient/LANG_www/vicidial_el/dbconnect.php
/usr/src/astguiclient/LANG_www/agc_pl/dbconnect.php
/usr/src/astguiclient/LANG_www/agc/dbconnect.php
/usr/src/astguiclient/LANG_www/agc_de/dbconnect.php
/usr/src/astguiclient/LANG_www/agc_fr/dbconnect.php
/usr/src/astguiclient/LANG_www/vicidial_de/dbconnect.php
/usr/src/astguiclient/LANG_www/agc_el/dbconnect.php
/usr/src/astguiclient/LANG_www/agc_es/dbconnect.php
/usr/src/astguiclient/LANG_www/vicidial/dbconnect.php
/usr/src/astguiclient/www/agc/dbconnect.php
/usr/src/astguiclient/www/vicidial/dbconnect.php
/usr/local/apache2/htdocs/vicidial/dbconnect.php
/usr/local/apache2/htdocs/agc/dbconnect.php
/usr/local/apache2/htdocs/astguiclient/dbconnect.php

Can somebody please, help me out to resolve this issue.
The Os is CenOs 4.4 , php 4.4.4 and apache 2.0.59, Linux kernel version 2.6.9

In advance thanks for your help.
Ray
ramonvel
 
Posts: 59
Joined: Fri Apr 13, 2007 9:55 am
Location: Miami

Postby ramindia » Fri May 11, 2007 11:59 am

Hi

in general most of the redhat/FC/Centos

default installation of apache will store all the files in
/var/www/html

if you have done custome installation.

check the where is your default web path in httpd.conf

ram
ramindia
 
Posts: 688
Joined: Wed Oct 11, 2006 4:06 am
Location: India

Vicidial admin.php access error. "require dbconnect.php

Postby ramonvel » Fri May 11, 2007 12:24 pm

On httpd.conf I find this:

ServerRoot "/usr/local/apache2/

Any recomendations on changes and next steps to follow ?
Ray
ramonvel
 
Posts: 59
Joined: Fri Apr 13, 2007 9:55 am
Location: Miami

Postby ramindia » Fri May 11, 2007 12:56 pm

Hi

try changing from
/usr/local/apache2
to
/usr/local/apache2/htdocs

to

if your installation path of vicidial is /usr/local/apache2/htdocs

so i belive you need to change the default path to htdocs in your config of
apache and try

ram
ramindia
 
Posts: 688
Joined: Wed Oct 11, 2006 4:06 am
Location: India

Vicidial admin.php access error. "require dbconnect.php

Postby ramonvel » Fri May 11, 2007 10:01 pm

Thanks for your help and I'm sorry for taking so long to respond back.

I tried your recomendation. I tried both changing http.conf root to /usr/local/apache2/htdocs , but it gave error saying it din't find index4.php + something else; also, I changed it the opposite way.

I changed astguiclient.conf to show PATHweb => /usr/local/apache2/ << but no positive results.

Any other recomendation is greatly appreciated.
Ray
ramonvel
 
Posts: 59
Joined: Fri Apr 13, 2007 9:55 am
Location: Miami

Postby ramindia » Fri May 11, 2007 11:09 pm

Hi

thats the best recomendation we did.

best thing you can observ the http log to get better idea

or opt a consultant to solve the problem.

ram
ramindia
 
Posts: 688
Joined: Wed Oct 11, 2006 4:06 am
Location: India

Postby bongio2 » Tue May 15, 2007 4:35 am

i have the same problem, i follw all the scratch install (slackware 11 and all the option except those regarding clustering)...
I changed the PATHweb var in /etc/astguiclient.conf as "/var/www/htdocs" like the default document root in apache...
I've make as described above changing the serverroot on httpd.conf as "/var" on my setup (originally was /usr) but apache itself doesnt work, so i changed back and i ended my ideas.......
Any other ideas?
TIA
bongio2
 
Posts: 4
Joined: Tue May 15, 2007 3:55 am

Postby sberg » Fri May 18, 2007 3:42 am

Hi

first check whether u can access the apache default web page.
go the web root folder, in that there should be avicidial folder and check the dbconnect.php..if it is there then installation is done correctly other wise there was problem in installation go for fresh instllaion agian...

set the document root = /www in httpd.conf. (create a folder in /www)

put and index.html in the /www and restart the apache and checkk htp://localhost/index.html
if this is working then u have to install the astguiclient once again and at the installation it prompts for web path give /www
after finishing installation check in the /www directory u should get folders of agc,vicidial ..
check admin.php and dbconnect.php in vicidial folder.

Regards,
Sberg
sberg
 
Posts: 18
Joined: Thu May 10, 2007 5:43 am

Postby sheikhatif » Fri May 18, 2007 7:52 am

M getting the same problem but sort this issue out :wink: try to use these steps for Fedora n CentOS..
1. mkdir /var/run/mysql
2. mkdir /var/lib/mysql
3. ln -s /tmp/mysql.sock /var/run/mysql/mysql.sock
4. ln -s /tmp/mysql.sock /var/lib/mysql/msql.sock

u r done enjoyyyyyyyyyyyyyyyyyyyyyyyyyyyyzzzzz :wink:
sheikhatif
 
Posts: 41
Joined: Sat Jul 15, 2006 12:58 pm
Location: Pakistan

Postby Op3r » Fri May 18, 2007 8:44 am

in fedora and centos.

yum -y install mysql-server

:)
Get paid for US outbound Toll Free calls. PM me. visit https://stopmanualdial.com for vicidial services.
Op3r
 
Posts: 1432
Joined: Wed Jun 07, 2006 7:53 pm
Location: Manila

Postby sheikhatif » Tue May 22, 2007 2:03 pm

One thing more After installing perl modules;
in FC or CentOS write
#yum install perl-DBD-MySQL.i386

so you should start mysql
sheikhatif
 
Posts: 41
Joined: Sat Jul 15, 2006 12:58 pm
Location: Pakistan


Return to Support

Who is online

Users browsing this forum: Majestic-12 [Bot] and 76 guests