Current time: 11-29-2024, 12:09 PM Hello There, Guest! (LoginRegister)


Post Reply 
All kinds of problems after Upgrading to 1.0.2
Author Message
Gymnogyp Offline
Junior Member
*

Posts: 20
Joined: Nov 2008
Reputation: 0
Post: #1
All kinds of problems after Upgrading to 1.0.2
Ok, after upgrading from 1.0.0 to 1.0.2 I have been having all sorts of problems.

I managed to get the FTP problems fixed, but I started getting errors when loading Apache...

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

I followed the directions on the this thread: http://www.isp-control.net/forum/thread-...TARTER_DIR

But, now all of my sites are still not loading but instead they are asking me to DOWNLOAD "application/x-httpd-php"

Here is an example website: http://shauntastic.com

I am running Debian Lenny. Everything was working fine before the update.

HELP! PLEASE!
09-22-2009 07:36 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: All kinds of problems after Upgrading to 1.0.2
Please look for a working version of this file fastcgi_ispcp.conf

or - this is important - replace all {...} with the correct values:

{PHP_VERSION} = 5
{PHP_STARTER_DIR} = /var/www/fcgi

Hopefully you have backups of the former files - maybe there are more with not replaced placeholders...

/J
09-22-2009 07:48 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Gymnogyp Offline
Junior Member
*

Posts: 20
Joined: Nov 2008
Reputation: 0
Post: #3
RE: All kinds of problems after Upgrading to 1.0.2
I have a fastcgi_ispcp.conf file and all {...} have been replaced with
{PHP_VERSION} = 5
{PHP_STARTER_DIR} = /var/www/fcgi

Here is my fastcgi_ispcp.conf file;

#
# 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_fastcgi.c>
FastCgiWrapper On
FastCgiIpcDir /var/lib/apache2/fastcgi

FastCgiConfig -minProcesses 1 \
-maxProcesses 400 \
-maxClassProcesses 5 \
-multiThreshold 80 \
-killInterval 60 \
-startDelay 5
# -singleThreshold 100 \
# -autoUpdate \
# -pass-header HTTP_AUTHORIZATION

FastCgiServer /var/www/fcgi/master/php5-fcgi-starter -user {APACHE_SUEXEC_USER_PREF}{APACHE_SUEXEC_MIN_UID} -group {APACHE_SUEXEC_USER_PREF}{APACHE_SUEXEC_MIN_GID} -id$

#
# PHP5 SUPPORT
#

AddHandler php-fastcgi .php .php5

<Location /php5/php5-fcgi-starter>
FastCgiIpcDir /var/lib/apache2/fastcgi

FastCgiConfig -minProcesses 1 \
-maxProcesses 400 \
-maxClassProcesses 5 \
-multiThreshold 80 \
-killInterval 60 \
-startDelay 5
# -singleThreshold 100 \
# -autoUpdate \
# -pass-header HTTP_AUTHORIZATION

FastCgiServer /var/www/fcgi/master/php5-fcgi-starter -user {APACHE_SUEXEC_USER_PREF}{APACHE_SUEXEC_MIN_UID} -group {APACHE_SUEXEC_USER_PREF}{APACHE_SUEXEC_MIN_GID} -id$

#
# PHP5 SUPPORT
#

AddHandler php-fastcgi .php .php5

<Location /php5/php5-fcgi-starter>
SetHandler fastcgi-script
Options +ExecCGI
</Location>

Action php-fastcgi /php5/php5-fcgi-starter
AddType application/x-httpd-php .php .php5
</IfModule>
Now, I am getting the following error when restarting apache;

Restarting web server: apache2apache2: bad user name {APACHE_SUEXEC_USER_PREF}{APACHE_SUEXEC_MIN_UID}
failed!
(This post was last modified: 09-22-2009 08:55 AM by Gymnogyp.)
09-22-2009 08:53 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: All kinds of problems after Upgrading to 1.0.2
You also have to replace {APACHE_SUEXEC_USER_PREF}{APACHE_SUEXEC_MIN_UID} by "vu2000" and {APACHE_SUEXEC_USER_PREF}{APACHE_SUEXEC_MIN_GID} by vu2000 too.
09-22-2009 03:02 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: All kinds of problems after Upgrading to 1.0.2
Tha same file in the backup you (should) have made before upgrading should help finding the replacement values.

Obviously there was something wrong in the upgrade process.

/J
09-22-2009 05:39 PM
Visit this user's website Find all posts by this user Quote this message in a reply
jeeva Offline


Posts: 4
Joined: Sep 2009
Reputation: 0
Post: #6
RE: All kinds of problems after Upgrading to 1.0.2
(Fresh installation of debian & ispcp)

Hi

I get the same error, http://admin.domain.com , wants to download "application/x-httpd-php"

I created fastcgi_ispcp.conf in /var/www/fcgi (since there was nothing in it)

and replaced those {..} with vu2000

Restarted apache2 successfully, but still it wants to "download the website"

What must my <Location /php5/php5-fcgi-starter> be? since I can't find something resembling that on my server.

running:
Linux version 2.6.28.4-xxxx-std-ipv4-64 (root@kernel-64.ovh.net) (gcc version 4.3.2 (Debian 4.3.2-1) ) #4 SMP Wed Sep 9 22:08:40 UTC 2009
(This post was last modified: 09-24-2009 01:29 PM by jeeva.)
09-24-2009 01:17 PM
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: #7
RE: All kinds of problems after Upgrading to 1.0.2
@jeeva
Have you installed at least one ot the packages?
libapache2-mod-fastcgi
libapache2-mod-fcgid
they are not part of debian...

see installation guide.

/J
09-24-2009 05:00 PM
Visit this user's website Find all posts by this user Quote this message in a reply
jeeva Offline


Posts: 4
Joined: Sep 2009
Reputation: 0
Post: #8
RE: All kinds of problems after Upgrading to 1.0.2
(09-24-2009 05:00 PM)joximu Wrote:  @jeeva
Have you installed at least one ot the packages?
libapache2-mod-fastcgi
libapache2-mod-fcgid
they are not part of debian...

see installation guide.

/J

Code:
i9:/var/www/fcgi# apt-get install libapache2-mod-fastcgi
Reading package lists... Done
Building dependency tree
Reading state information... Done
libapache2-mod-fastcgi is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Both modules are already installed

I also deleted the fastcgi_ispcp.conf i manuall created from above paste, then ran the perl ./ispcp-setup again and selected fastcgi in the installation menu. No fastcgi config was written that I can see.

Still get the same problem afterwards, when i go to admin.i9.co.za it still wants do download the http

ps afx reveals
Code:
i9:/var/www/ispcp/engine# ps afx
  PID TTY      STAT   TIME COMMAND
    2 ?        S<     0:00 [kthreadd]
    3 ?        S<     0:02  \_ [migration/0]
    4 ?        S<     0:00  \_ [ksoftirqd/0]
    5 ?        S<     0:02  \_ [migration/1]
    6 ?        S<     0:00  \_ [ksoftirqd/1]
    7 ?        S<     0:00  \_ [events/0]
    8 ?        S<     0:00  \_ [events/1]
    9 ?        S<     0:00  \_ [khelper]
   13 ?        S<     0:00  \_ [kstop/0]
   14 ?        S<     0:00  \_ [kstop/1]
  151 ?        S<     0:00  \_ [kintegrityd/0]
  152 ?        S<     0:00  \_ [kintegrityd/1]
  153 ?        S<     0:00  \_ [kblockd/0]
  154 ?        S<     0:00  \_ [kblockd/1]
  155 ?        S<     0:00  \_ [kacpid]
  156 ?        S<     0:00  \_ [kacpi_notify]
  219 ?        S<     0:00  \_ [ata/0]
  220 ?        S<     0:00  \_ [ata/1]
  221 ?        S<     0:00  \_ [ata_aux]
  222 ?        S<     0:00  \_ [ksuspend_usbd]
  227 ?        S<     0:00  \_ [khubd]
  230 ?        S<     0:00  \_ [kseriod]
  299 ?        S      0:00  \_ [pdflush]
  300 ?        S      0:02  \_ [pdflush]
  301 ?        S<     0:02  \_ [kswapd0]
  302 ?        S<     0:00  \_ [aio/0]
  303 ?        S<     0:00  \_ [aio/1]
  307 ?        S<     0:00  \_ [nfsiod]
  308 ?        S<     0:00  \_ [cifsoplockd]
  309 ?        S<     0:00  \_ [cifsdnotifyd]
  311 ?        S<     0:00  \_ [xfs_mru_cache]
  312 ?        S<     0:00  \_ [xfslogd/0]
  313 ?        S<     0:00  \_ [xfslogd/1]
  314 ?        S<     0:00  \_ [xfsdatad/0]
  315 ?        S<     0:00  \_ [xfsdatad/1]
  316 ?        S<     9:43  \_ [gfs2_scand]
  317 ?        S<     0:00  \_ [glock_workqueue]
  318 ?        S<     0:00  \_ [glock_workqueue]
1049 ?        S<     0:00  \_ [iscsi_eh]
1068 ?        S<     0:00  \_ [scsi_eh_0]
1070 ?        S<     0:00  \_ [scsi_eh_1]
1085 ?        S<     0:00  \_ [mtdblockd]
1123 ?        S<     0:00  \_ [kpsmoused]
1137 ?        S<     0:00  \_ [kstriped]
1139 ?        S<     0:00  \_ [kdelayd/0]
1140 ?        S<     0:00  \_ [kdelayd/1]
1141 ?        S<     0:00  \_ [kmpathd/0]
1142 ?        S<     0:00  \_ [kmpathd/1]
1143 ?        S<     0:00  \_ [kmpath_handlerd]
1144 ?        S<     0:00  \_ [ksnapd]
1145 ?        S<     0:00  \_ [kondemand/0]
1146 ?        S<     0:00  \_ [kondemand/1]
1149 ?        S<     0:00  \_ [hid_compat]
1154 ?        S<     0:00  \_ [rpciod/0]
1155 ?        S<     0:00  \_ [rpciod/1]
1209 ?        S<     0:00  \_ [scsi_eh_2]
1211 ?        S<     1:09  \_ [scsi_wq_2]
1212 ?        S<     0:00  \_ [iscsi_scan_2]
1227 ?        S<     0:20  \_ [kjournald]
    1 ?        Ss     0:07 init [2]
3361 ?        Sl     0:19 /usr/sbin/rsyslogd -c3
3400 ?        Ss     0:02 /usr/sbin/sshd
15507 ?        Ss     0:00  \_ sshd: root@pts/0
15511 pts/0    Ss+    0:00  |   \_ -bash
15615 ?        Ss     0:00  \_ sshd: root@pts/1
15619 pts/1    Ss     0:00      \_ -bash
2284 pts/1    R+     0:00          \_ ps afx
3648 ?        Ss     0:14 /sbin/iscsid
3649 ?        S<Ls   0:45 /sbin/iscsid
3670 ?        Ss     0:01 /sbin/mdadm --monitor --pid-file /var/run/mdadm/monit
3693 ?        Ss     0:08 /usr/sbin/cron
3798 tty1     Ss+    0:00 /sbin/getty 38400 tty1
3800 tty2     Ss+    0:00 /sbin/getty 38400 tty2
3801 tty3     Ss+    0:00 /sbin/getty 38400 tty3
3803 tty4     Ss+    0:00 /sbin/getty 38400 tty4
3804 tty5     Ss+    0:00 /sbin/getty 38400 tty5
3806 tty6     Ss+    0:00 /sbin/getty 38400 tty6
3807 ttyS0    Ss+    0:00 /sbin/getty -L ttyS0 9600 vt100
8289 ?        S      0:00 /bin/sh /usr/bin/mysqld_safe
8328 ?        Sl     0:25  \_ /usr/sbin/mysqld --basedir=/usr --datadir=/var/li
8329 ?        S      0:00  \_ logger -p daemon.err -t mysqld_safe -i -t mysqld
9913 ?        S<s    0:00 udevd --daemon
28993 ?        S      0:00 /var/www/ispcp/daemon/ispcp_daemon -p /var/run/ispcp_
16595 ?        Ssl    0:00 /usr/sbin/named -u bind
16696 ?        Ss     0:00 /usr/sbin/apache2 -k start
16699 ?        S      0:00  \_ /usr/bin/perl /var/www/ispcp/engine/ispcp-apache-
16700 ?        S      0:00  \_ /usr/bin/perl /var/www/ispcp/engine/ispcp-apache-
16701 ?        S      0:00  \_ /usr/sbin/apache2 -k start
16703 ?        S      0:00  \_ /usr/sbin/fcgi-pm -k start
16704 ?        Ss     0:00  |   \_ /usr/bin/php5-cgi
17136 ?        S      0:00  |       \_ /usr/bin/php5-cgi
17137 ?        S      0:00  |       \_ /usr/bin/php5-cgi
16705 ?        Sl     0:00  \_ /usr/sbin/apache2 -k start
16706 ?        Sl     0:00  \_ /usr/sbin/apache2 -k start
16845 ?        Ss     0:00 /usr/lib/postfix/master
16851 ?        S      0:00  \_ pickup -l -t fifo -u -c
16852 ?        S      0:00  \_ qmgr -l -t fifo -u
16882 ?        Ss     0:00 proftpd: (accepting connections)
(This post was last modified: 09-25-2009 02:02 AM by jeeva.)
09-25-2009 01:31 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: #9
RE: All kinds of problems after Upgrading to 1.0.2
apache2ctl -M
09-25-2009 02:13 AM
Visit this user's website Find all posts by this user Quote this message in a reply
jeeva Offline


Posts: 4
Joined: Sep 2009
Reputation: 0
Post: #10
RE: All kinds of problems after Upgrading to 1.0.2
Code:
i9:/var/www/ispcp/engine# apache2ctl -M
Loaded Modules:
core_module (static)
log_config_module (static)
logio_module (static)
mpm_worker_module (static)
http_module (static)
so_module (static)
actions_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_file_module (shared)
authz_default_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cgi_module (shared)
cgid_module (shared)
deflate_module (shared)
dir_module (shared)
env_module (shared)
fastcgi_module (shared)
headers_module (shared)
include_module (shared)
mime_module (shared)
negotiation_module (shared)
rewrite_module (shared)
setenvif_module (shared)
status_module (shared)
suexec_module (shared)
vhost_alias_module (shared)
Syntax OK

is there no way i can give you my login to my server in PM and then you can check it out?
(This post was last modified: 09-25-2009 03:36 AM by jeeva.)
09-25-2009 02:43 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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