Get the Website Ready for Installing Watch My Domains SED

Previous    Home    Next

Create a New Linux User

We will create a new user called wmysed for installing the Watch My Domains application because we don't want to use the root account for it.

Issue the followibg command while logged in as root.

adduser wmysed

You will be prompted for a new password, enter the password and then confirm it. You may press enter without typing anything for the rest of the prompts like Full Name, Room Number, etc.

Adduser will create a new home folder for the user wmysed at /home/wmysed/.

Create a new Linux User

Open another terminal window and login as wmysed

Login as user wmysed.

We will need to create a few folders for apache. Issue the following commands.

mkdir logs
mkdir logs/www
mkdir public_html

Create a MySQL Database

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.

MySQL prompt

We can now create a new MySQL user and database. Issue the following commands at the MySQL prompt.

Replace the xxxxxxx in 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;


Creating a MySQL database and user

Remember the password for the mySQL user wmysed. We will need it when configuring Watch My Domains SED.

Create the Apache Configuration File for the Site

Login to the server as root and issue the following commands.

cd /etc/apache2/sites-available/
nano wmysed.conf

This will open the nano editor. Copy and paste the following into it after replacing with your hostname.

<Directory />
	Options +FollowSymLinks -Indexes -MultiViews
	AllowOverride All
	Order allow,deny
	allow from all
	Require all granted

<VirtualHost *:80>
	DocumentRoot /home/wmysed/public_html/

	LogLevel warn
	ErrorLog /home/wmysed/logs/www/error_wmysed.log
	CustomLog /home/wmysed/logs/www/access_wmysed.log combined

Press Ctrl-O to save and then Ctrl-X to exit.

Apache Configuration

Now issue the following 3 commands.

a2enmod rewrite
a2ensite wmysed
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.

Previous    Home    Next