How to reactivate your SSL
https://www.ssls.com/
Software versions: here are my application versions:
Python 3.8.2Installation:
Step 1: Install apache 2, Django and other packages
Step 3: Create apache vhost file
cat /etc/apache2/sites-available/xxxx.com.conf
<VirtualHost *:80>
#My site Name
ServerName xxxx.com
DocumentRoot /var/www/myproject
WSGIDaemonProcess xxxx.com processes=2 threads=5 display-name=%{GROUP} python-path=/usr/local/lib/python3.8
#Pointing wsgi script to config file
WSGIScriptAlias / /var/www/myproject/myproject/wsgi.py
WSGIProcessGroup xxxx.com
#Your static files location
Alias /static/ "//var/www/myproject/static/"
<Location "/media">
SetHandler None
</Location>
<LocationMatch "\.(jpg|gif|png|js|css)$">
SetHandler None
</LocationMatch>
<Directory /var/www/myproject >
AllowOverride all
Require all granted
Options FollowSymlinks
</Directory>
</VirtualHost>
Step 4: modify this file /var/www/myproject/myproject/wsgi.py
cat /var/www/myproject/myproject/wsgi.py
import os
import time
import traceback
import signal
import sys
from django.core.wsgi import get_wsgi_application
sys.path.append('/var/www/myproject')
sys.path.append('/usr/local/lib/python3.8/dist-packages')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'CVE.settings')
try:
application = get_wsgi_application()
except Exception:
# Error loading applications
if 'mod_wsgi' in sys.modules:
traceback.print_exc()
os.kill(os.getpid(), signal.SIGINT)
time.sleep(2.5)
Step 5: enable wsgi mod and enable site
403: Forbidden Unauthorized IP Address. Either disable the IP address whitelist or add your address to it. If you're editing settings.json, see the 'rpc-whitelist' and 'rpc-whitelist-enabled' entries. If you're still using ACLs, use a whitelist instead. See the transmission-daemon manpage for details.I setup whitelist before and it was working fine. So, it is not setting.json issue. I check the log file:
root@ubuntu:~# less /var/log/syslog | grep trans Jul 25 12:16:48 ubuntu transmission-daemon[26035]: [2017-07-25 12:16:48.151] Couldn't save temporary file "/home/debian-transmission/.config/transmission-daemon/settings.json.tmp.0uKjqQ": No such file or directory (variant.c:1280) Jul 25 12:16:48 ubuntu transmission-daemon[26035]: Closing transmission session... done. Jul 25 12:16:49 ubuntu transmission-daemon[26365]: [2017-07-25 12:16:49.422] Couldn't create "/home/debian-transmission": Permission denied (file-posix.c:189) Jul 25 12:16:49 ubuntu transmission-daemon[26365]: message repeated 2 times: [ [2017-07-25 12:16:49.422] Couldn't create "/home/debian-transmission": Permission denied (file-posix.c:189)] Jul 25 12:16:49 ubuntu transmission-daemon[26365]: [2017-07-25 12:16:49.422] UDP Failed to set receive buffer: requested 4194304, got 425984 (tr-udp.c:84) Jul 25 12:16:49 ubuntu transmission-daemon[26365]: [2017-07-25 12:16:49.422] UDP Failed to set send buffer: requested 1048576, got 425984 (tr-udp.c:95) Jul 25 12:16:49 ubuntu transmission-daemon[26365]: [2017-07-25 12:16:49.422] Couldn't save temporary file "/home/debian-transmission/.config/transmission-daemon/settings.json.tmp.7GNxAD": No such file or directory (variant.c:1280) Jul 25 12:38:04 ubuntu transmission-daemon[26365]: Closing transmission session... done. Jul 25 12:38:10 ubuntu transmission-daemon[26698]: [2017-07-25 12:38:10.154] UDP Failed to set receive buffer: requested 4194304, got 425984 (tr-udp.c:84) Jul 25 12:38:10 ubuntu transmission-daemon[26698]: [2017-07-25 12:38:10.154] UDP Failed to set send buffer: requested 1048576, got 425984 (tr-udp.c:95) Jul 25 12:38:48 ubuntu transmission-daemon[26698]: Closing transmission session... done.Somehow, the system looking for /home/debian-transmission/.config/transmission-daemon/settings.json, but my file is located: /etc/transmission-daemon/settings.json I am not sure how this happened, looks like it is transmission bug, but I fixed it:
service transmission-daemon stop mkdir -p /home/debian-transmission/.config/transmission-daemon chown debian-transmission:debian-transmission /home/debian-transmission/.config/transmission-daemon cp /etc/transmission-daemon/settings.json /home/debian-transmission/.config/transmission-daemon/settings.json service transmission-daemon start