Current time: 12-24-2024, 05:40 AM Hello There, Guest! (LoginRegister)


Post Reply 
[RESOLVE] switch fastcgi => apache module
Author Message
leha Offline
Junior Member
*

Posts: 36
Joined: Mar 2009
Reputation: 0
Post: #1
[RESOLVE] switch fastcgi => apache module
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.
(This post was last modified: 03-31-2010 06:59 PM by leha.)
11-27-2009 09:45 PM
Find all posts by this user Quote this message in a reply
Lucan Offline
Member
*
Beta Team

Posts: 982
Joined: Jul 2008
Reputation: 12
Post: #2
RE: switch fastcgi => apache module
a2dismod fcgid_ispcp
a2enmod fastcgi_ispcp

/etc/init.d/apache2 restart
11-27-2009 09:49 PM
Find all posts by this user Quote this message in a reply
leha Offline
Junior Member
*

Posts: 36
Joined: Mar 2009
Reputation: 0
Post: #3
RE: switch fastcgi => apache module
# 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
(This post was last modified: 01-14-2010 11:31 PM by leha.)
01-14-2010 11:22 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #4
RE: switch fastcgi => apache module
(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
01-15-2010 12:58 AM
Visit this user's website Find all posts by this user Quote this message in a reply
leha Offline
Junior Member
*

Posts: 36
Joined: Mar 2009
Reputation: 0
Post: #5
RE: switch fastcgi => apache module
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...
01-16-2010 01:03 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #6
RE: switch fastcgi => apache module
(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".
01-16-2010 02:28 AM
Visit this user's website Find all posts by this user Quote this message in a reply
leha Offline
Junior Member
*

Posts: 36
Joined: Mar 2009
Reputation: 0
Post: #7
RE: switch fastcgi => apache module
wow, realy, I don't have fcgid_ispcp.conf, can you show me your file fcgid_ispcp.conf ?
01-19-2010 02:19 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #8
RE: switch fastcgi => apache module
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...
01-19-2010 04:03 AM
Visit this user's website Find all posts by this user Quote this message in a reply
leha Offline
Junior Member
*

Posts: 36
Joined: Mar 2009
Reputation: 0
Post: #9
RE: [RESOLVE] switch fastcgi => apache module
Thanks a lot!
03-31-2010 07:00 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)