-- Own NameServers (ns1.4183r.in, ns2.4183r.in) stuff like that!
-- apache 2 only restart when domain is added (Not daemon)
Latest version of PHP, MySQL, Varnish Cache, File Manager (Main modules needed indeed!! )
phpmyadmin, webmail, in all sub-domain aka Custom Vhost Entries for Webmail, MySQL
Here what i'mm using in my windows server in Zpanel
</VirtualHost>
# Configuration for phpMyAdmin - mysql.domain.com
<VirtualHost *:80>
ServerAdmin webmaster@domain.com
DocumentRoot "C:/zpanel/panel/etc/apps/phpmyadmin/"
ServerName mysql.domain.com
AddType application/x-httpd-php .php3 .php
<Directory />
Options FollowSymLinks Indexes
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
</VirtualHost>
# Configuration for WebMail - webmail.domain.com
<VirtualHost *:80>
ServerAdmin webmaster@domain.com
DocumentRoot "C:/zpanel/panel/etc/apps/webmail/"
ServerName webmail.domain.com
AddType application/x-httpd-php .php3 .php
<Directory />
Options FollowSymLinks Indexes
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
</VirtualHost>
# Add Alias for DNS-Less Previews (Change xxx.xxx.xxx.xxx to your server's external IP)
<VirtualHost *:80>
ServerName xxx.xxx.xxx.xxx
sites.domain.com
DocumentRoot c:/zpanel/hostdata/
AliasMatch ^/~([a-zA-Z0-9]+)/?(.*) c:/zpanel/hostdata/$1/public_html/$2
<Directory C:/zpanel/hostdata>
Options FollowSymLinks Indexes
AllowOverride All
Order Allow,Deny
Allow from all
DirectoryIndex index.php
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_admin_value upload_tmp_dir c:/zpanel/temp
</IfModule>
</Directory>
In DNS module
Add A records for each of
mysql.domain.com
webmail.domain.com
-- apache 2 only restart when domain is added (Not daemon)
Latest version of PHP, MySQL, Varnish Cache, File Manager (Main modules needed indeed!! )
phpmyadmin, webmail, in all sub-domain aka Custom Vhost Entries for Webmail, MySQL
Here what i'mm using in my windows server in Zpanel
</VirtualHost>
# Configuration for phpMyAdmin - mysql.domain.com
<VirtualHost *:80>
ServerAdmin webmaster@domain.com
DocumentRoot "C:/zpanel/panel/etc/apps/phpmyadmin/"
ServerName mysql.domain.com
AddType application/x-httpd-php .php3 .php
<Directory />
Options FollowSymLinks Indexes
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
</VirtualHost>
# Configuration for WebMail - webmail.domain.com
<VirtualHost *:80>
ServerAdmin webmaster@domain.com
DocumentRoot "C:/zpanel/panel/etc/apps/webmail/"
ServerName webmail.domain.com
AddType application/x-httpd-php .php3 .php
<Directory />
Options FollowSymLinks Indexes
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
</VirtualHost>
# Add Alias for DNS-Less Previews (Change xxx.xxx.xxx.xxx to your server's external IP)
<VirtualHost *:80>
ServerName xxx.xxx.xxx.xxx
sites.domain.com
DocumentRoot c:/zpanel/hostdata/
AliasMatch ^/~([a-zA-Z0-9]+)/?(.*) c:/zpanel/hostdata/$1/public_html/$2
<Directory C:/zpanel/hostdata>
Options FollowSymLinks Indexes
AllowOverride All
Order Allow,Deny
Allow from all
DirectoryIndex index.php
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_admin_value upload_tmp_dir c:/zpanel/temp
</IfModule>
</Directory>
In DNS module
Add A records for each of
mysql.domain.com
webmail.domain.com