ispCP - Board - Support
Debian squeeze - fcgid error - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Development Area (/forum-1.html)
+--- Forum: Tickets / Roadmap / Timeline (/forum-50.html)
+--- Thread: Debian squeeze - fcgid error (/thread-9675.html)

Pages: 1 2 3


Debian squeeze - fcgid error - GTR - 02-19-2010 09:52 AM

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


RE: Debian squeeze - fcgid error - joximu - 02-19-2010 10:02 AM

post the fcgid_ispcp.conf ...


RE: Debian squeeze - fcgid error - GTR - 02-19-2010 10:13 AM

(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.


RE: Debian squeeze - fcgid error - kilburn - 02-19-2010 01:19 PM

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).


RE: Debian squeeze - fcgid error - joximu - 02-19-2010 06:43 PM

(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


RE: Debian squeeze - fcgid error - GTR - 02-19-2010 09:03 PM

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?


RE: Debian squeeze - fcgid error - RatS - 02-23-2010 07:03 AM

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.


RE: Debian squeeze - fcgid error - RatS - 02-23-2010 07:47 AM

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.


RE: Debian squeeze - fcgid error - GTR - 02-23-2010 08:49 PM

doesn't make a change Sad

same errors FcgidIPCDir /var/lib/apache2/fcgid/sock cannot occur within <VirtualHost> section etc...


RE: Debian squeeze - fcgid error - gOOvER - 02-28-2010 03:51 AM

Here is the Solution, but this site is in German.

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

Works for me