New in CWP Edge / LTSFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers. Available now in the Edge-Latest and LTS-Stable versions. Discuss in the forum

LSPHP / Cache ›
CWP Secure KernelKernel-level protectionEvery site in its own sandbox

Every PHP site, cron job and SSH session runs in its own profile that the kernel enforces. A hacked WordPress cannot read other accounts’ files, and crypto miners and unexpected processes are stopped. Discuss in the forum

Secure Kernel ›
CWP DataCenter PanelFree for CWPpro serversAll your servers on one screen

Manage all your CWP servers from one panel: live health, every hosting account, CWP and OS updates on many servers at once, backups, SSL, firewall and Telegram alerts. Discuss in the forum

DataCenter Panel ›
CWP Backup ServerFree for CWPpro serversBackups that ransomware cannot reach

Protected backups of all your CWP servers on a separate machine. Snapshots a hosting server cannot delete, and restore of files, databases, mail and whole accounts in the admin and user panel. Discuss in the forum

Backup Server ›
WordPress ManagerIncluded & freeWordPress managed from the panel

Install, secure, update, back up and clone WordPress sites without FTP. Updates are tested on a staging clone first and applied to the live site only when they pass, with a backup taken first. Discuss in the forum

WordPress Manager ›
CWP CageIsolationEvery account in its own cage

Per-account isolation built from Linux namespaces and cgroups. A break-in or a runaway script on one site cannot reach another account, the panel or the rest of the server; resource limits per hosting package. Discuss in the forum

CWP Cage ›
Script InstallerOne-click appsWordPress, Joomla, Moodle and more in one click

CWP’s own script installer in the user panel: pick an app, choose the domain and folder, and it is live in seconds with its database and admin login created automatically. Ready for LSPHP and LSAPI-Cache. Discuss in the forum

Script Installer ›
DNS ClusterFor every control panelOne DNS cluster for all your servers

Your servers keep creating domains as usual; the zones are collected into one authoritative PowerDNS cluster you control, with DNSSEC, roles and a full activity trail. Accepts CWP, cPanel, Plesk, DirectAdmin and BIND. Discuss in the forum

DNS Cluster ›
CWP BillingFree to useBilling and support system for hosting providers

Clients, services, invoices, payments, domains, server provisioning and support tickets in one place. All gateways, server modules and registrars are free, with free migration from WHMCS, ClientExec and Blesta. Discuss in the forum

CWP Billing ›
CWPproFrom $1.49 per monthEvery CWP feature unlocked

CWPpro is the professional version of Control Web Panel: all features, unlimited accounts, the latest CWP version and security fixes first. $1.49 per month or $11.99 per year. Discuss in the forum

Get CWPpro ›

Domain in Browser doesn't display from user directory

Started by Dumgard, October 29, 2018, 02:43:59 PM

Previous topic - Next topic

Dumgard

I installed CWP, went pro, added mod security.  Went to add a directory and populate it, so I did so and verified that the files were changed to be owned and grouped to the proper user account, and had permissions set correctly.  I even did the User Accounts -> Fix Permissions.

No matter what I do, the actual in browser domain.com shows the default apache page.  It also does not detect file changes, renames, addition of directories or anything else.  This is after using winscp, and the built in cwp file manager.  Even tried to add on extplorer, and it won't recognize the new directory that addon created.  It's as if the domain is somehow locked into the apache directory instead of the user's home/public_html directory where it should be.

Here is the Apache vhosts.conf
# vhost_start example.com
<VirtualHost myip:80>
ServerName example.com
ServerAlias www.example.com
ServerAdmin webmaster@example.com
DocumentRoot /home/example/public_html
UseCanonicalName Off
ScriptAlias /cgi-bin/ /home/example/public_html/cgi-bin/

# Custom settings are loaded below this line (if any exist)
# Include "/usr/local/apache/conf/userdata/example/example.com/*.conf"

<IfModule mod_userdir.c>
UserDir disabled
UserDir enabled example
</IfModule>

<IfModule mod_suexec.c>
SuexecUserGroup example example
</IfModule>

<IfModule mod_suphp.c>
suPHP_UserGroup example example
suPHP_ConfigPath /home/example
</IfModule>

<Directory "/home/example/public_html">
AllowOverride All
</Directory>

</VirtualHost>
# vhost_end example.com


It appears to be pointing properly to /home/xotikz/public_html but nothing on the browser has it appearing that way.  I edited the base index.html file in the public_html folder, then I even changed it's name to add a _ so that it would go away and instead display a 404 or something.  No change.  I'm obviously missing something, but not sure where else I'd go look at settings other than the vhosts.

I also tried rebuilding vhosts multiple times, as well as played around with the SSL.

Added:  Not sure if this is an associated issue, but having an issue trying to generate an AutoSSL:

'DNS of your domain doesn't point to this server or you have htaccess restrictions',

Can not make a certificate for main domain or subdomain.  I stopped and disabled named locally since I use a third party DNS service.

Dumgard

Went through the stickied post about this issue again, but still no solution.

My apache error log is here https://pastebin.com/Zs5v9FFv.

Dumgard

I just did another complete reinstall of CentOS 7.  I followed https://www.webhostface.com/kb/knowledgebase/centos-web-panel-installation/  which is pretty simple, just updating and then installing the version for centos 7 on the 100% clean install.

After that, I run update_cwp script and it shows my pro status.  I make a new user for my domain (the same domain that the server references --- I use server.domain.com for the domain, and then domain.com for my site.) and then log into FTP with that username and password.  I then create a directory, and move the old index.html into the new directory.  Same problem as above.  The website www.domain.com shows the old index.html default page, when it should be a 404... and the new directory pulls up a 404 as if it does not exist.

Dumgard

It was the NAT settings in Left-Menu –> CWP-Settings –> Edit Settings

Afterward, I rebuilt Apache Virtual Hosts and restarted Apache.