Tegyük fel, hogy az új site neve web5.
Először az Apache-ban kell beállítani a virtual hostot. Ehhez létre kell hozni a /etc/apache2/sites-available könyvtár alatt a www.web5.hu állományt a következő tartalommal:
<VirtualHost *>
ServerAdmin info@neaeosz.hu
ServerName www.web5.hu
ServerAlias web5.hu
DocumentRoot /data/www/www.web5.hu
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /data/www/www.web5.hu/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/www.web5.hu-error.log
# Possible values include: debug, info, notice, warn, error, crit, alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/www.web5.hu-access.log combined
ServerSignature On
</VirtualHost>
<VirtualHost *:443>
ServerAdmin info@neaeosz.hu
ServerName www.web5.hu
ServerAlias web5.hu
DocumentRoot /data/www/www.web5.hu
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /data/www/www.web5.hu/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/www.web5.hu-error.log
# Possible values include: debug, info, notice, warn, error, crit, alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/www.web5.hu-access.log combined
ServerSignature On
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/server.crt
SSLCertificateKeyFile /etc/apache2/ssl/server.key
</VirtualHost>
|
Utána engedélyezzük ezt a konfigot az a2ensite www.web5.hu paranccsal és érzékeltetjük az apache-csal:
/etc/init.d/apache2 reload.
A Drupalban is létre kell hozni a virtual site-ot. Ehhez érdemes kiindulni az alapértelmezettből: cp -a /etc/drupal/5.1/sites/default /etc/drupal/5.1/sites/web5.hu . Itt kell szerkeszteni az adatbázisbeállítást (/etc/drupal/5.1/sites/web5.hu/dbconfig.php)...
$dbuser='drupal_web5';
$dbpass='*******';
$basepath='';
$dbname='drupal_web5';
$dbserver='193.142.214.135';
$dbport='';
$dbtype='pgsql';
|
...és módosítani a site beállításokat (/etc/drupal/5.1/sites/web5.hu/settings.php):
|
$base_url = 'http://www.web5.hu'; |
Az adatbázist is létre kell hozni a jupiteren:
createuser --no-superuser --no-createdb --no-createrole --pwprompt drupal_web5
createdb --encoding=utf8 --owner=drupal_web5 drupal_web5
Végül a böngészőben el kell indítani a telepítőt: https://www.web5.hu/drupal/install.php