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 ›

.htaccess (mod rewrite) Rewrite not working - .htaccess being ignored by Apache

Started by Administrator, March 28, 2014, 07:46:05 PM

Previous topic - Next topic

Administrator

If you use mod rewrite and .htaccess for your website than you will need to add this in your vhost file (change USERNAME)

you need to edit where your domain is listed in file:
/etc/httpd/conf/httpd_webpanel_vhosts.conf

Add this:
<Directory "/home/USERNAME/public_html">
AllowOverride All
</Directory>


add this config beffore </VirtualHost> for your domain

etc

hellow
Thank you for Developing CWP :)
Now I've got it installed!

I create a user and submit a domain
myDomain.com
by username
myUname
and
.htaccess file on this domain root have this code:
----------------------------------------
Options -Indexes
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
-----------------------------------------
rewrite mode not working in server... :(
I use this topic method
and
I add this code before <Virtualhost> of  myDomain.com
virtual host>>myip:2030/index.php?module=file_editor&file=/usr/local/apache/conf.d/vhosts.conf
-----------------------------------------
<Directory "/home/<myUname>/public_html">
AllowOverride All
</Directory>
-----------------and too in virtual host template--------------
And I reboot server! after changing configs
But It not worked and
500 Internal server occurred!

in CWP, Apache not installed as service and i can't upgrade it or install any mod_ with yum!!!
how to install mod_rewrite in CentOS 6.6 CWP ?

Administrator

List of modules (also this is available in the admin panel!)
/usr/local/apache/bin/apachectl -M

Listed on FAQ page
http://centos-webpanel.com/faq

- Error Message – 500 Internal Server Error
http://forum.centos-webpanel.com/php/suphp-500-internal-server-error/

Turga

Hi, I am running this command but its say it is a new directory.

sudo vi /etc/httpd/conf/httpd_webpanel_vhosts.conf

My virtual server runnig CentOS 6.5(Final)

Edit: I solved the problem. In CWP Apache Settings there is a panel that configure the vhosts.

anzalichi

hello there

i have just installed CWP and i have same problem,i have checked vhost from panel ,
and also checked Fix Permissions. please help...







vhosts.conf :


# vhost_start baharan-melk.ir
<VirtualHost 208.67.16.18:8181>
ServerName baharan-melk.ir
ServerAlias www.baharan-melk.ir
ServerAdmin xxxxxxxx@yahoo.com
DocumentRoot "/home/marvik/public_html"
ScriptAlias /cgi-bin/ "/home/marvik/public_html/cgi-bin/
#
# Custom settings are loaded below this line (if any exist)
# Include "/usr/local/apache/conf/userdata/marvik/baharan-melk.ir/*.conf

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

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

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

</VirtualHost>
# vhost_end baharan-melk.ir






# vhost_start test.baharan-melk.ir
<VirtualHost 208.67.16.18:80>
ServerName test.baharan-melk.ir
ServerAlias www.test.baharan-melk.ir
ServerAdmin xxxxxxxxxx@yahoo.com
DocumentRoot "/home/marvik/public_html/test"
ScriptAlias /cgi-bin/ /home/marvik/public_html/test/cgi-bin/
#
# Custom settings are loaded below this line (if any exist)
# Include "/usr/local/apache/conf/userdata/marvik/test.baharan-melk.ir/*.conf

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

<IfModule mod_suphp.c>
        suPHP_UserGroup marvik marvik
</IfModule>

<Directory "/home/marvik/public_html/test">
        AllowOverride All
</Directory>

</VirtualHost>
# vhost_end test.baharan-melk.ir


blackstar

Hello, 301 redirects are not working. This is a very urgent issue. What should I do to help?

This worked before. But now it does not work.

Options +FollowSymlinks
RewriteEngine on
ReWriteCond %{HTTP_HOST} ^(www.)?old-domain.com$ [NC]
ReWriteRule ^(.*)$ http://www.new-domain.org/$1 [R=301,L]
______________________________________________________________________________

Now this code works.

RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.old-domain\.com
RewriteRule (.*) http://www.new-domain.org/$1 [R=301,L]

wordin

Thank you,

Word Inb