Current time: 12-16-2019, 11:56 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Debian squeeze - fcgid error
Author Message
GTR Offline
Newbie
*

Posts: 6
Joined: Feb 2010
Reputation: 0
Post: #1
Debian squeeze - fcgid error
after updating my server i cannot start or reload apache2 anymore (debian squeeze)

Code:
pd-server:/var/www/ispcp/engine/setup# /etc/init.d/apache2 reload
Syntax error on line 29 of /etc/apache2/mods-available/fcgid_ispcp.conf:
SocketPath cannot occur within <VirtualHost> section

and updating to current ispcp trunk doesn't help also...

the only way to start apache is to delete /etc/apache/sites-enabled/ispcp.conf or to delete all users (so no virtual host entries)

so it is a problem with fcgid and virtual host entries from ispcp


before last updates everthing was fine...

hope you can help me
thanks in advance
(This post was last modified: 02-19-2010 09:54 AM by GTR.)
02-19-2010 09:52 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: Debian squeeze - fcgid error
post the fcgid_ispcp.conf ...
02-19-2010 10:02 AM
Visit this user's website Find all posts by this user Quote this message in a reply
GTR Offline
Newbie
*

Posts: 6
Joined: Feb 2010
Reputation: 0
Post: #3
RE: Debian squeeze - fcgid error
(02-19-2010 10:02 AM)joximu Wrote:  post the fcgid_ispcp.conf ...
Code:
<IfModule mod_fcgid.c>
  AddHandler fcgid-script .php .php5
  SocketPath /var/lib/apache2/fcgid/sock
  IdleTimeout 600
  IdleScanInterval 120
  BusyTimeout 300
  BusyScanInterval 120
  ErrorScanInterval 3
  ZombieScanInterval 3
  ProcessLifeTime 900
  SpawnScoreUpLimit 10
  SpawnScore 1
  TerminationScore 2
  MaxProcessCount 200
  DefaultMaxClassProcessCount 10
  DefaultMinClassProcessCount 1
  IPCConnectTimeout 900
  IPCCommTimeout 900
  MaxRequestsPerProcess 500
</IfModule>

line 29:
Code:
SocketPath /var/lib/apache2/fcgid/sock

the problem is this line in the ispcp.conf for my domains:
Code:
Include /etc/apache2/mods-available/fcgid_ispcp.conf

this line is within <VirtualHost></Virtualhost> but it seems that the new version of apache2 or fcgid whatever doesn't accept this.
(This post was last modified: 02-19-2010 10:41 AM by GTR.)
02-19-2010 10:13 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: #4
RE: Debian squeeze - fcgid error
Try the following:

1. copy this file to /etc/apache2/ispcp/fcgid_ispcp.conf
2. remove the SocketPath directive from this new copy
3. change the "Include {MODS_DIR}/fcgid_ispcp.conf" directive to "Include {CUSTOM_SITES_CONFIG_DIR}/fcgid_ispcp.conf" in the files /etc/ispcp/apache/parts/{als,dmn,sub}_php2_entry.tpl
4. regenerate configuration files (there's a howto in the docs).
02-19-2010 01:19 PM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #5
RE: Debian squeeze - fcgid error
(02-19-2010 10:13 AM)GTR Wrote:  
(02-19-2010 10:02 AM)joximu Wrote:  post the fcgid_ispcp.conf ...
Code:
<IfModule mod_fcgid.c>
  AddHandler fcgid-script .php .php5
  SocketPath /var/lib/apache2/fcgid/sock
  IdleTimeout 600
  IdleScanInterval 120
  BusyTimeout 300
  BusyScanInterval 120
  ErrorScanInterval 3
  ZombieScanInterval 3
  ProcessLifeTime 900
  SpawnScoreUpLimit 10
  SpawnScore 1
  TerminationScore 2
  MaxProcessCount 200
  DefaultMaxClassProcessCount 10
  DefaultMinClassProcessCount 1
  IPCConnectTimeout 900
  IPCCommTimeout 900
  MaxRequestsPerProcess 500
</IfModule>

line 29:
Code:
SocketPath /var/lib/apache2/fcgid/sock

the problem is this line in the ispcp.conf for my domains:
Code:
Include /etc/apache2/mods-available/fcgid_ispcp.conf

this line is within <VirtualHost></Virtualhost> but it seems that the new version of apache2 or fcgid whatever doesn't accept this.

Hi

normally you don't include the module-config in your virtualhost configs.

you need to enable fcgid_ispcp (eg. "a2enmod fcgid_ispcp") so the module is loaded globally. And also remove the line in the ispcp.conf

Of corse if you need customer specific fcgid settings - then maybe follow killburns instructions...

/J
02-19-2010 06:43 PM
Visit this user's website Find all posts by this user Quote this message in a reply
GTR Offline
Newbie
*

Posts: 6
Joined: Feb 2010
Reputation: 0
Post: #6
RE: Debian squeeze - fcgid error
this doesn't work also because if i remove socketpath i get this error:
Code:
Restarting web server: apache2Syntax error on line 31 of /etc/apache2/ispcp/fcgid_ispcp.conf:
IdleScanInterval cannot occur within <VirtualHost> section
failed!

and if remove this line i get this error:
Code:
Restarting web server: apache2Syntax error on line 33 of /etc/apache2/ispcp/fcgid_ispcp.conf:
BusyScanInterval cannot occur within <VirtualHost> section
failed!

and so on and so on....

i have to remove nearly all lines bevor it will work...
it must have something to do with new apache2 or fcgid version (squeeze)...
the problem was after (aptitude update && aptitude upgrade) updating php/apache etc...

these lines must be deactivated:
Code:
<IfModule mod_fcgid.c>
  AddHandler fcgid-script .php .php5
#  SocketPath /var/lib/apache2/fcgid/sock
  IdleTimeout 600
#  IdleScanInterval 120
  BusyTimeout 300
#  BusyScanInterval 120
#  ErrorScanInterval 3
#  ZombieScanInterval 3
  ProcessLifeTime 900
#  SpawnScoreUpLimit 10
#  SpawnScore 1
#  TerminationScore 2
#  MaxProcessCount 200
  DefaultMaxClassProcessCount 10
  DefaultMinClassProcessCount 1
  IPCConnectTimeout 900
  IPCCommTimeout 900
  MaxRequestsPerProcess 500
</IfModule>

can't be good isn't it?
(This post was last modified: 02-19-2010 09:07 PM by GTR.)
02-19-2010 09:03 PM
Find all posts by this user Quote this message in a reply
RatS Offline
Project Leader
******

Posts: 1,854
Joined: Oct 2006
Reputation: 17
Post: #7
RE: Debian squeeze - fcgid error
Unfortunately the changes are not good. We might not have the time to make omega 1.0.4 working for Debian squeeze. Therefore, we will make it possible in omega 1.0.5. Omega 1.0.5 will be released before Squeeze gets stable.
02-23-2010 07:03 AM
Visit this user's website Find all posts by this user Quote this message in a reply
RatS Offline
Project Leader
******

Posts: 1,854
Joined: Oct 2006
Reputation: 17
Post: #8
RE: Debian squeeze - fcgid error
I tried to play around a bit and would like to test you replacing fcgid_ispcp.conf with the following:

Code:
# ispCP ω (OMEGA) a Virtual Hosting Control Panel
# Copyright (C) 2006-2010 by isp Control Panel - http://ispcp.net
#
# Version: $Id: fcgid_ispcp.conf 2505 2010-01-06 20:30:53Z nuxwin $
#
# The contents of this file are subject to the Mozilla Public License
# Version 1.1 (the "License"); you may not use this file except in
# compliance with the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS"
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
# License for the specific language governing rights and limitations
# under the License.
#
# The Original Code is "ispCP ω (OMEGA) a Virtual Hosting Control Panel".
#
# The Initial Developer of the Original Code is ispCP Team.
# Portions created by Initial Developer are Copyright (C) 2006-2010 by
# isp Control Panel. All Rights Reserved.
#
# The ispCP ω Home Page is:
#
#    http://isp-control.net
#

<IfModule mod_fcgid.c>
  AddHandler fcgid-script .php .php5
  FcgidIPCDir /var/lib/apache2/fcgid/sock
  FcgidIdleTimeout 600
  FcgidIdleScanInterval 120
  FcgidBusyTimeout 300
  FcgidBusyScanInterval 120
  FcgidErrorScanInterval 3
  FcgidZombieScanInterval 3
  FcgidProcessLifeTime 900
  FcgidSpawnScoreUpLimit 10
  FcgidSpawnScore 1
  FcgidTerminationScore 2
  FcgidMaxProcesses 200
  FcgidMaxProcessesPerClass 10
  FcgidMinProcessesPerClass 1
  FcgidConnectTimeout 900
  FcgidIOTimeout 900
  FcgidMaxRequestsPerProcess 500
</IfModule>

Let me know your experiences.
02-23-2010 07:47 AM
Visit this user's website Find all posts by this user Quote this message in a reply
GTR Offline
Newbie
*

Posts: 6
Joined: Feb 2010
Reputation: 0
Post: #9
RE: Debian squeeze - fcgid error
doesn't make a change Sad

same errors FcgidIPCDir /var/lib/apache2/fcgid/sock cannot occur within <VirtualHost> section etc...
02-23-2010 08:49 PM
Find all posts by this user Quote this message in a reply
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #10
RE: Debian squeeze - fcgid error
Here is the Solution, but this site is in German.

http://blog.benny-baumann.de/?p=519

Works for me
02-28-2010 03:51 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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