I'm trying to make working Seafile accessible via HTTPS (locally), following this guide, but I can't install libapache-mod-fastcgi, which is why restarting Apache2 finally fails, as FastCGIExternalServer is not available.

Other tutorials mention that I could install libapache-mod-fastcgi like this:

sudo apt-get -b source libapache-mod-fastcgi
sudo dpkg -i libapache2-mod-fastcgi*.deb

But that fails with E: Unable to find a source package for libapache-mod-fastcgi

Is there any other way making FastCGIExternalServer available on my RPi2?


sudo apt-get install libapache2-mod-fastcgi

results in

E: Package 'libapache2-mod-fastcgi' has no installation candidate

Yet, upon inspection of my /etc/apt/sources.list, I saw that deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi was commented, so I couldn't use apt-get source

Now I was able to install libapache-mod-fastcgi:

This website gave me the following:

apt-get install debhelper dpatch libtool cdbs libapr1-dev apache2-threaded-dev

Yet building failed again, the I ran:

apt-get build-dep libapache-mod-fastcgi


sudo apt-get -b source libapache-mod-fastcgi
sudo dpkg -i libapache2-mod-fastcgi*.deb

seems to be working!

2 Answers 2


Just use:

apt-get install libapache2-mod-fastcgi
  • I understand and that was my first approach. I should have mentioned this in the OP.. It results in: E: Package 'libapache2-mod-fastcgi' has no installation candidate Mar 1, 2016 at 20:59

try the following maybe


sources https://manual.seafile.com/deploy/https_with_apache.html httpxx://manual.seafile.com/deploy/deploy_with_apache.html

  • Hello and welcome! Please take the tour and visit the helpcenter. Whilst this may theoretically answer the question, it is preferable to include the essential parts of the answer here, and provide the link for reference. In fact we're enforcing this policy: please edit so that the answer stands on its own should the link break in the future. If it is not edited within 48 hours it will be converted to Community Wiki.
    – Ghanima
    May 10, 2017 at 18:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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