Skip to content

Commit

Permalink
Create env
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfiex authored Jul 10, 2024
1 parent 3a932e1 commit 74aa7f8
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions docs/Admin/env
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# run from env


```
sudo apt install python3-venv # Install venv module if not already installed
python3 -m venv /path/to/your/env # Replace /path/to/your/env with your desired path
source /path/to/your/env/bin/activate
```

```
<VirtualHost *:80>
ServerName your-domain.com
ServerAdmin [email protected]

WSGIDaemonProcess myapp python-home=/path/to/your/env
WSGIProcessGroup myapp

WSGIScriptAlias / /var/www/html/myscript.py

<Directory /var/www/html>
Require all granted
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
```

0 comments on commit 74aa7f8

Please sign in to comment.