install apache ubuntu
Shell
sudo apt-get install apache2# Install apache2 web server
sudo apt install apache2sudo apt-get install apache2
sudo apt-get install libapache2-mod-wsgi-py3
cd
cd /etc/apache2/sites-available/
sudo cp 000-default.conf yourfilename.conf
sudo nano yourfilename.conf
copy past the following the below code in the flower bracket
Note:dont copy those flower brackets
Note:this is if you are not running on venv
note: please specify the path as show below to those specifit file in
your djnago project
{{{{
Alias /static /home/Linux/website/static
<Directory /home/Linux/website/static>
Require all granted
</Directory>
Alias /media /home/Linux/ramtejajakka/media
<Directory /home/Linux/ramtejajakka/media>
Require all granted
</Directory>
<Directory /home/Linux/website/ramtejajakka>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
WSGIScriptAlias / /home/Linux/website/ramtejajakka/wsgi.py
WSGIDaemonProcess django_app python-path=/home/Linux/website
WSGIProcessGroup djnago_app
}}}}
note: if your are running on venv use this code
{{{
Alias /static /home/Linux/website/static
<Directory /home/Linux/website/static>
Require all granted
</Directory>
Alias /media /home/Linux/ramtejajakka/media
<Directory /home/Linux/ramtejajakka/media>
Require all granted
</Directory>
<Directory /home/Linux/website/ramtejajakka>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
WSGIScriptAlias / /home/Linux/website/ramtejajakka/wsgi.py
WSGIDaemonProcess django_app python-path=/home/Linux/website python-home=/home/Linux/website/venv
WSGIProcessGroup djnago_app
}}}
#continue running these commands
sudo a2ensite yourfilename.conf
sudo a2dissite 000-default.conf
cd
#check the path to your django project
sudo chown :www-data /home/Linux/your_dir/db.sqlite3
sudo chmod 664 /home/Linux/your_dir/db.sqlite3
sudo chown :www-data /home/Linux/your_dir
sudo chmod 775 /home/Linux/your_dir
sudo chown -R :www-data /home/Linux/your_dir/media
sudo chmod -R 775 /home/Linux/your_dir/media
sudo service apache2 restart
sudo apt install apache2
Also in Shell:
- Title
- pod install react native failed
- Category
- Shell
- Title
- remove directory linux
- Category
- Shell
- Title
- shell count number of lines
- Category
- Shell
- Title
- composer install ignore platform reqs
- Category
- Shell
- Title
- how to uninstall rust
- Category
- Shell
- Title
- grep
- Category
- Shell
- Title
- force git to use ssh
- Category
- Shell
- Title
- powershell search array
- Category
- Shell
- Title
- bash append file
- Category
- Shell
- Title
- how to fix the traceback error debian linux
- Category
- Shell
- Title
- git abort stash pop
- Category
- Shell
- Title
- [ErrorException] file_put_contents(./composer.json): failed to open stream: Permission denie d
- Category
- Shell
- Title
- loop from array bash
- Category
- Shell
- Title
- ssh ubuntu
- Category
- Shell
- Title
- driver hosts file
- Category
- Shell
- Title
- git show staged files
- Category
- Shell
- Title
- Running modprobe bridge br_netfilter failed with message: ip: can't find device
- Category
- Shell
- Title
- how to pull from a particular branch in git
- Category
- Shell
- Title
- linux check used space in folder
- Category
- Shell
- Title
- how to commit a branch in git
- Category
- Shell
- Title
- angular add component
- Category
- Shell
- Title
- avalible ios simulators
- Category
- Shell
- Title
- git set upstream
- Category
- Shell
- Title
- change git commit message
- Category
- Shell
- Title
- angular add service worker
- Category
- Shell
- Title
- gats gatsby-plugin-offline
- Category
- Shell
- Title
- restart bluetooth ubuntu
- Category
- Shell
- Title
- yarn change version
- Category
- Shell
- Title
- cmd for loop
- Category
- Shell
- Title
- update google chrome command ubuntu
- Category
- Shell
- Title
- how to get ssh access to a computer
- Category
- Shell
- Title
- remove all iptables rules
- Category
- Shell
- Title
- git checkout someone else's branch
- Category
- Shell
- Title
- desktop trigger click bash shell ubuntu
- Category
- Shell
- Title
- install spyder conda
- Category
- Shell
- Title
- why all git pull create merge commit
- Category
- Shell
- Title
- gatsby starter hello world
- Category
- Shell
- Title
- install automapper asp.net core mvc
- Category
- Shell
- Title
- docker build
- Category
- Shell
- Title
- pyinstaller statsmodels
- Category
- Shell
- Title
- search by message git
- Category
- Shell
- Title
- how to remove git directory in terminal
- Category
- Shell
- Title
- git commit expanded message
- Category
- Shell
- Title
- install vuex
- Category
- Shell
- Title
- show applications shortcut ubuntu
- Category
- Shell
- Title
- clone repository git
- Category
- Shell
- Title
- find flutter version
- Category
- Shell
- Title
- utorrent on ubuntu
- Category
- Shell
- Title
- screen sharung zoom linux x11
- Category
- Shell
- Title
- install docker debain
- Category
- Shell
- Title
- documentation gitlab ci en francais
- Category
- Shell
- Title
- check installed packages apt-get
- Category
- Shell
- Title
- how to open file in linux
- Category
- Shell
- Title
- reset certain file git
- Category
- Shell
- Title
- how to download youtube video in linux
- Category
- Shell
- Title
- greater than certain value from pipe shell
- Category
- Shell
- Title
- angular cli generate component
- Category
- Shell
- Title
- convert excel to csv command line linux
- Category
- Shell
- Title
- npm install mongoose error npm ERR! code ENOSELF
- Category
- Shell
- Title
- pip install tensorflow not working
- Category
- Shell
- Title
- How to find your ip on debian linux wsl
- Category
- Shell
- Title
- reset gui linux
- Category
- Shell
- Title
- how to initialize a git repository command line
- Category
- Shell
- Title
- angular install ngx-bootstrap
- Category
- Shell
- Title
- how to install .whl file in windows 10
- Category
- Shell
- Title
- where is path on klai linux
- Category
- Shell
- Title
- linux tar zip folder
- Category
- Shell
- Title
- git basic command tutorial
- Category
- Shell
- Title
- repro blender ubuntu 18.04
- Category
- Shell
- Title
- find npm version
- Category
- Shell
- Title
- install makecert windows 10
- Category
- Shell
- Title
- how to echo to a file in linux
- Category
- Shell
- Title
- Endpoint Security VPN build 986000724 is already installed on this computer.
- Category
- Shell
- Title
- how to install mysql python
- Category
- Shell
- Title
- kubectl copy secret namespace
- Category
- Shell
- Title
- how to install gatsby transformer plugin
- Category
- Shell
- Title
- multi line comment in shell script
- Category
- Shell
- Title
- iterm full screen cmd
- Category
- Shell
- Title
- pod install ruby: bad interpreter: No such file or directory
- Category
- Shell
- Title
- source fish config
- Category
- Shell
- Title
- change linux user password
- Category
- Shell
- Title
- github
- Category
- Shell
- Title
- powershell download a file from url
- Category
- Shell
- Title
- unable to install deno in ubuntu
- Category
- Shell
- Title
- php my admin
- Category
- Shell
- Title
- boolean constants in bash
- Category
- Shell
- Title
- python install random library
- Category
- Shell
- Title
- remove directory in cmd
- Category
- Shell
- Title
- bash special dollar sign shell varaibles
- Category
- Shell
- Title
- git stash save name
- Category
- Shell
- Title
- linux make executable
- Category
- Shell
- Title
- install x centos 7
- Category
- Shell
- Title
- copy contents of multiple files to one file powershell
- Category
- Shell
- Title
- delete git
- Category
- Shell
- Title
- how to install vue in laravel
- Category
- Shell
- Title
- git grep across all branches
- Category
- Shell
- Title
- list packages linux windows
- Category
- Shell
- Title
- install metasploit in kali linux
- Category
- Shell
- Title
- install ruby mac
- Category
- Shell
- Title
- git bash upstream branch change
- Category
- Shell