Any and all non-support discussions
Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
by rtepepa » Tue Jul 04, 2006 7:20 pm
Hello im so worried about how to use astguiclient
my question is when i try to open http//localhost/astguiclient/admin.php
i get the following errors:
Parse error: parse error, unexpected T_VARIABLE in /var/www/html/astguiclient/dbconnect.php on line 14
Invalid Username/Password: ||| |SELECT count(*) from vicidial_users where user='' and pass='' and user_level > '6' and ast_admin_access='1';|
what could be the issue
help me please!!!
-
rtepepa
-
- Posts: 10
- Joined: Tue Jul 04, 2006 7:01 pm
by mflorell » Tue Jul 04, 2006 9:18 pm
Looks like when you edited the dbconnect.php script you may have unintentionally commented out or deleted a line. Try copying the file from your zip file download again and edit it making sure the formatting looks the same.
-
mflorell
- Site Admin
-
- Posts: 18384
- Joined: Wed Jun 07, 2006 2:45 pm
- Location: Florida
-
by rtepepa » Wed Jul 05, 2006 8:48 am
Hello
i try to download the original dbconnect.php , however i got more errors:
it seems it couldn´t connect to the database
Warning: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in /var/www/html/astguiclient/dbconnect.php on line 7
Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in /var/www/html/astguiclient/dbconnect.php on line 7
Warning: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in /var/www/html/astguiclient/dbconnect.php on line 8
Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in /var/www/html/astguiclient/dbconnect.php on line 8
Warning: MySQL: A link to the server could not be established in /var/www/html/astguiclient/dbconnect.php on line 8
Invalid Username/Password: ||| |SELECT count(*) from vicidial_users where user='' and pass='' and user_level > '6' and ast_admin_access='1';|
-
rtepepa
-
- Posts: 10
- Joined: Tue Jul 04, 2006 7:01 pm
by mflorell » Wed Jul 05, 2006 8:54 am
is your mysql server running?
does it use this file:
/var/lib/mysql/mysql.sock
or this file:
/tmp/mysql.sock
-
mflorell
- Site Admin
-
- Posts: 18384
- Joined: Wed Jun 07, 2006 2:45 pm
- Location: Florida
-
by rtepepa » Wed Jul 05, 2006 11:39 am
Hello
its running in /var/lib/mysql/msql.sock
in fact its running
ps uax | grep mysql
root 1926 0.0 0.0 4072 4 tty2 S Jun21 0:00 /bin/sh /usr/local/bin/mysqld_safe
mysql 1959 0.0 2.7 134624 1240 tty2 S Jun21 0:01 [mysqld]
mysql 1961 0.0 2.7 134624 1240 tty2 S Jun21 0:00 [mysqld]
mysql 1962 0.0 2.7 134624 1240 tty2 S Jun21 0:00 [mysqld]
mysql 1963 0.0 2.7 134624 1240 tty2 S Jun21 0:00 [mysqld]
mysql 1964 0.0 2.7 134624 1240 tty2 S Jun21 0:00 [mysqld]
mysql 1965 0.0 2.7 134624 1240 tty2 S Jun21 0:00 [mysqld]
mysql 1966 0.0 2.7 134624 1240 tty2 S Jun21 0:00 [mysqld]
mysql 1967 0.0 2.7 134624 1240 tty2 S Jun21 0:00 [mysqld]
mysql 1968 0.0 2.7 134624 1240 tty2 S Jun21 0:00 [mysqld]
mysql 1969 0.0 2.7 134624 1240 tty2 S Jun21 0:00 [mysqld]
root 28362 0.0 1.3 3500 628 pts/0 S 13:00 0:00 grep mysql
regards
-
rtepepa
-
- Posts: 10
- Joined: Tue Jul 04, 2006 7:01 pm
by marvin » Wed Jul 05, 2006 12:00 pm
have u retried restarting it after you edit the new file?
-
marvin
-
- Posts: 69
- Joined: Wed Jun 21, 2006 1:35 am
- Location: Cebu, Philippines
-
by rtepepa » Wed Jul 05, 2006 1:31 pm
hello
you mean i must restart mysql ? if a change the dbconnect.php file?
regards
-
rtepepa
-
- Posts: 10
- Joined: Tue Jul 04, 2006 7:01 pm
by rtepepa » Wed Jul 05, 2006 5:50 pm
Hello everyone
i could make some changes in dbconnect.php and now the only mistake that i have is this:
Invalid Username/Password: ||| |SELECT count(*) from vicidial_users where user='' and pass='' and user_level > '6' and ast_admin_access='1';|
it looks the web page is not asking for user and password
regards
-
rtepepa
-
- Posts: 10
- Joined: Tue Jul 04, 2006 7:01 pm
by enjay » Wed Jul 05, 2006 6:46 pm
Do you have php-mysql installed?
-
enjay
-
- Posts: 806
- Joined: Mon Jun 19, 2006 12:40 pm
- Location: Utah
-
by mflorell » Wed Jul 05, 2006 7:51 pm
What versions of Apache and PHP are you using?
-
mflorell
- Site Admin
-
- Posts: 18384
- Joined: Wed Jun 07, 2006 2:45 pm
- Location: Florida
-
by rtepepa » Thu Jul 06, 2006 9:41 am
Hello
this the version of php
php-ldap-4.2.2-17
php-imap-4.2.2-17
php-mysql-4.2.2-17
php-4.2.2-17
this is apache version
Server version: Apache/2.0.40
regards
-
rtepepa
-
- Posts: 10
- Joined: Tue Jul 04, 2006 7:01 pm
by mflorell » Thu Jul 06, 2006 9:56 am
I'm not really sure what could be wrong with your setup that it is not asking you for a login/pass in an HTTP authentication window. I would recommend upgrading to Apache 2.0.58(since 2.0.40 is 4 years old) and checking your httpd.conf settings in reference to authentication
-
mflorell
- Site Admin
-
- Posts: 18384
- Joined: Wed Jun 07, 2006 2:45 pm
- Location: Florida
-
by rtepepa » Mon Jul 10, 2006 12:33 pm
Hello everybody
well i make update to apache but it looks the same problem
is there something might i do to conect a mysql from php i get the same error
Invalid Username/Password: ||| |SELECT count(*) from vicidial_users where user='' and pass='' and user_level > '6' and ast_admin_access='1'
its not asking for user y password
regards
-
rtepepa
-
- Posts: 10
- Joined: Tue Jul 04, 2006 7:01 pm
by mflorell » Mon Jul 10, 2006 1:20 pm
Have you tried a different browser or a different client machine?
This is most likely an issue with the apache settings if you are not using defaults.
-
mflorell
- Site Admin
-
- Posts: 18384
- Joined: Wed Jun 07, 2006 2:45 pm
- Location: Florida
-
by rtepepa » Mon Jul 10, 2006 1:56 pm
Hello
you mean i must check the http.conf and paramters?
-
rtepepa
-
- Posts: 10
- Joined: Tue Jul 04, 2006 7:01 pm
by mflorell » Mon Jul 10, 2006 2:37 pm
after trying to login from a different web browser, yes you should look at your httpd.conf. Are you using a default httpd.conf?
-
mflorell
- Site Admin
-
- Posts: 18384
- Joined: Wed Jun 07, 2006 2:45 pm
- Location: Florida
-
by rtepepa » Mon Jul 10, 2006 6:11 pm
Yes didnt make nay change
im using default httpd.conf
-
rtepepa
-
- Posts: 10
- Joined: Tue Jul 04, 2006 7:01 pm
by mflorell » Mon Jul 10, 2006 9:22 pm
I really don't know what your problem is then. If you use the default httpd.conf and a source install it will work. I have done it over 100 times on 6 different Linux distros in the last year alone and it always works, every single time. Something has to be misconfigured somewhere.
Have you tried following the SCRATCH_INSTALL?
-
mflorell
- Site Admin
-
- Posts: 18384
- Joined: Wed Jun 07, 2006 2:45 pm
- Location: Florida
-
by rtepepa » Tue Jul 11, 2006 6:29 pm
Hi
in fact i read all the information is written in scratch_install.txt however there is some info that i dont understan but i would like if you please explain about function of vicidial i mean how vicidial send information to asterisk and to mysql server
how can i make a simple explample to dial som calls simultanously
thank you
regarde
-
rtepepa
-
- Posts: 10
- Joined: Tue Jul 04, 2006 7:01 pm
Return to General Discussion
Who is online
Users browsing this forum: W3C [Validator] and 64 guests