Installing OSE Security Suite on dedicated servers

This tutorial shows you how to install OSE Security Suite on Dedicated server, it applies to both Debian based and Redhat based linux system.

1. Create the OSE Security directory

ssh 111.222.333.444 // your server IP;
cd /home
mkdir osesecurity
logout

2. After that, copy the OSE Security Suite version 5 zip pack file to the server

scp -P22  /PATH_TO_SUITE5_FOLDER/OSESECSUITEV5.tar.gz This email address is being protected from spambots. You need JavaScript enabled to view it. :/home/osesecurity/

3. Next, login back to your server, and extract the tar package

ssh 111.222.333.444 // your server IP;
cd /home/osesecurity/
tar -xzvf OSESECSUITEV5.tar.gz
rm OSESECSUITEV5.tar.gz

4. Change the file ownership of the osesecurity folder

For Debian-base linux (Debian, Ubuntu etc), please use this command

chown -R www-data:www-data /home/osesecurity/

For RedHat-base linux (Fedora, CentOS, Redhat etc), please use this command

chown -R apache:apache /home/osesecurity/

If none of the above works, please try to set the ownership to nobody

chown -R nobody:nobody /home/osesecurity/

5. Create MySQL database and MySQL user

In your hosting control panel, you can access PhpMyAdmin to create the MySQL database, username and password for OSE Security Suite, in case you do not have such panel to create the database, username and password, here is the command lines to create the database, username and password for OSE Secuity Suite:

mysql -u admin -p

Once you login MySQL with your MySQL admin account, please run the following queries

Assume that you create the MySQl user as osesecurity with password "abcd1001010", please run the following queries:

create database osesecurity;
use mysql;
INSERT INTO user (Host, User, Password, Select_priv) VALUES ('localhost', 'osesecurity', password('abcd1001010'), 'Y');
FLUSH PRIVILEGES;
GRANT ALL PRIVILEGES ON osesecurity.* TO 'osesecurity'@'localhost';
FLUSH PRIVILEGES;
quit;

6. Add the alias to the server

For Debian-base linux (Debian, Ubuntu etc), please use this command

Plesk Servers please use this command:

nano /etc/apache2/conf.d/osesecurity.conf

CPanel Servers please use this command:

nano /etc/apache2/conf/osesecurity.conf

For RedHat-base linux (Fedora, CentOS, Redhat etc), please use this command

Plesk Servers please use this command:

nano /etc/httpd/conf.d/osesecurity.conf

CPanel Servers please use this command:

nano /etc/httpd/conf/osesecurity.conf

Then input the following codes in nano, and Presss Ctrl + X to exit and save the content.

Alias /osesecurity/ "/home/osesecurity/"
<Directory "/home/osesecurity/">
Options -Indexes +IncludesNOEXEC +FollowSymLinks +ExecCGI
allow from all
AllowOverride All
#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php
Order deny,allow
Deny from all

# Replace this with your IP address / IP Range;
Allow from 222.333.444.

#The following are settings for some servers to make this configuration to work. Most of the time you do not need it.
#php_flag display_errors off
#AddHandler php5-script .php
#AddType text/html .php
#AddHandler fcgid-script .php
#FCGIWrapper /usr/local/osesecurity/fcgi-bin/php5.fcgi .php
</Directory>

For cPanel users, there is one more step to finish this part, please edit the httpd.conf file

nano /etc/httpd/conf/httpd.conf

Find the following codes:

Include "/usr/local/apache/conf/php.conf"

Replace it with the following

Include "/usr/local/apache/conf/php.conf"
Include "/usr/local/apache/conf/osesecurity.conf"

8. Then restart the server

For Debian-base linux (Debian, Ubuntu etc), please use this command

service apache2 restart

For RedHat-base linux (Fedora, CentOS, Redhat etc), please use this command

service httpd restart

The preparation is completed, now please access this address to access the OSE Security Suite:

http://www.yourdomain.com/osesecurity/
OR
http://YOUR_IP/osesecurity

9. Install the Suite

Now please follow this tutorial to install the Suite: [-Installing the security suite-]

Last modified onTuesday, 16 April 2013 10:18
Helix

Founder and MD @ Open Source Excellence

More in this category: Installing OSE Security Suite »
Login to post comments
back to top

ALL TRANSACTIONS ARE PROCESSED IN PAYPAL AND THE FOLLOWING CREDIT CARDS ARE ACCEPTED.

paypal-curved-32px visa-curved-32px visa-electron-curved-32px mastercard-curved-32px delta-curved-32px maestro-curved-32px discover-curved-32px solo-curved-32px switch-curved-32px google-checkout-curved-32px Secure Shopping

Satisfaction Guaranteed Best Web Tool