Solutions to Python-related problems in Nginxcp

  • June 5, 2015
  • 0 Comments

The most common and first solution is to run the Pythonfix script.
You can do this by navigating to the "publicnginx" folder and running "./pythonfix".

Code:
cd /usr/local/src/publicnginx
./pythonfix



However, if you have a Python version that's later than 2.4 (run "python -V" to check the Python version on your machine), do the following:

Code:
mkdir /tmp/yamlUpdate
cd /tmp/yamlUpdate
wget http://pyyaml.org/download/pyyaml/PyYAML-3.11.tar.gz
tar -xvf PyYAML-3.11.tar.gz
cd PyYAML-3.11
python setup.py install



If you have absolutely no idea about what you're doing, simply ignore the lines written above and only run the following (although this will work it's recommended that you use the lines above):

Code:
mkdir /tmp/yamlUpdate
cd /tmp/yamlUpdate
wget http://pyyaml.org/download/pyyaml/PyYAML-3.11.tar.gz
tar -xvf PyYAML-3.11.tar.gz
cd PyYAML-3.11
python setup.py install
cd /usr/local/src
rm -rf nginxadmin.tar
wget http://nginxcp.com/latest/nginxadmin.tar 
tar xf nginxadmin.tar
rm -rf publicnginx
cd publicnginx



taken from http://www.nginxcp.com/forums/Thread-solutions-to-python-related-problems?pid=4888#pid4888

How helpful was this article to you?

Posting has been disabled.