Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

WordPress Migration

1) Copy all the files to a folder like /var/www/multibloghost/


2) Then enable apache2 module vhost_alias by issuing the following command
a2enmod vhost_alias
3) Restart apache server
service apache2 restart
4) Edit apache site config file
vi /etc/apache2/sites-available/default
5) Add the following lines (Marked Red will be the changes you need to make)

NameVirtualHost *:80
UseCanonicalName Off
<VirtualHost *:80>
ServerAdmin webmaster@localhost

VirtualDocumentRoot /var/www/multibloghost/%0
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/multibloghost/%0>
Options -Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/


<Directory "/usr/lib/cgi-bin">
AllowOverride None

Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch


Order allow,deny
Allow from all
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log

# Possible values include: debug, info, notice, warn, error, crit,


# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/access.log combined

Alias /doc/ "/usr/share/doc/"


<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

</VirtualHost>
6) Save the config file
7) Restart apache server

You might also like