It’s Open source content Management tool.

https://www.youtube.com/watch?v=nbUEkw_RYKQ

Package Requirement:-

python:- 3.6 or above
pip:- 3.6 or above
apache:- 2.0 or above

Step1. Install ius repository

yum install https://centos7.iuscommunity.org/ius-release.rpm

Step2. Install python

yum -y install python36u python36u-pip python36u-devel python36u-virtualenv pcre-devel python36u-imaging  libjpeg-turbo-devel make gcc

Step3. Add user and set permission

adduser --comment 'Wagtail User' --home-dir /home/wagtail wagtail
chmod 755 /home/wagtail

Step4. Install packages using pip

pip3.6  install wagtail
pip3.6  install virtualenv

Step5. Create site and activate

su - wagtail
wagtail start mysite
virtualenv wagtail-env
source ~/wagtail-env/bin/activate
cd mysite
pip3.6  install -r requirements.txt
python3.6  manage.py migrate
python3.6  manage.py createsuperuser
exit

Step6. Install nigix repository

rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm

Step7. Install nginx

yum -y install nginx

Step8: Create nigix file

vim /etc/nginx/conf.d/techservicedoc.conf
 server {
     server_name 192.168.72.130;

     client_body_in_file_only clean; 
     client_body_buffer_size 64K; 
     client_max_body_size 40M; 
     sendfile on; 
     send_timeout 300s; 

     error_log /var/log/nginx/mywagtailsite_error.log; 
     access_log /var/log/nginx/mywagtailsite_access.log; 
     
     location / {     
         uwsgi_pass      unix:/home/wagtail/mysite/mysite/wagtail.socket;     
         include         /etc/nginx/uwsgi_params;     
         uwsgi_param     UWSGI_SCHEME $scheme;     
         uwsgi_param     SERVER_SOFTWARE    nginx/$nginx_version; 
    }
 }

Step9. Create file wagtail and upgrade

mkdir /etc/uwsgi.d/
pip3.6  install --upgrade uwsgi

vim /etc/uwsgi.d/wagtail.ini
[uwsgi]
chmod-socket = 666
virtualenv = /home/wagtail/wagtail-env
mount  = /=wsgi:application
chdir  = /home/wagtail/mysite/
wsgi-file = mysite/wsgi.py
socket = /home/wagtail/mysite/mysite/%n.socket
stats  = /home/wagtail/mysite/mysite/%n.stats.socket
logto  = /home/wagtail/mysite/mysite/%n.log
workers = 4
uid = wagtail
gid = wagtail
limit-as = 512

Step10. Create uwsgi service

vim /etc/systemd/system/uwsgi.service
[Unit]
Description=uWSGI Emperor Service
After=syslog.target
[Service]
ExecStart=/usr/bin/uwsgi --master --die-on-term --emperor /etc/uwsgi.d
ExecReload=/bin/kill -HUP $MAINPID
KillSignal=SIGINT
Restart=always
Type=notify
StandardError=syslog
NotifyAccess=all
[Install]
WantedBy=multi-user.target

Step11. Enable and start serivces

systemctl enable uwsgi
systemctl start uwsgi
systemctl enable nginx
systemctl start  nginx

Step12. Access via browser

http://localhost
Username: wagtail
Password: Redhat@123_000   (Note: Configure during installation Step-5)

For Live Installation you may refer below youtube link:-

https://www.youtube.com/watch?v=nbUEkw_RYKQ

LEAVE A REPLY

Please enter your comment!
Please enter your name here