WordPress.org

Ready to get started?Download WordPress

Forums

sh: /usr/local/bin/python (8 posts)

  1. mrlollige
    Member
    Posted 3 years ago #

    Hi,

    Since today I see the message:

    sh: /usr/local/bin/python: No such file or directory

    On top of my site. I can not remember I changed any setting or plug in when it changed to this. After I saw this message I upgraded to 3.2.1 (from 3.2) which made no difference.
    You can have a look at it here: danielsiegmund.nl

    What does this mean, and how do I get rid of it?
    Daniel

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Try contacting your hosts. WordPress doesn't use Python, so it's coming from outside of WordPress.

  3. mrlollige
    Member
    Posted 3 years ago #

    That would make sense if it was on all pages. But this message does not show on the admin panel or on any of my other sites running on the same server (also not those that run WP)

  4. esmi
    Forum Moderator
    Posted 3 years ago #

    Have you tried:

    - deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the Twenty Eleven theme to rule out any theme-specific problems.

    - resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

  5. mrlollige
    Member
    Posted 3 years ago #

    Really strange, if I go into PhpMyAdmin I can not find active_plugins in wp_options...
    I did the thing they suggest with PHP, but it makes no difference at all. Neither does changing theme :(

  6. Daniel Cid
    Member
    Posted 3 years ago #

    Look at your index.php. Your site is probably hacked (seeing some hacked sites trying to contact an external host that is causing this error).

  7. mrlollige
    Member
    Posted 3 years ago #

    I was afraid of that, but I had no idea where to look to solve it. Indeed there were some evil lines in index.php, problem solved!

    Now, does anyone know how this got there? Am I safe if I change all passwords be up to date with newest wordpress? Strange thing is that this website has always been WP up to date. Other sites of mine have been "hacked" about a year after I quit updating them. They run on the same server though...

  8. UseShots
    Member
    Posted 3 years ago #

    Hi,

    Here's a link to Sucuri's post about this:
    http://blog.sucuri.net/2011/07/python-no-such-file-or-directory-your-site-is-likely-compromised.html

    In my experience. most of such hacks involve backdoor scripts.

    Make sure there are no suspicious files and there is no suspicious code in legitimate files. (Check themes, plugins and uploads directories).
    You can also scan raw log files for suspicious POST requests - this way you may find backdoor file.

    Of course, changing all site passwords is a very good idea after such incidents.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags