Unable to install Panel

Hi there,
I have been having some difficulty installing Cyber panel.
Every time I try to install the panel with the installer provided at: Installing CyberPanel - CyberPanel

I am met with the same out come every time:

Traceback (most recent call last):
File “manage.py”, line 17, in
"Couldn’t import Django. Are you sure it’s installed and "
ImportError: Couldn’t import Django. Are you sure it’s installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?

[07-27-49-Sun-Sep-2018] #########################################################################

[07-27-49-Sun-Sep-2018] Unable to prepare migrations file, trying again, try number: 1

[07-27-49-Sun-Sep-2018] #########################################################################

Traceback (most recent call last):
File “manage.py”, line 17, in
"Couldn’t import Django. Are you sure it’s installed and "
ImportError: Couldn’t import Django. Are you sure it’s installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?

[07-27-49-Sun-Sep-2018] #########################################################################

[07-27-49-Sun-Sep-2018] Unable to prepare migrations file, trying again, try number: 2

[07-27-49-Sun-Sep-2018] #########################################################################

Traceback (most recent call last):
File “manage.py”, line 17, in
"Couldn’t import Django. Are you sure it’s installed and "
ImportError: Couldn’t import Django. Are you sure it’s installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?

[07-27-49-Sun-Sep-2018] #########################################################################

[07-27-49-Sun-Sep-2018] Unable to prepare migrations file, trying again, try number: 3

[07-27-49-Sun-Sep-2018] #########################################################################

[07-27-49-Sun-Sep-2018] #########################################################################

[07-27-49-Sun-Sep-2018] Installation failed, consult: /var/log/installLogs.txt

[07-27-49-Sun-Sep-2018] #########################################################################

/var/log/installLogs.txt:
Unable to prepare migrations file. You can try to install on fresh OS again, exiting installer!

System Specs:
Host: Digital Ocean
Ram: 1GB
Disk: 25GB
OS: Centos 7.5 x64

Any help is appreciated.
Thanks

On your virtual machine what do you get by running

pip install django==1.11
On your virtual machine what do you get by running
pip install django==1.11
After running that command it downloaded and installed django & pytz.

I found that when installing items with pip I needed to carry over my environment.
therefore when installing items with pip I have to use:

sudo -E pip install {packagename}

Now after attemping an install again. After removeing /etc/cyberpanel and /etc/letsencrypt

I am met with another error:


Traceback (most recent call last):
  File "manage.py", line 22, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/lib64/python2.7/site-packages/django/core/management/__init__.py", line 363, in execute_from_command_line
    utility.execute()
  File "/usr/lib64/python2.7/site-packages/django/core/management/__init__.py", line 355, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib64/python2.7/site-packages/django/core/management/base.py", line 283, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/lib64/python2.7/site-packages/django/core/management/base.py", line 327, in execute
    self.check()
  File "/usr/lib64/python2.7/site-packages/django/core/management/base.py", line 359, in check
    include_deployment_checks=include_deployment_checks,
  File "/usr/lib64/python2.7/site-packages/django/core/management/base.py", line 346, in _run_checks
    return checks.run_checks(**kwargs)
  File "/usr/lib64/python2.7/site-packages/django/core/checks/registry.py", line 81, in run_checks
    new_errors = check(app_configs=app_configs)
  File "/usr/lib64/python2.7/site-packages/django/core/checks/model_checks.py", line 30, in check_all_models
    errors.extend(model.check(**kwargs))
  File "/usr/lib64/python2.7/site-packages/django/db/models/base.py", line 1282, in check
    errors.extend(cls._check_fields(**kwargs))
  File "/usr/lib64/python2.7/site-packages/django/db/models/base.py", line 1357, in _check_fields
    errors.extend(field.check(**kwargs))
  File "/usr/lib64/python2.7/site-packages/django/db/models/fields/__init__.py", line 909, in check
    errors = super(AutoField, self).check(**kwargs)
  File "/usr/lib64/python2.7/site-packages/django/db/models/fields/__init__.py", line 219, in check
    errors.extend(self._check_backend_specific_checks(**kwargs))
  File "/usr/lib64/python2.7/site-packages/django/db/models/fields/__init__.py", line 322, in _check_backend_specific_checks
    return connections[db].validation.check_field(self, **kwargs)
  File "/usr/lib64/python2.7/site-packages/django/db/backends/mysql/validation.py", line 49, in check_field
    field_type = field.db_type(self.connection)
  File "/usr/lib64/python2.7/site-packages/django/db/models/fields/__init__.py", line 640, in db_type
    return connection.data_types[self.get_internal_type()] % data
  File "/usr/lib64/python2.7/site-packages/django/utils/functional.py", line 35, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/usr/lib64/python2.7/site-packages/django/db/backends/mysql/base.py", line 174, in data_types
    if self.features.supports_microsecond_precision:
  File "/usr/lib64/python2.7/site-packages/django/utils/functional.py", line 35, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/usr/lib64/python2.7/site-packages/django/db/backends/mysql/features.py", line 53, in supports_microsecond_precision
    return self.connection.mysql_version >= (5, 6, 4) and Database.version_info >= (1, 2, 5)
  File "/usr/lib64/python2.7/site-packages/django/utils/functional.py", line 35, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/usr/lib64/python2.7/site-packages/django/db/backends/mysql/base.py", line 385, in mysql_version
    with self.temporary_connection() as cursor:
  File "/usr/lib64/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/usr/lib64/python2.7/site-packages/django/db/backends/base/base.py", line 591, in temporary_connection
    cursor = self.cursor()
  File "/usr/lib64/python2.7/site-packages/django/db/backends/base/base.py", line 254, in cursor
    return self._cursor()
  File "/usr/lib64/python2.7/site-packages/django/db/backends/base/base.py", line 229, in _cursor
    self.ensure_connection()
  File "/usr/lib64/python2.7/site-packages/django/db/backends/base/base.py", line 213, in ensure_connection
    self.connect()
  File "/usr/lib64/python2.7/site-packages/django/db/utils.py", line 94, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File "/usr/lib64/python2.7/site-packages/django/db/backends/base/base.py", line 213, in ensure_connection
    self.connect()
  File "/usr/lib64/python2.7/site-packages/django/db/backends/base/base.py", line 189, in connect
    self.connection = self.get_new_connection(conn_params)
  File "/usr/lib64/python2.7/site-packages/django/db/backends/mysql/base.py", line 274, in get_new_connection
    conn = Database.connect(**conn_params)
  File "/usr/lib64/python2.7/site-packages/MySQLdb/__init__.py", line 81, in Connect
    return Connection(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/MySQLdb/connections.py", line 193, in __init__
    super(Connection, self).__init__(*args, **kwargs2)
django.db.utils.OperationalError: (1045, "Access denied for user 'cyberpanel'@'localhost' (using password: YES)")

At this point I think I should find another web panel.

You need to log in as root, so if you log in as superuser, first do sudo su and then run the installation.

You need to log in as root, so if you log in as superuser, first do sudo su and then run the installation.

I am logged in as root

You need to log in as root, so if you log in as superuser, first do sudo su and then run the installation.

I am logged in as root

Wow i just tried that. I did not know that the su command gives your more access than root.

Thank you a lot!

P.S
You should include that in your install docs.