Ehcp

I have a domain xxxx.com & xxxx.co.uk
when i add theese to ehcp through add domain
it adds fine i get the folders in /var/www/vhosts/xxx/xxx

But when i type xxxx.com or xxxx.co.uk all i get is ehcp default page and not the uder construction page
Before i had normall apache2 and worked in /var/www when i typed xxxx.com

I have a static ip

Just cant get it to work

Ftp works fine

if i put files in /var/www and get rid of index.html it works aswell

check & make sure your ehcp daemon running:
/etc/init.d/ehcp restart

after that,
check apachehcp.conf file in ehcp dir. do you see your domains inside it.
if not, your daemon not running.

I did this restarted checked config file and it is there here it is

# webserver config file for nginx webserver

server {
listen 80;
server_name builders2hire.com www.builders2hire.com ; # this is changed to *.builders2hire.com within classapp.php

access_log /var/www/vhosts/builders2hire.com/builders2hire.com/logs/access_log;
error_log /var/www/vhosts/builders2hire.com/builders2hire.com/logs/error_log;
access_log /var/log/apache_common_access_log;

location / {
root /var/www/vhosts/builders2hire.com/builders2hire.com/httpdocs;
index index.html index.htm index.php;
}

location ~ \.php$ {
try_files $uri = 404;
fastcgi_pass 127.0.0.5:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/vhosts/builders2hire.com/builders2hire.com/httpdocs$fastcgi_script_name;
fastcgi_param PHP_ADMIN_VALUE "open_basedir=/var/www/vhosts/builders2hire.com/builders2hire.com:/tmp:/usr/share/php:/usr/share/pear:/usr/share/phpmyadmin:/var/www/new/ehcp/webmail:/usr/share/roundcube";
include fastcgi_params;
fastcgi_read_timeout 300;
}

location /phpmyadmin {
root /usr/share/;
index index.php index.html index.htm;
location ~ ^/phpmyadmin/(.+\.php)$ {
try_files $uri =404;
root /usr/share/;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $request_filename;
include /etc/nginx/fastcgi_params;
}
location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
root /usr/share/;
}
}

location /phpMyAdmin {
rewrite ^/* /phpmyadmin last;
}

location /webmail {
root /var/www/new/ehcp/;
index index.php index.html index.htm;
location ~ ^/webmail/(.+\.php)$ {
try_files $uri =404;
root /var/www/new/ehcp/;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $request_filename;
include /etc/nginx/fastcgi_params;
}

location ~* ^/webmail/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
root /var/www/new/ehcp/;
}
}

location /roundcube {
root /usr/share/;
index index.php index.html index.htm;
location ~ ^/roundcube/(.+\.php)$ {
try_files $uri =404;
root /usr/share/;
fastcgi_pass 127.0.0.5:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $request_filename;
include /etc/nginx/fastcgi_params;
}
location ~* ^/roundcube/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
root /usr/share/;
}
}

# any files that should be avoided, may be put here:
location ~ (apache_subdomain_template|apachetemplate|apachetemplate_ipbased|apachetemplate_passivedomains|/\.conf$|/\.ht|access_log|error_log|access\.log|error\.log) {
deny all;
}
}

I notice the ehpc is in var/www/new/ehcp
but when i add domain it goes to /var/www/vhosts
Also in the config file above
i noticed it says for nginx
i have apache2 running and not nginx

that is real problem. you seems to use apache, while your config is nginx.
to fix it, go to ehcp->options->advanced->select apache-nonssl, then save

ehcp->options->syncdomains

if still not works, and if your gui is not accessible, follow: Common daemon commands that can be given from command line: http://ehcp.net/?q=node/897 (may be used when web interface cannot be reached)

it is alredy on non ssl
and on apache2
its strange because i have never installed nginx
i have even reinstalled ubuntu dismorning for fresh copy
gonna try selecting nginx in control panel

For three days i have been pulling my hair reinstalling ubuntu a ehcp

All had to do is go to options/advanced and change setting from apache2 to nginx

Strange because i have never installed nginx but all is working TOP STUFF i can start growing my hair back now lol

i had same problem on fresh ubuntu and apache install. apache config checker found same error with the apachecp.conf file. The apachetemplate file in the /var/www/new/ehcp directory uses nginx style script that apache does not recognize. I deleted the configured domains from the ehcp control panel and I copied all of the files in the /var/www/new/ehcp/etc/apache2 directory to the /var/www/new/ehcp directory for good measure. I then re-setup the domains and voila, they worked!!

I think it was possible that the fix for the nginx server that was recently implemented was left in the main config directory by mistake.

After looking through the logs I can see the ehcp daemon process can not find system commands, apache2ctl or ifconfig & fails to restart apache.
This is due to environment variables not being set.

Add the below line imedietly after the comments in /etc/init.d/ehcp

export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

Then restart ehcp