[OpenSIPS-Users] OpenSips Control Panel error

Alex Ionescu alex at opensips.org
Mon Dec 3 00:14:56 CET 2012


Hi,

First thing on the list : selinux - lower a bit the security.
Second thing: in your php.ini file (probably you'll find it somewhere in 
/etc/php ... ) you have to enable *short_open_tags*

That's it for now. Try these things and come back if CP still doesn't work.

Regards,
Alex


On 12/01/2012 04:17 PM, Mimi Cafe wrote:
> I configured opensips control panel on centos, and when I login, the
> page does not load completely. In Apache log, I can see that it throws
> out loads of php related error.
>
> Any ideas?
>
>
> [Wed Nov 28 20:56:15 2012] [error] [client 192.168.18.94] PHP Notice:
> Undefined variable: resultset1 in
> /var/www/html/opensips-cp/web/login.php on line 80, referer:
> http://192.168.18.88/opensips-cp/web/
> [Wed Nov 28 20:56:15 2012] [error] [client 192.168.18.94] PHP Notice:
> Undefined variable: resultset1 in
> /var/www/html/opensips-cp/web/login.php on line 86, referer:
> http://192.168.18.88/opensips-cp/web/
> [Wed Nov 28 20:56:15 2012] [error] [client 192.168.18.94] PHP Warning:
> date(): It is not safe to rely on the system's timezone settings. You
> are *required* to use the date.timezone setting or the
> date_default_timezone_set() function. In case you used any of those
> methods and you are still getting this warning, you most likely
> misspelled the timezone identifier. We selected 'UTC' for 'GMT/0.0/no
> DST' instead in /var/www/html/opensips-cp/web/login.php on line 107,
> referer: http://192.168.18.88/opensips-cp/web/
> [Wed Nov 28 20:56:15 2012] [error] [client 192.168.18.94] PHP Warning:
> date(): It is not safe to rely on the system's timezone settings. You
> are *required* to use the date.timezone setting or the
> date_default_timezone_set() function. In case you used any of those
> methods and you are still getting this warning, you most likely
> misspelled the timezone identifier. We selected 'UTC' for 'GMT/0.0/no
> DST' instead in /var/www/html/opensips-cp/web/login.php on line 107,
> referer: http://192.168.18.88/opensips-cp/web/
> [Wed Nov 28 20:56:15 2012] [error] [client 192.168.18.94] File does not
> exist: /var/www/html/opensips-cp/web/<, referer:
> http://192.168.18.88/opensips-cp/web/main.php
> [Wed Nov 28 21:08:49 2012] [notice] caught SIGTERM, shutting down
> [Wed Nov 28 21:08:49 2012] [notice] SELinux policy enabled; httpd
> running as context unconfined_u:system_r:httpd_t:s0
> [Wed Nov 28 21:08:49 2012] [notice] suEXEC mechanism enabled (wrapper:
> /usr/sbin/suexec)
> [Wed Nov 28 21:08:49 2012] [notice] Digest: generating secret for digest
> authentication ...
> [Wed Nov 28 21:08:49 2012] [notice] Digest: done
> [Wed Nov 28 21:08:50 2012] [notice] Apache/2.2.15 (Unix) DAV/2
> mod_nss/2.2.15 NSS/3.13.1.0 Basic ECC PHP/5.3.3 mod_ssl/2.2.15
> OpenSSL/1.0.0-fips SVN/1.6.11 mod_perl/2.0.4 Perl/v5.10.1 configured --
> resuming normal operations
> [Wed Nov 28 21:09:01 2012] [error] [client 192.168.18.94] File does not
> exist: /var/www/html/opensips-cp/web/<, referer:
> http://192.168.18.88/opensips-cp/web/main.php
> [Wed Nov 28 21:09:09 2012] [error] [client 192.168.18.94] PHP Parse
> error:  syntax error, unexpected '}' in
> /var/www/html/opensips-cp/web/tools/admin/list_admins/template/list_admins.main.php 
>
> on line 152, referer: http://192.168.18.88/opensips-cp/web/menu.php
> [Wed Nov 28 21:09:14 2012] [error] [client 192.168.18.94] PHP Notice:
> Undefined index: acl_username in
> /var/www/html/opensips-cp/web/tools/users/acl_management/template/acl_management.main.php 
>
> on line 28, referer: http://192.168.18.88/opensips-cp/web/menu.php
> [Wed Nov 28 21:09:14 2012] [error] [client 192.168.18.94] PHP Notice:
> Undefined index: acl_domain in
> /var/www/html/opensips-cp/web/tools/users/acl_management/template/acl_management.main.php 
>
> on line 29, referer: http://192.168.18.88/opensips-cp/web/menu.php
> [Wed Nov 28 21:09:14 2012] [error] [client 192.168.18.94] PHP Notice:
> Undefined index: acl_grp in
> /var/www/html/opensips-cp/web/tools/users/acl_management/template/acl_management.main.php 
>
> on line 30, referer: http://192.168.18.88/opensips-cp/web/menu.php
> [Wed Nov 28 21:09:14 2012] [error] [client 192.168.18.94] PHP Notice:
> Undefined variable: options in
> /var/www/html/opensips-cp/web/tools/users/acl_management/lib/functions.inc.php 
>
> on line 95, referer: http://192.168.18.88/opensips-cp/web/menu.php
> [Wed Nov 28 21:09:14 2012] [error] [client 192.168.18.94] PHP Notice:
> Undefined variable: errors in
> /var/www/html/opensips-cp/web/tools/users/acl_management/acl_management.php 
>
> on line 302, referer: http://192.168.18.88/opensips-cp/web/menu.php
> [Wed Nov 28 21:09:14 2012] [error] [client 192.168.18.94] PHP Notice:
> Undefined variable: errors in
> /var/www/html/opensips-cp/web/tools/users/acl_management/acl_management.php 
>
> on line 302, referer: http://192.168.18.88/opensips-cp/web/menu.php
> [Wed Nov 28 21:09:22 2012] [error] [client 192.168.18.94] PHP Notice:
> Undefined index: username in
> /var/www/html/opensips-cp/web/tools/users/alias_management/template/alias_management.main.php 
>
> on line 28, referer: http://192.168.18.88/opensips-cp/web/menu.php
> [Wed Nov 28 21:09:22 2012] [error] [client 192.168.18.94] PHP Notice:
> Undefined index: alias_username in
> /var/www/html/opensips-cp/web/tools/users/alias_management/template/alias_management.main.php 
>
> on line 29, referer: http://192.168.18.88/opensips-cp/web/menu.php
> [Wed Nov 28 21:09:22 2012] [error] [client 192.168.18.94] PHP Notice:
> Undefined index: alias_domain in
> /var/www/html/opensips-cp/web/tools/users/alias_management/template/alias_management.main.php 
>
> on line 30, referer: http://192.168.18.88/opensips-cp/web/menu.php
> [Wed Nov 28 21:09:22 2012] [error] [client 192.168.18.94] PHP Notice:
> Undefined index: alias_type in
> /var/www/html/opensips-cp/web/tools/users/alias_management/template/alias_management.main.php 
>
> on line 31, referer: http://192.168.18.88/opensips-cp/web/menu.php
> [Wed Nov 28 21:09:22 2012] [error] [client 192.168.18.94] PHP Warning:
> array_unshift() expects parameter 1 to be array, null given in
> /var/www/html/opensips-cp/web/tools/users/alias_management/lib/functions.inc.php 
>
> on line 91, referer: http://192.168.18.88/opensips-cp/web/menu.php
> [Wed Nov 28 21:09:22 2012] [error] [client 192.168.18.94] PHP Notice:
> Undefined variable: temp in
> /var/www/html/opensips-cp/web/tools/users/alias_management/lib/functions.inc.php 
>
> on line 142, referer: http://192.168.18.88/opensips-cp/web/menu.php
> [Wed Nov 28 21:09:22 2012] [error] [client 192.168.18.94] PHP Notice:
> Undefined variable: temp in
> /var/www/html/opensips-cp/web/tools/users/alias_management/lib/functions.inc.php 
>
> on line 142, referer: http://192.168.18.88/opensips-cp/web/menu.php
> [Wed Nov 28 21:09:22 2012] [error] [client 192.168.18.94] PHP Notice:
> Undefined variable: errors in
> /var/www/html/opensips-cp/web/tools/users/alias_management/alias_management.php 
>
> on line 305, referer: http://192.168.18.88/opensips-cp/web/menu.php
> [Wed Nov 28 21:09:22 2012] [error] [client 192.168.18.94] PHP Notice:
> Undefined variable: errors in
> /var/www/html/opensips-cp/web/tools/users/alias_management/alias_management.php 
>
> on line 305, referer: http://192.168.18.88/opensips-cp/web/menu.php
>
>
> Regards
>
> Mim
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20121203/773a60f6/attachment.htm>


More information about the Users mailing list