Skip to content

Instantly share code, notes, and snippets.

@zicodhkbd
Created March 9, 2021 10:34
Show Gist options
  • Save zicodhkbd/5062a4a8d1f015d51e8c088b8f9d9ecb to your computer and use it in GitHub Desktop.
Save zicodhkbd/5062a4a8d1f015d51e8c088b8f9d9ecb to your computer and use it in GitHub Desktop.
If you need OPIGNO CMS Insatallation contact with me:
Email: zicodhkbd@gmail.com
Telegram: @zicodhkbd
Skype: live:zicodhkbd
Imo: +8801815636331
WhatsApp: +8801815636331
# Installing apache2
sudo apt update
sudo apt install apache
#Type http://localhost
#Installing mariadb
sudo apt-get install mariadb-server
#Running mariadb on the system
sudo systemctl start mariadb.service
#secure mariadb using the following command and instruction
sudo mysql_secure_installation
#setting up database for Opigno
sudo mysql -u root
CREATE DATABASE opigno;
CREATE USER 'opignouser'@'localhost' IDENTIFIED BY 'new_password_here';
GRANT ALL ON opigus.* TO 'opigno'@'localhost' IDENTIFIED BY 'user_password_here' WITH GRANT OPTION;
FLUSH PRIVILEGES;
EXIT;
#Installing PHP
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:odrej/php
sudo apt install php7.1 libapache2-mod-php7.1 php7.1-common php7.1-sqlite3 php7.1-curl php7.1-intl php7.1-mbstring php7.1-mcrypt php7.1-xmlrpc php7.1-mysql php7.1-gd
#Configure PHP
sudo nano /etc/php/7.1/apache2/php.ini
#Update values in php.ini
file_uploads = On
allow_url_fopen = On
short_open_tag = On
upload_max_filesize = 100M
max_execution_time = 360
#configure php
sudo nano /var/www/html/phpinfo.php
#add following inside phpinfo.php
<?php phpinfo( ); ?>
#visit http://localhost/phpinfo.php to see if it works
#downloading and moving opigno to apache2 root folder
wget https://ftp.drupal.org/files/projects/opigno_lms-7.x-1.31-core.zip
unzip opigno_lms-7.x-1.31-core.zip
#adding permissions (in my pc i used 777 instead of 755)
sudo chown -R user:user /var/www/html/opigno/
sudo chmod -R 555 /var/www/html/opigno/
#configue apache2 opigno lms site
sudo nano /etc/apache2/sites-available/opigno.conf
#put the following text inside
<VirtualHost *:80>
ServerAdmin admin@example.com
ServerName example.com
<Directory /var/www/html/opigno/>
Options FollowSymlinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
<Directory /var/www/html/opigno/>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</Directory>
</VirtualHost>
#Enable the Opigno LMS Site and Rewrite Module
sudo a2ensite opigno.conf
sudo systemctl restart apache2.service
#now visit localhost/opigno/index.html and complete installation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment