How to Remove FastCGI?

In preparation for the upgrade to Seafile CE v.6.2.X I want to remove fastcgi (running under Nginx and Ubuntu).

Besides removing the fastcgi block from the Nginx site file (see below), where else do I look for traces of fastcgi in the server configuration?

Removed:

location / {
fastcgi_pass 127.0.0.1:8000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_script_name;

        fastcgi_param   SERVER_PROTOCOL     $server_protocol;
        fastcgi_param   QUERY_STRING        $query_string;
        fastcgi_param   REQUEST_METHOD      $request_method;
        fastcgi_param   CONTENT_TYPE        $content_type;
        fastcgi_param   CONTENT_LENGTH      $content_length;
        fastcgi_param   SERVER_ADDR         $server_addr;
        fastcgi_param   SERVER_PORT         $server_port;
        fastcgi_param   SERVER_NAME         $server_name;
        fastcgi_param   HTTPS               on;
        fastcgi_param   HTTP_SCHEME         https;

        access_log      /var/log/nginx/seahub.access.log;
        error_log       /var/log/nginx/seahub.error.log;
    }

Thank you very much for the help.

1 Like

If you are running automatic startup of Seafile at boot change systemd service file

/etc/systemd/system/seahub.service

to disallow fastcgi:

[Unit]
Description=Seafile
"#"add mysql.service or postgresql.service depending on your database to the line below
After=network.target

[Service]
Type=oneshot
ExecStart=${seafile_dir}/seafile-server-latest/seafile.sh start
ExecStop=${seafile_dir}/seafile-server-latest/seafile.sh stop
RemainAfterExit=yes
User=seafile
Group=seafile

[Install]
WantedBy=multi-user.target

See here for reference: https://manual.seafile.com/deploy/start_seafile_at_system_bootup.html

Related post on startup issues after moving from fastcgi:

1 Like