The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can anyone help me fix a broken http service after python / django install attempt?

Discussion in 'General Discussion' started by truelifeajf, May 29, 2014.

  1. truelifeajf

    truelifeajf Registered

    Joined:
    May 29, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi all.

    I have:
    - dedicated server
    - RedHat
    - cpanel / WHM
    - 4 cpanel accounts set up
    - apache2
    - administrator root access

    I tried:
    - installing python v.2.7 into /opt/python2.7/bin
    - installing pip (/opt/python2.7/bin/pip)
    - installing mod_wsgi
    - configuring virtualenv

    The result:
    - it "broke" the server. HTTP is no longer functional
    - my web host says it's from installing unsupported python "stuff"
    - my web host says there's another apache webserver running and there shouldn't be

    Part of the apache error log is...
    # tail -f /usr/local/apache/logs/error_log
    Consider setting $PYTHONHOME to [:]
    ImportError: No module named site
    Could not find platform independent libraries
    Could not find platform dependent libraries

    I've attached the relevant bash history in case anyone wants to see what was done.

    I'd love it if someone can point me in the right direction.

    OR

    If anyone wants a job to fix the problem and can work on it now... let me know :)
     

    Attached Files:

  2. samachosting

    samachosting Member

    Joined:
    Apr 25, 2014
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    Have you tried /scripts/upcp --force ?
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    I suggest starting out by reverting the manual changes you made. Once you have done that, rebuild Apache/PHP via EasyApache and let us know what specific build errors you encounter.

    Thank you.
     
Loading...

Share This Page