Errors after install

Started by saltire, November 05, 2014, 09:18:15 AM

Previous topic - Next topic

saltire

Hi,
Ive installed CWP< all seems fine except whenI try to look at cwp addons, then the following error occurs. ( I have name servers set to the free dns name servers.
Is it just a case of waiting to see if name servers propagate fully?


Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /usr/local/cwpsrv/htdocs/resources/admin/modules/webpanel_addons.php(1) : eval()'d code(1) : eval()'d code on line 1

Warning: file_get_contents(http://centos-webpanel.com/webpanel/main.php?app=rc4key&version=0.9.6): failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /usr/local/cwpsrv/htdocs/resources/admin/modules/webpanel_addons.php(1) : eval()'d code(1) : eval()'d code on line 1

Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /usr/local/cwpsrv/htdocs/resources/admin/modules/webpanel_addons.php(1) : eval()'d code(1) : eval()'d code on line 1

Warning: file_get_contents(http://centos-webpanel.com/webpanel/main.php?app=addons&version=0.9.6): failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /usr/local/cwpsrv/htdocs/resources/admin/modules/webpanel_addons.php(1) : eval()'d code(1) : eval()'d code on line 1

Warning: Division by zero in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php(1) : eval()'d code(1) : eval()'d code on line 1

Notice: String offset cast occurred in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php(1) : eval()'d code(1) : eval()'d code on line 1

Notice: Uninitialized string offset: 0 in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php(1) : eval()'d code(1) : eval()'d code on line 1

Warning: Division by zero in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php(1) : eval()'d code(1) : eval()'d code on line

Administrator

can you add the output of the following comand
cat /etc/resolv.conf

saltire

Hi,
output below


[root@Damos ~]# cat /etc/resolv.conf
nameserver 127.0.0.1
nameserver 62.210.16.6

Administrator

replace it with

nameserver 8.8.8.8
nameserver 8.8.4.4

saltire

even though Im using the freedns names?

tia

saltire

hI , added 8.8.8.8 & 4.4.4.4 same issue

Administrator

have you tried to make a test like
ping google from the shell ?

saltire

Hi,
I left it for a day & it works now...  Now have different issue...  If I install mod_security, apache stops working.

Administrator

you will need to check apache error logs.
/usr/local/apache/logs/error_log

erm3nda

#9
I got same proble few times about cat /etc/resolv.conf.
Usually the fastest test is to try ping as admin suggest you.

The file cat /etc/resolv.conf is overwritted by networking service in some cases. (This is the why it has back to normal working without intervention)

If you have local IP on resolvconf and doesn't work, maybe you have named service down, or you don't have setup it. You are not oblied to use your own dns, cuz your dns server has only your dns records. To reach full internet you must setup a public dns, like google's 8.8.8.8 and 8.8.4.4.

I hard-fix that by removing write permission on file /etc/resolv.conf using command chmod -w /etc/resolv.conf and setting file like admin suggest:
nameserver 8.8.8.8
nameserver 8.8.4.4


Regards.
8==D it's a function that try to compare 8 (int) against D (string) which returns True or False depending on the asker.