ispCP - Board - Support
[RESOLVE] switch fastcgi => apache module - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: [RESOLVE] switch fastcgi => apache module (/thread-8593.html)



[RESOLVE] switch fastcgi => apache module - leha - 11-27-2009 09:45 PM

Hi all,

I could not find the correct topic, on this has created a new one.

How can I change the mode fastcgi on apache module? Many people write that this will provide greater productivity and reduce the load on the server.


RE: switch fastcgi => apache module - Lucan - 11-27-2009 09:49 PM

a2dismod fcgid_ispcp
a2enmod fastcgi_ispcp

/etc/init.d/apache2 restart


RE: switch fastcgi => apache module - leha - 01-14-2010 11:22 PM

# a2dismod fcgid_ispcp
# a2enmod fastcgi_ispcp
# /etc/init.d/apache2 restart
Forcing reload of web server (apache2)... waiting .Syntax error on line 34 of /etc/apache2/mods-enabled/fastcgi_ispcp.conf:
FastCgiServer: "/etc/apache2/{PHP_STARTER_DIR}/master/php{PHP_VERSION}-fcgi-starter" stat(/etc/apache2/{PHP_STARTER_DIR}/master/php{PHP_VERSION}-fcgi-starter) failed: No such file or directory
failed!

Where am I find "FastCgiServer" to edit? There "/etc/apache2/mods-enabled/" is @fastcgi_ispcp.conf, but he don't have adjustment in FastCgiServer


RE: switch fastcgi => apache module - kilburn - 01-15-2010 12:58 AM

(01-14-2010 11:22 PM)leha Wrote:  Forcing reload of web server (apache2)... waiting .Syntax error on line 34 of /etc/apache2/mods-enabled/fastcgi_ispcp.conf:
FastCgiServer: "/etc/apache2/{PHP_STARTER_DIR}/master/php{PHP_VERSION}-fcgi-starter" stat(/etc/apache2/{PHP_STARTER_DIR}/master/php{PHP_VERSION}-fcgi-starter) failed: No such file or directory
failed!

Where am I find "FastCgiServer" to edit? There "/etc/apache2/mods-enabled/" is @fastcgi_ispcp.conf, but he don't have adjustment in FastCgiServer

Look harder, because it's there for sure. You have to replace the tags for something meaningful. In my case it's:
Code:
FastCgiServer /var/www/fcgi/master/php5-fcgi-starter -user vu2000 -group vu2000 -idle-timeout 300



RE: switch fastcgi => apache module - leha - 01-16-2010 01:03 AM

File: fcgid_ispcp.conf Col 0 879 bytes 100%
#
# ispCP о. (OMEGA) a Virtual Hosting Control System
#
# @copyright 2006-2008 by ispCP | http://isp-control.net
# @version SVN: $Id$
# @link http://isp-control.net
# @author ispCP Team
#
# @license
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MPL General Public License as published by the Free Software
# Foundation; either version 1.1 of the License, or (at your option) any later
# version.
# You should have received a copy of the MPL Mozilla Public License along with
# this program; if not, write to the Open Source Initiative (OSI)
# http://opensource.org | osi@opensource.org
#
################################################################################​

<IfModule mod_fcgid.c>
AddHandler fcgid-script .php .php{PHP_VERSION}
SocketPath /var/lib/apache2/fcgid/sock
IPCConnectTimeout 20
</IfModule>



Its all...


RE: switch fastcgi => apache module - kilburn - 01-16-2010 02:28 AM

(01-16-2010 01:03 AM)leha Wrote:  File: fcgid_ispcp.conf Col 0 879 bytes 100%
#
# ispCP о. (OMEGA) a Virtual Hosting Control System
#
# @copyright 2006-2008 by ispCP | http://isp-control.net
# @version SVN: $Id$
# @link http://isp-control.net
# @author ispCP Team
#
# @license
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MPL General Public License as published by the Free Software
# Foundation; either version 1.1 of the License, or (at your option) any later
# version.
# You should have received a copy of the MPL Mozilla Public License along with
# this program; if not, write to the Open Source Initiative (OSI)
# http://opensource.org | osi@opensource.org
#
################################################################################​

<IfModule mod_fcgid.c>
AddHandler fcgid-script .php .php{PHP_VERSION}
SocketPath /var/lib/apache2/fcgid/sock
IPCConnectTimeout 20
</IfModule>



Its all...

This is fcgid_ispcp.conf, not fastcgi_ispcp.conf. Additionally, you should replace the "{PHP_VERSION}" placeholder by a "5".


RE: switch fastcgi => apache module - leha - 01-19-2010 02:19 AM

wow, realy, I don't have fcgid_ispcp.conf, can you show me your file fcgid_ispcp.conf ?


RE: switch fastcgi => apache module - kilburn - 01-19-2010 04:03 AM

Are you kidding me?! Citing yourself:

leha Wrote:Forcing reload of web server (apache2)... waiting .Syntax error on line 34 of /etc/apache2/mods-enabled/fastcgi_ispcp.conf:
FastCgiServer: "/etc/apache2/{PHP_STARTER_DIR}/master/php{PHP_VERSION}-fcgi-starter" stat(/etc/apache2/{PHP_STARTER_DIR}/master/php{PHP_VERSION}-fcgi-starter) failed: No such file or directory
failed!

Apache is complaining about some specific contents of this file. Don't tell me you don't have it...


RE: [RESOLVE] switch fastcgi => apache module - leha - 03-31-2010 07:00 PM

Thanks a lot!