Author Topic: Centos 6 install on dedicated server  (Read 13347 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Centos 6 install on dedicated server
« on: January 26, 2017, 10:24:18 AM »
Hello,

Something is wrong with the current install, because I have used the CWP on this server half years ago.
After install, I want to use the "Apache & Nginx Reverse Proxy" option.
After that and after rebuild vhosts the netstat block is empty.
In SSH:
service httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd: httpd: Syntax error on line 419 of /usr/local/apache/conf/httpd.conf: Syntax error on line 2 of /usr/local/apache/conf.d/rpaf.conf: Cannot load /usr/local/apache/modules/mod_rpaf.so into server: /usr/local/apache/modules/mod_rpaf.so: cannot open shared object file: No such file or directory
                                                           [FAILED]




Other info for help: why I get this warning on all page:

Warning: [obfuscated](): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /usr/local/cwpsrv/htdocs/admin/index.php on line 0

Warning: [obfuscated](http://centos-webpanel.com/webpanel/main.php?app=ads_all): failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /usr/local/cwpsrv/htdocs/admin/index.php on line 0

Offline
**
Re: Centos 6 install on dedicated server
« Reply #1 on: January 26, 2017, 10:32:08 AM »

Offline
*
Re: Centos 6 install on dedicated server
« Reply #2 on: January 26, 2017, 10:42:43 AM »
I think the official install help is not enough.
Because If you set your hostname with "hostname anything.yourdomain.com" that is destroy if you restart your server.
And the installer tutorial say reboot after "yum -y update", so then your hostname set useless, you need to do again, or edit in "/etc/sysconfig/network" AND "/etc/hosts"

based on this: https://support.rackspace.com/how-to/centos-hostname-change/

Am I see this good?
« Last Edit: January 26, 2017, 10:45:40 AM by dormeo »

Offline
**
Re: Centos 6 install on dedicated server
« Reply #3 on: January 26, 2017, 10:47:16 AM »
http://wiki.centos-webpanel.com/how-to-setup-name-servers

Can see that, and after rebuild all vhost, try

Offline
*
Re: Centos 6 install on dedicated server
« Reply #4 on: January 26, 2017, 10:48:15 AM »
no, what I wrote is BEFORE CWP install

http://wiki.centos-webpanel.com/how-to-setup-name-servers

Can see that, and after rebuild all vhost, try

Offline
*
Re: Centos 6 install on dedicated server
« Reply #5 on: January 26, 2017, 11:44:51 AM »
Hello,

Something is wrong with the current install, because I have used the CWP on this server half years ago.
After install, I want to use the "Apache & Nginx Reverse Proxy" option.
After that and after rebuild vhosts the netstat block is empty.
In SSH:
service httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd: httpd: Syntax error on line 419 of /usr/local/apache/conf/httpd.conf: Syntax error on line 2 of /usr/local/apache/conf.d/rpaf.conf: Cannot load /usr/local/apache/modules/mod_rpaf.so into server: /usr/local/apache/modules/mod_rpaf.so: cannot open shared object file: No such file or directory
                                                           [FAILED]




Other info for help: why I get this warning on all page:

Warning: [obfuscated](): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /usr/local/cwpsrv/htdocs/admin/index.php on line 0

Warning: [obfuscated](http://centos-webpanel.com/webpanel/main.php?app=ads_all): failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /usr/local/cwpsrv/htdocs/admin/index.php on line 0


Any update on this? I have this php_network error also, completely out of the blue, no issues for months.

Offline
*****
Re: Centos 6 install on dedicated server
« Reply #6 on: January 27, 2017, 06:16:58 AM »
run this command and share the output :
Code: [Select]
cat /etc/resolv.conf
for apache you need to check the logs