Created
July 31, 2022 16:18
-
-
Save gigsforlinux/fd122cec0c3ab447b06cf1d2be266dad to your computer and use it in GitHub Desktop.
I'll Do Anything Goes With TastyIgniter For You
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
!/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 | |
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. | |
#Configure Apache2 for TastyIgniter | |
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 TastyIgniter and Rewrite Module | |
sudo a2ensite tastyIgniter.conf | |
sudo a2enmod rewrite | |
sudo systemctl restart apache2.service | |
#Now Visit your installed site. | |
http://tastyigniter.localhost |
Author
gigsforlinux
commented
Jul 31, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment