FastCGI problem
Dear all,
I face a problem with the configuration of my WHM server when trying to install Seafile.
It requires to use FastCGI. To do so, I have included a line of
to my custom configuration in /usr/local/apache/conf/userdata/ssl/2_4/user/domain/sf.conf. Furthermore I enabled the fcgi handler in the PHP and SuExec configuration area. Nevertheless I get an error when running
What did I do wrong? Thank you for your feedback, br, Connor
FastCGIExternalServer /var/www/seahub.fcgi -host 127.0.0.1:8000to my custom configuration in /usr/local/apache/conf/userdata/ssl/2_4/user/domain/sf.conf. Furthermore I enabled the fcgi handler in the PHP and SuExec configuration area. Nevertheless I get an error when running
/usr/local/cpanel/bin/build_apache_conf
Failed to generate a syntactically correct Apache configuration.
Bad configuration file located at /usr/local/apache/conf/httpd.conf.work.7JHdf_LOxS_1eAnJ
Error:
Configuration problem detected on line 1 of file /usr/local/apache/conf/userdata/ssl/2_4/user/domain/sf.conf: Invalid command 'FastCGIExternalServer', perhaps misspelled or defined by a module not included in the server configuration
--- /usr/local/apache/conf/userdata/ssl/2_4/user/domain/sf.conf ---
1 ===> FastCGIExternalServer /var/www/seahub.fcgi -host 127.0.0.1:8000 <===
2
3
4
5ServerName seafile.example.eu
6DocumentRoot /home/deubnero/example.eu/seafile
7Alias /media /home/sf/web/seafile-pro-server-4.4.5/seahub/media
--- /usr/local/apache/conf/userdata/ssl/2_4/deubnero/seafile.example.eu/sf.conf ---
What did I do wrong? Thank you for your feedback, br, Connor
-
Hello :) cPanel offers mod_fcgid in EasyApache. You are attempting to use a command that's intended for mod_fastcgi, which is not offered. These are two separate modules: mod_fcgid - Apache HTTP Server Version 2.5 Apache module mod_fastcgi Thank you. 0 -
Is there any option to install a fcgi or proxy_fcgi appliance? Or furthermore - are there experiences on how to install Seafile on a WHM/ cPanel based system? Thank you. 0 -
I found the following third-party guide that seems to provide installation instructions for installing Seafile: How to Install Seafile Server 2.0.4 64-bit on Centos 6.5 64-bit | Server Labs ( Build Your Server ) Note this is for a standalone server so it may require some custom changes to work on a cPanel environment. Thank you. 0 -
Thank you for this - it worked out. Unfortunately, I can't get a https-connection working, as this depends on mod fcgi. Any ideas? Thank you for your feedback, br, Connor 0 -
Unfortunately, I can't get a https-connection working
Could you elaborate on the specific error message or issue that's occurring? Thank you.0 -
Sorry for that - you are right of course. What I am trying to achieve is that I can use SeaFile via HTTPS on sub.domain.tld. As I can't use ModFCGI, I want to use a simple set of mod_proxy rewrite rules. All To do so, I created a seafile.conf in /usr/local/apache/conf/userdata/ssl/2_4/username/sub.domain.tld/seafile.conf to set the VirtualHost on port 443. ServerAdmin mail-adress ServerName sub.domain.tld SSLEngine On SSLCertificateFile /var/cpanel/ssl/installed/certs/cerfile SSLCertificateKeyFile /var/cpanel/ssl/installed/keys/keyfile SSLCACertificateFile /var/cpanel/ssl/installed/cabundles/StartCom_Ltd__3eb90e29$ CustomLog /usr/local/apache/domlogs/logfile LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_connect_module modules/mod_proxy_connect.so RewriteEngine On # # seafile httpserver # ProxyPass /seafhttp http://127.0.0.1:8082 retry=0 ProxyPassReverse /seafhttp http://127.0.0.1:8082 RewriteRule ^/seafhttp - [QSA,L] # # seafile webdav # ProxyPassReverse /seafdav http://127.0.0.1:8080 # # seahub # ProxyPass / http://127.0.0.1:8000/ ProxyPassReverse / http://127.0.0.1:8000 RewriteRule ^/(media.*)$ /$1 [QSA,L,PT]
After that, I restarted Apache via service httpd restart. I get a message saying AH00548: NameVirtualHost has no effect and will be removed in the next release /usr/local/apache/conf/httpd.conf:1026 [Thu Nov 19 18:47:25.216303 2015] [core:error] [pid 32731] (EAI 2)Name or service not known: AH00547: Could not resolve host name domain.tld/seafilefolder -- ignoring! When trying to connect to0 -
You may need to consult with a qualified system administrator for additional advice and assistance for this third-party application if you do not receive additional user-feedback, as there's no native support for it with cPanel. Thank you. 0
Please sign in to leave a comment.
Comments
7 comments