We will create a new user called
wmysed for installing the
Watch My Domains application because we don't want to use the
account for it.
Issue the followibg command while logged in as root.
You will be prompted for a new password, enter the password and then confirm it. You may press
without typing anything for the rest of the prompts like
Room Number, etc.
Adduser will create a new home folder for the user
Open another terminal window and login as
We will need to create a few folders for apache. Issue the following commands.
We need to create a database for Watch My Domains SED. We will call it
wmysed. We will
also create a MySQL user with the same name.
Issue the following command while loggged in to the server.
mysql -u root -p
You will be prompted for the MySQL root password. Provide the password. You will see the mysql prompt.
We can now create a new MySQL user and database. Issue the following commands at the MySQL prompt.
xxxxxxxin the command below with the actual password you want to use.
create database wmysed;
grant usage on *.* to wmysed@localhost identified by 'xxxxxxx';
grant all privileges on wmysed.* to wmysed@localhost;
Remember the password for the mySQL user
wmysed. We will need it when configuring Watch My Domains SED.
Login to the server as root and issue the following commands.
This will open the nano editor. Copy and paste the following into it
wmysed.softnik.com with your hostname.
<Directory /> Options +FollowSymLinks -Indexes -MultiViews AllowOverride All Order allow,deny allow from all Require all granted </Directory> <VirtualHost *:80> DocumentRoot /home/wmysed/public_html/ ServerName wmysed.softnik.com LogLevel warn ErrorLog /home/wmysed/logs/www/error_wmysed.log CustomLog /home/wmysed/logs/www/access_wmysed.log combined </VirtualHost>
Press Ctrl-O to save and then Ctrl-X to exit.
Now issue the following 3 commands.
service apache2 restart
Go to a web browser and open http://<hostname/>. You should see a Forbidden message. You can optionally create an index.htm file /home/wmysed/public_html/ and check if it shows up when you open the site in browser.