Create your own PHP website builder! Support Buy

Apache configuration

This is the most difficult part of ImpressPages MultiSite installation because it depends on your environment. In general, the only thing you need to do is to instruct Apache to point all requests of any domain to the single directory where MultiSite has been installed.

This can be done by adding several lines at the end to your vhosts configuration file of Apache. Unfortunately this file can be in many different places on your system. It means you must figure that out on your own or consult your hosting administrator (or Support).

Here is example that works on many hosts when added at the end of vhosts configuration file:

<VirtualHost *:80>
    ServerAdmin admin@server.com
    DocumentRoot /xxx/xxx/public_html
    ServerName host.example.com
    ServerAlias *
</VirtualHost>

You can find "/xxx/xxx/public_html" value if you navigate to example.com/getBaseUrl while logged in as admin.

After this change you need to restart Apache server for changes to take affect. How it is done, depends on Linux distribution.

If you done it right, you should see ImpressPages installation when you enter tmp1.example.com, xxx.example.com or anythingelse.example.com

If it doesn't work for you please consult hosting company or system administrator. Google search could also be helpful as it is not a rocket science. There are loads of similar questions already answered.

CentOS

On CentOS in addition to above instructions you likely need to add following lines before VirtualHost directive:

<Directory /xxx/xxx/public_html>
    Order allow,deny
    Allow from all
</Directory>

cPanel

cPanel httpd.conf file is being automatically regenerated. So cPanel users are recommended to add following code to /usr/local/apache/conf/includes/post_virtualhost_global.conf instead of above example:

<VirtualHost [[ip]]:80>
ServerAdmin [[admin@email.com]]
DocumentRoot /home/[[username]]/public_html/
UseCanonicalName Off
ServerName host.example.com
ServerAlias *

<IfModule mod_suphp.c>
suPHP_UserGroup [[username]] [[username]]
</IfModule>
<IfModule !mod_disable_suexec.c>
<IfModule !mod_ruid2.c>
SuexecUserGroup [[username]] [[username]]
</IfModule>
</IfModule>
<IfModule mod_ruid2.c>
RUidGid [[username]] [[username]]
</IfModule>
ScriptAlias /cgi-bin/ /home/[[username]]/public_html/cgi-bin/

</VirtualHost>

Please replace following values:

  • [[ip]] - your server ip address
  • [[usename]] - cPanel user name 
  • [[/xxx/xxx/public_html]] - directory where you have installed ImpressPages. You can find this by navigating to example.com/getBaseUrl while logged in as admin
  • [[admin@email.com]] - your email

If you are using cPanel, you should have access to  WHM. Please restart apache using WHM interface.

If server throws an error on restart or you still see error when visiting anything.example.com (see bellow), then please compare /usr/local/apache/conf/includes/post_virtualhost_global.conf to rules in /etc/httpd/apache/conf/httpd.conf and make your configuration similar to one in /etc/httpd/apache/conf/httpd.conf

cPanel domain not found error