Is there any way to host ERPNext from a VPS centos based?

Hello community

I have a dedicated hosting environment in some VPS.
I have full/root access to the CentOs, cPanel and WHM.

Now I want to host ERPNext from the VPS, I tried to install directly on centos but there are some dependency conflict.

is there any way within cPanel or any other way to accomplish this?

please help,

Can you share the screenshots or the error messages from yum?

Furthermore, In a very generic way,
a clean Centos or Ubuntu installation is the best starting point.
Then you download the install script and it install all packages and dependencies for you.
Everything done by bash shell.
I have no idea if exist any package for CPanel or WHM.
In my knowledge, the only preinstalled things you can find in a public cloud, are stored in AWS.
Are ami images provided by bitnami and not by ERPNext itself.
For your privare cloud you can download the ova images from ERPNext website


See here Error: python-devel conflicts with python-2.7.5-68.el7.x86_64

To avoid confusion and a fragmented response this earlier duplicate thread will be closed

thank u @fromthestone for replying me

when I run python --production --user frappe I get this error

Error: Package: perl-Git- (@updates)
           Requires: git =
           Removing: git- (@updates)
               git =
           Updated By: git- (updates)
               git =
           Available: git- (base)
               git =
Error: python-devel conflicts with python-2.7.5-68.el7.x86_64
You could try using --skip-broken to work around the problem
Found 229 pre-existing rpmdb problem(s), 'yum check' output follows:
GeoIP-1.5.0-13.el7.x86_64 is a duplicate with GeoIP-1.5.0-11.el7.x86_64
1:NetworkManager-1.12.0-10.el7_6.x86_64 is a duplicate with 1:NetworkManager-1.1

Centos and Ubuntu use different package managers, yum versus apt-get, each with their own package database. That may explain your problem of dependent package conflicts.

Possibly one workaround is to create a distinct Python environment with tools like these:

GitHub - pyenv/pyenv: Simple Python version management
How to manage multiple Python versions and virtual environments

BKM and others have documented ERPNext installs on CentOS check those for pointers.


From what I can understand,
You probably have a repository different than EPEL and others came with default Centos installation that creating this mess…
You should do yum info package_name to check from which repo comes from.
Then, you should try to remove the conflicting packaging using rpm (with some of them might use --nodeps )
After, remove the repository, go with yum update and your problem should fix it.

It could happen that yum and rpm db need to be synchronized if you get a message like this:
Warning: RPMDB altered outside of yum.

you can use yum history sync

you can check how to use rpm here:

About yum commands:

1 Like

thank u sir for replying

I installed erpnext on a fresh centos, my problem is; alongside cpanel/whm

I’m afraid to crush something in vps, trying in virtualBox first installed cpanel/whm and now when I run sudo python --production --user frappe I get permission denied error, tried as root as well as non root

[bench@cpanel frappe-bench]$ sudo python --production --user frappe
Loaded plugins: fastestmirror, langpacks, universal-hooks
Loading mirror speeds from cached hostfile
 * EA4:
 * cpanel-addons-production-feed:
 * cpanel-plugins:
 * base:
 * epel:
 * extras:
 * remi:
 * remi-safe:
 * updates:
Maybe run: yum groups mark install (see man yum)
No packages in any requested group available to install or update
Loaded plugins: fastestmirror, langpacks, universal-hooks
Loading mirror speeds from cached hostfile
 * EA4:
 * cpanel-addons-production-feed:
 * cpanel-plugins:
 * base:
 * epel:
 * extras:
 * remi:
 * remi-safe:
 * updates:
Package epel-release-7-11.noarch already installed and latest version
Package redhat-lsb-core-4.1-27.el7.centos.1.x86_64 already installed and latest version
Requirement already satisfied, skipping upgrade: MarkupSafe>=0.23 in /usr/lib64/python2.7/site-packages (from jinja2->ansible) (1.1.1)
Traceback (most recent call last):
  File "", line 432, in <module>
  File "", line 106, in install_bench
    run_playbook('create_user.yml', extra_vars=extra_vars)
  File "", line 344, in run_playbook
    success = subprocess.check_call(args, cwd=os.path.join(cwd, 'playbooks'))
  File "/usr/lib64/python2.7/", line 537, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib64/python2.7/", line 524, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib64/python2.7/", line 711, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 13] Permission denied

any help please

I never user CPanel neither WHM,
but about what I remember, these packages modify the system a lot, in order to jail it as much as possible in terms of security and multiuser use.
I am quite sure that the issue is belong those package.
Did you try an installation without any CPanel/WHM?
I really suggest to use this VM host only for the ERP, and no anything else software that can modify the configuration of the system.
If you really cannot live without any graphic control panel, try to use Webmin + Virtualmin…
Another suggestion that I give you, is to open a compatibility issue on ERPNext GitHub page.

1 Like

Yes I installed erpnext without cpanel/whm with no error.