Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Restoring PHP

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    3 Posts 2 Posters 1.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      emery
      last edited by

      Hi. I am running on 2.1 snapshot, and I accidentally downgraded PHP package to 5.3.10 while I was trying to add php5-iconv package against my better judgement. Now the web configurator would not start. Is there a  way to restore PHP (I believe the original snapshot version was 5.3.27) short of reinstalling the firmware from a USB stick? I've included log messages below.

      Thanks a lot.

      Aug  6 14:57:31 gateway php: /etc/rc.restart_webgui: Creating rrd update script
      Aug  6 14:57:32 gateway lighttpd[37053]: (mod_fastcgi.c.1103) the fastcgi-backend /usr/local/bin/php failed to start:
      Aug  6 14:57:32 gateway lighttpd[37053]: (mod_fastcgi.c.1107) child exited with status 0 /usr/local/bin/php
      Aug  6 14:57:32 gateway lighttpd[37053]: (mod_fastcgi.c.1110) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version. If this is PHP on Gentoo, add 'fastcgi' to the USE flags.
      Aug  6 14:57:32 gateway lighttpd[37053]: (mod_fastcgi.c.1397) [ERROR]: spawning fcgi failed.
      Aug  6 14:57:32 gateway lighttpd[37053]: (server.c.964) Configuration of plugins failed. Going down.

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Manually download an update .tgz file and then manually decompress it on top of the current filesystem (or you could just grab the php binaries and modules from it if you're feeling like doing a lot of digging)

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • E
          emery
          last edited by

          Thanks a lot for the quick response, that's exactly what I did. 'Upgrade from console' option in ssh menu works great.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.