Last active
December 18, 2021 07:15
-
-
Save kevinadhiguna/f8ccf47640fe86e89b1725a307191ff3 to your computer and use it in GitHub Desktop.
A script to run an existing Code Igniter project in Ubuntu Linux (20.04)
This file contains hidden or 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
# This script assumes your : | |
# | |
# Apache Document Root = "/var/www/html" | |
# (Ubuntu) Username = "johndoe" | |
# name of existing Code Igniter project = "my-ci-website" | |
# path of your Code Igniter project = "/home/johndoe/my-ci-website" | |
# | |
# How to run this script : copy the whole content of this script then execute "sh run-codeigniter-in-ubuntu.sh" in your root directory. | |
# Copy content of 'my-ci-website' folder to '/var/www/html/my-ci-website' | |
sudo cp -r /home/johndoe/my-ci-website/ /var/www/html/my-ci-website | |
# Change directory to '/var/www/html' | |
cd /var/www/html | |
# Change the ownership of '/var/www/html/my-ci-website' to current user | |
sudo chown -R $USER:www-data /var/www/html/my-ci-website | |
# Change the permission of '/var/www/html/my-ci-website' | |
sudo chmod -R 775 /var/www/html/my-ci-website | |
# Change directory to 'my-ci-website' in '/var/www/html' | |
cd my-ci-website | |
# Remove '.git' folder (changes will not be tracked by Git...) | |
sudo rm -rf .git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment