I installed Python 2.7 on CentOS in a different location, but I didn't change the PYTHON_PATH to newly installed Python. Since then, I am not able to access the system via cPanel or SSH (to revert back the PYTHON_PATH). I'm also not able to access any of the hosted sites in a web browser. It keeps on looking for host. However, the site is still pingable from cmd with 0% packet loss.

Could changing PYTHON_PATH have caused this? How can I get access to the server now? :(

migrated from stackoverflow.com Feb 21 '12 at 21:39

This question came from our site for professional and enthusiast programmers.

  • May be host disabled the shell access as i have installed new service?? – Aamir Adnan Feb 21 '12 at 21:08
  • Not a programming question. – kindall Feb 21 '12 at 21:12
  • How exactly did you install the new version? From a .rpm? Through Yum with an alternate repo? Or you compiled it? If you compiled it, which configure options did you use exactly? – Yanick Girouard Feb 22 '12 at 4:56

If I understand correctly, you installed Python 2.7 into an alternate location (such as /opt) but not update any system-wide references to PYTHON_PATH. If you left the system Python 2.4 installed in it's default location, this could not have caused the issues you are describing.

I also gather that this is a VPS. Does your provider off any out-of-band access to the VM itself? For example, with Linode they offer the Lish service.

The fact that the VM is pingable may not mean that it's running, depending on the network architecture. Is the public IP address assigned directly to eth0 (or whatever the primary device is)?

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.