Author Topic: Apache Rebuild vHost has trouble  (Read 13536 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Apache Rebuild vHost has trouble
« on: October 23, 2015, 04:48:30 AM »
Hello

Today, I rebuild from Apache + Nginx + Varnish to Apache only but it have trouble like image attached and some vhost missed IP addres so Apache can't start.



Your CWP version: 0.9.8.9

Please help me.

Thank you.
« Last Edit: October 23, 2015, 04:56:17 AM by d2thanh »

Offline
*****
Re: Apache Rebuild vHost has trouble
« Reply #1 on: October 26, 2015, 08:29:38 PM »
Hi.

Check if you have setted "Shared IP", also you can change it in the vhost.conf file: "Apache Settings" -> "Edit Apache vHosts"
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: Apache Rebuild vHost has trouble
« Reply #2 on: October 27, 2015, 06:51:36 AM »
I put shared IP direct to vHost template file. It solved Apache only build.

But when switch to Apache + nginx or Apache + nginx + varnish, this issue happen again.

Look like nginx configuration and varnish still use it to read shared IP but can't.

Offline
*****
Re: Apache Rebuild vHost has trouble
« Reply #3 on: October 27, 2015, 07:51:41 AM »
Hi.
Seems like you didn't set IP CWP.admin.
"CWP Settings" -> "Edit Settings" -> "Shared IP".
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: Apache Rebuild vHost has trouble
« Reply #4 on: October 27, 2015, 09:39:51 AM »
Hello

I did it, but it doesn't help

Seem something weird happened here:



As you see, dev.negabox.com and piwik.november.vn doesn't have IP, but static.menhthientu.com and the rest have.

Maybe something really wrong in vhost_rebuild.php

Offline
*
Re: Apache Rebuild vHost has trouble
« Reply #5 on: October 30, 2015, 08:55:25 AM »
Hello,

do you have any idea about this case?

Please help me....

Thank you.

Offline
*****
Re: Apache Rebuild vHost has trouble
« Reply #6 on: November 01, 2015, 07:35:38 AM »
Hello,

do you have any idea about this case?

Please help me....

Thank you.

No, vhost_rebuld.php works great. We're couldn't reproduce the issue.
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: Apache Rebuild vHost has trouble
« Reply #7 on: November 13, 2015, 03:01:28 PM »
Notice: Undefined index: ip_address in /usr/local/cwpsrv/htdocs/resources/admin/modules/vhost_rebuild.php(1) : eval()'d code(1) : eval()'d code on line 55

I confirm the vhost_rebuild.php have an issue.

On a fresh install of CWP, domain's template is call only for the owner domain (the one at user register).
For all other the subdomain template is call.
The issue appears when you rebuild subdomains hasn't got any IP address.

For a quick fixed, if no IP take the shared IP of the panel.

Offline
*
Re: Apache Rebuild vHost has trouble
« Reply #8 on: January 04, 2016, 08:53:59 AM »
Thanks idsquare

Look like not only me met this trouble.

I want to use nginx + varnish + apache for this server. If only use Apache, I can do that quick fix (actually I did to make my sites run). But nginx+varnish+apache, it is very complicated.

@Igor: did you try to reproduce with idsquare's step?