Commit b232cd45 authored by Giorgos Kazelidis's avatar Giorgos Kazelidis

Made some corrections/enhancements to the instructions in README.md

parent 32efc5ac
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
      (2) activate the virtual environment:       (2) activate the virtual environment:
source venv/bin/activate source venv/bin/activate
      (3) install necessary Python and MySQL development headers and libraries (if you have not already done so):       (3) install necessary Python and MySQL development headers and libraries (`apt list --installed | grep -E "python3-dev|libmysqlclient-dev"` to see if they are already installed):
sudo apt install python3-dev libmysqlclient-dev sudo apt install python3-dev libmysqlclient-dev
      (4) install appropriate versions of virtual-environment-specific packages:       (4) install appropriate versions of virtual-environment-specific packages:
...@@ -166,7 +166,7 @@ ...@@ -166,7 +166,7 @@
      -- https://askubuntu.com/questions/767504/permissions-problems-with-var-www-html-and-my-own-home-directory-for-a-website       -- https://askubuntu.com/questions/767504/permissions-problems-with-var-www-html-and-my-own-home-directory-for-a-website
      -- https://webmasters.stackexchange.com/questions/83633/have-disabled-apache-site-config-file-000-default-conf-but-it-still-seems-activ       -- https://webmasters.stackexchange.com/questions/83633/have-disabled-apache-site-config-file-000-default-conf-but-it-still-seems-activ
]: ]:
(A) install Apache web server and development package if you have not already done so (`apache2 -v` to see if server is already installed): (A) install Apache web server and development package (`apache2 -v` and `apt list --installed | grep "apache2-dev"` to see if they are already installed):
sudo apt install apache2 apache2-dev sudo apt install apache2 apache2-dev
(B) activate and adjust UFW firewall to open only port 80 for unencrypted incoming web traffic (`sudo ufw status verbose` to check the firewall status): (B) activate and adjust UFW firewall to open only port 80 for unencrypted incoming web traffic (`sudo ufw status verbose` to check the firewall status):
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
(I) navigate to the deployment directory: (I) navigate to the deployment directory:
cd /var/www/html/softlab_userbase cd /var/www/html/softlab_userbase
(J) change the user and group owners of the script directory to "www-data" (Apache system user/group) - `ls -l userbase` to verify the change: (J) change the user and group owners of the script directory to "www-data" (Apache system user/group) - `ls -l` to verify the change:
sudo chown www-data:www-data userbase sudo chown www-data:www-data userbase
(K) navigate to the Apache ServerRoot (/etc/apache2 directory): (K) navigate to the Apache ServerRoot (/etc/apache2 directory):
...@@ -254,7 +254,8 @@ with the following content (make sure to replace SERVER_IP, PROCESSES_NUMBER, TH ...@@ -254,7 +254,8 @@ with the following content (make sure to replace SERVER_IP, PROCESSES_NUMBER, TH
sudo systemctl reload apache2 sudo systemctl reload apache2
## ACCESSING THE DJANGO ADMIN SITE OR RUNNING THE PROJECT APPLICATION (AFTER STARTING THE APACHE WEB SERVER) ## ACCESSING THE DJANGO ADMIN SITE OR RUNNING THE PROJECT APPLICATION (AFTER STARTING THE APACHE WEB SERVER)
(A) create a superuser account in the project database inside the virtual environment of the project script directory if you have not already done so (this step is necessary for accessing the Django admin site) - see the "ACCESSING THE DJANGO ADMIN SITE OR RUNNING THE PROJECT APPLICATION (AFTER STARTING THE DJANGO DEVELOPMENT SERVER INSIDE THE VIRTUAL ENVIRONMENT)" section above for more information: (A) create a superuser account in the project database inside the virtual environment of the project script directory if you have not already done so (this step is necessary for accessing the Django admin site) - see the "ACCESSING THE DJANGO ADMIN SITE OR RUNNING THE PROJECT APPLICATION (AFTER STARTING THE DJANGO DEVELOPMENT SERVER INSIDE THE VIRTUAL ENVIRONMENT)" section above for more information:
      * ATTENTION: if running `python slub/manage.py createsuperuser` below raises a "Permission denied: '/var/www/html/softlab_userbase/userbase/production_logs'" PermissionError exception, create the production_logs directory as the www-data user first by running `sudo -u www-data -s mkdir production_logs` (see the "Logging" section of /var/www/html/softlab_userbase/userbase/slub/slub/settings.py) and then retry running the former.
cd /var/www/html/softlab_userbase/userbase cd /var/www/html/softlab_userbase/userbase
source venv/bin/activate source venv/bin/activate
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment