Installing on Redhat Enterprise Linux 7 or CentOS 7

The instructions provided here have been tested on Redhat Enterprise Linux Server release 7.1 (Maipo)

Follow these steps to install Lessons Learned Server on CentOS 7 / REHL 7:

  1. Disable SELinux:
    sudo vi /etc/selinux/config
    
    Find the line containing SELINUX= and change it's value to disabled then save the file.
    ...
    SELINUX=disabled
    ...
    
    Then reboot the machine by typing:
    sudo reboot
    
  2. SSH to the linux machine you wish to install Lessons Learned Server on.
  3. Make sure you have the latest packages:
    yum update
  4. Install MariaDB database:
    sudo yum install mariadb-server mariadb
    
    Enable and start mariadb:
    systemctl enable mariadb
    systemctl start mariadb
    
    Secure the mariadb database:
    mysql_secure_installation
    
    Sample output of the mysql_secure_installation script and recommended input highlighted in yellow:
    Set root password? [Y/n] Y
    New password: YOUR-NEW-PASSWORD-HERE
    Re-enter new password: YOUR-NEW-PASSWORD-HERE
    ...
    Remove anonymous users? [Y/n] Y
    ...
    Disallow root login remotely? [Y/n] Y
    ...
    Remove test database and access to it? [Y/n] Y
    ...
    Reload privilege tables now? [Y/n] Y
    ...
    
  5. Install Apache Web-server:
    yum install httpd
  6. Enable and start Apache service:
    yum enable httpd
    yum start httpd
    The webserver should now be installed and running. To check open in a browser and enter the ip address of your server in the url (eg. http://13.57.24.120). To find your server's ip address you can run this command:
    ifconfig eth0 | grep inet | awk '{ print $2 }'
    
  7. Install PHP then restart apache:
    yum install php php-mysql php-xml
    systemctl restart httpd
    
  8. Install Lessons Learned Server:
    yum install wget
    cd /var/www/html
    wget --content-disposition 'http://www.lessonslearnedserver.com/downloadfile.php?latest&platform=linux64'
    tar -zxvf lessonslearned_*.tar.gz
    cd lessonslearned
    chown -R apache:nobody .
    
    Next, open a web browser and point it to the URL of your server:
    http://localhost/lessonslearned
    NOTE: Replace localhost with your server's ip address if you are accessing from a remote machine.
    Your will be directed to the web-installer:
    Step 1 - License Agreement: Read the agreement, upon your acceptance click the Accept & Proceed button.
    Step 2 - Checking Sytem For Needed Components: click Next button.
    Step 3 - Prepare Configuration. Provide the MySQL DB Password, admin account password and email then click the Next button.
    Step 4 - Confirm Selected Settings: Click the Next button to confirm the settings.
    Step 5 - Start Lessons Learned Background Service. Click the Next button.

    Proceed to login through the application URL http://localhost/lessonslearned and use the username admin and the password you specified in Step 3 of the web installer.

References:

CentOS and RHEL 7: Install Linux, Apache, MariaDB, PHP (LAMP) Stack
http://www.cyberciti.biz/faq/howto-install-linux-apache-mariadb-php-lamp-stack-on-centos7-rhel7/

Setting up an SSL secured Webserver with CentOS
http://wiki.centos.org/HowTos/Https

Install EPEL and additional repositories on CentOS and Red Hat
http://www.rackspace.com/knowledge_center/article/install-epel-and-additional-repositories-on-centos-and-red-hat