sentora / sentora-core

Sentora is a web hosting control panel written in PHP for *NIX
GNU General Public License v3.0
653 stars 444 forks source link

Domain vhosts not working correctly #53

Closed jpswade closed 10 years ago

jpswade commented 10 years ago

Sentora control panel login seems to bind to every domain/host/ip pointing to the server.

It does not seem to bind a new domain (example.com) to the web server, it does not serve web pages.

This issue is outlined here: http://forums.sentora.org/showthread.php?tid=155

iTpain commented 10 years ago

i have the same issues all my domains are pointing to my cp on centos 7

Caffe1neAdd1ct commented 10 years ago

Have any virtual hosts generated in /etc/zpanel/configs/apache/httpd-vhosts.conf ?

iTpain commented 10 years ago

All i got is this although i have one domain added and DNS records created \

==== YOU MUST NOT EDIT THIS FILE : IT WILL BE OVERWRITTEN ====

Use Sentora Menu -> Admin -> Module Admin -> Apache config

################################################################

NameVirtualHost *:80

Configuration for Sentora control panel.

<VirtualHost *:80> ServerAdmin zadmin@localhost DocumentRoot "/etc/zpanel/panel/" ServerName cp.mydomain.pw AddType application/x-httpd-php .php <Directory "/etc/zpanel/panel/"> Options +FollowSymLinks -Indexes AllowOverride All Require all granted

Custom settings are loaded below this line (if any exist)

################################################################

Sentora generated VHOST configurations below.....

################################################################

Caffe1neAdd1ct commented 10 years ago

Ok the vhost for the domain you've added in the domain module hasn't generated.

Can you run:

php /etc/zpanel/panel/bin/daemon.php

and post up the output?

MBlagui commented 10 years ago

Issue on centos 7.0 as CGI prevent apache from reloading. MUST disable cgi in vhost conf file.

https://raw.githubusercontent.com/MBlagui/sentora-core/master/modules/apache_admin/hooks/OnDaemonRun.hook.php

Already identified and set a quick fix here until we take a decision for CGI:

https://github.com/sentora/sentora-core/pull/54

iTpain commented 10 years ago

Indeed @MBlagui had fixed my centos 7 install and all work ok now

allebb commented 10 years ago

Just to confirm it's working fine in Ubuntu too! - I tested this today!

...closing bug as It appears to be fixed, can re-open if required.