Skip to content

Instantly share code, notes, and snippets.

@linuxbiekaisar
Last active November 17, 2020 11:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save linuxbiekaisar/63732e2448611580a483adcaf84bedc9 to your computer and use it in GitHub Desktop.
Save linuxbiekaisar/63732e2448611580a483adcaf84bedc9 to your computer and use it in GitHub Desktop.
how to install tastyigniter on Ubuntu 18.04 LTS
# Youtube: https://studio.youtube.com/video/ltlGdKRJSuo/edit
# !/bin/bash
#Install Apache2
sudo apt update
sudo apt install apache2
sudo systemctl start apache2.service
sudo systemctl enable apache2.service
sudo systemctl restart apache2.service
#Install MariaDB
sudo apt-get install mariadb-server mariadb-client
sudo systemctl start mariadb.service
sudo systemctl enable mariadb.service
sudo systemctl status mariadb.service
#Secure MariaDB
sudo mysql_secure_installation
#When prompted, answer the questions below by following the guide.
Enter current password for root (enter for none): Just press the Enter
Set root password? [Y/n]: Y
New password: Enter any password
Re-enter new password: Repeat same password
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
#Now that MariaDB is installed, to test whether the database server was successfully installed
sudo mysql -u root -p
CREATE DATABASE TastyIgniter DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
GRANT ALL ON TastyIgniter.* TO 'TastyIgniterUsr'@'localhost' IDENTIFIED BY 'LinuxK@!SAR';
FLUSH PRIVILEGES;
EXIT;
sudo mkdir /var/www/html/tastyigniter
#TastyIgniter also uses composer to manage its dependencies, you’ll need to have composer installed on your machine before using the TastyIgniter command-line installation. Run this command in an empty location that you want TastyIgniter to be installed in:
sudo composer create-project tastyigniter/tastyigniter:dev-master .
#After running the above command, run the install command and follow the instructions to complete installation:
sudo php artisan igniter:install
#The install command will guide you through the process of setting up TastyIgniter for the first time. It will ask for the database configuration, application URL and administrator details.
#Grant write permissions on the setup directory, its subdirectories and files
sudo chmod -R 777 /var/www/html/tastyigniter/
#Configure Apache2 for FormaLMS
sudo nano /etc/apache2/sites-available/tastyigniter.conf
<VirtualHost *:80>
ServerAdmin admin@tastyigniter.com
DocumentRoot /var/www/html/tastyigniter
ServerName tastyigniter.localhost
ServerAlias tastyigniter.localhost
<Directory /var/www/html/tastyigniter>
Options FollowSymlinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/html/tastyigniter>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*) index.php [PT,L]
</Directory>
</VirtualHost>
#Now save and Exit
#Enable the Forma and Rewrite Module
sudo a2ensite tastyIgniter.conf
sudo a2enmod rewrite
sudo systemctl restart apache2.service
#Now Visit your installed site.
http://tastyigniter.localhost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment