Last active
December 24, 2020 11:53
-
-
Save kngvamxx/bd5d5f6310407c88c2f1b3586f9df1e8 to your computer and use it in GitHub Desktop.
tasty igniter(wr)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 [email protected] | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment