[GH-ISSUE #146] Can't Intsall on Centos 7 #99

Open
opened 2026-02-27 15:57:19 +03:00 by kerem · 1 comment
Owner

Originally created by @ghost on GitHub (May 20, 2018).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/146

First:

now put secret key to webvirtcloud/settings.py

What secret key? None is provided after last step in that section in the docs

Second:

(venv) [root@localhost webvirtcloud]# cp conf/nginx/webvirtcloud.conf /etc/nginx/conf.d/
cp: cannot create regular file ‘/etc/nginx/conf.d/’: No such file or directory
(venv) [root@localhost nginx]# cp webvirtcloud.conf /etc/nginx/conf.d/
cp: cannot create regular file ‘/etc/nginx/conf.d/’: No such file or directory
(venv) [root@localhost nginx]# mkdir /etc/nginx/conf.d/
mkdir: cannot create directory ‘/etc/nginx/conf.d/’: No such file or directory
(venv) [root@localhost nginx]# mkdir /etc/nginx/
(venv) [root@localhost nginx]# mkdir /etc/nginx/conf.d/
(venv) [root@localhost nginx]# cp webvirtcloud.conf /etc/nginx/conf.d/
(venv) [root@localhost nginx]# venv/bin/python manage.py migrate
-bash: venv/bin/python: No such file or directory
Originally created by @ghost on GitHub (May 20, 2018). Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/146 First: now put secret key to webvirtcloud/settings.py What secret key? None is provided after last step in that section in the docs Second: ``` (venv) [root@localhost webvirtcloud]# cp conf/nginx/webvirtcloud.conf /etc/nginx/conf.d/ cp: cannot create regular file ‘/etc/nginx/conf.d/’: No such file or directory ``` ``` (venv) [root@localhost nginx]# cp webvirtcloud.conf /etc/nginx/conf.d/ cp: cannot create regular file ‘/etc/nginx/conf.d/’: No such file or directory (venv) [root@localhost nginx]# mkdir /etc/nginx/conf.d/ mkdir: cannot create directory ‘/etc/nginx/conf.d/’: No such file or directory (venv) [root@localhost nginx]# mkdir /etc/nginx/ (venv) [root@localhost nginx]# mkdir /etc/nginx/conf.d/ (venv) [root@localhost nginx]# cp webvirtcloud.conf /etc/nginx/conf.d/ (venv) [root@localhost nginx]# venv/bin/python manage.py migrate -bash: venv/bin/python: No such file or directory ```
Author
Owner

@hfinch1991 commented on GitHub (May 23, 2018):

secret key is a random string generated in python :

[root@demo webvirtcloud]# python
Python 2.7.5 (default, Apr 11 2018, 07:36:10)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import random, string
>>> haystack = string.ascii_letters + string.digits + string.punctuation
>>> print(''.join([random.SystemRandom().choice(haystack) for _ in range(50)]))
I6n(2(ZD=P;zbbd#)h'WcvNeb,I9~ZPzagF|v-Jyc""S:#?(Bm

Second:cannot create regular file ‘/etc/nginx/conf.d/’: No such file or directory, because you didn't install nginx:
yum -y install epel-release && yum -y install nginx

<!-- gh-comment-id:391237068 --> @hfinch1991 commented on GitHub (May 23, 2018): secret key is a random string generated in python : ``` [root@demo webvirtcloud]# python Python 2.7.5 (default, Apr 11 2018, 07:36:10) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import random, string >>> haystack = string.ascii_letters + string.digits + string.punctuation >>> print(''.join([random.SystemRandom().choice(haystack) for _ in range(50)])) I6n(2(ZD=P;zbbd#)h'WcvNeb,I9~ZPzagF|v-Jyc""S:#?(Bm ``` Second:cannot create regular file ‘/etc/nginx/conf.d/’: No such file or directory, because you didn't install nginx: `yum -y install epel-release && yum -y install nginx`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtcloud#99
No description provided.