ispCP - Board - Support
[SOLVED] Upgrade result: 404 - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Update/Upgrade (/forum-44.html)
+--- Thread: [SOLVED] Upgrade result: 404 (/thread-5903.html)

Pages: 1 2


[SOLVED] Upgrade result: 404 - WolFree - 03-03-2009 08:49 AM

Hi Guys,

I upgraded today ISPCP, all went fine since the apache restart, results in following error:

Code:
Syntax error on line 34 of /etc/apache2/mods-enabled/fastcgi_ispcp.conf:
FastCgiServer: "/etc/apache2/{PHP_STARTER_DIR}/master/php{PHP_VERSION}-fcgi-star                           ter" stat(/etc/apache2/{PHP_STARTER_DIR}/master/php{PHP_VERSION}-fcgi-starter) f                           ailed: No such file or directory

So I thought this is the only error, so I correct it manually and set the config to:

Code:
<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 vu2000 -group vu2000 -idle-timeout 300

    #
    # 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>

I change the variables to the old values of the config in RC7.

So apache restarts fine:

Code:
wolfree:/var/www/ispcp/engine/setup# /etc/init.d/apache2 restart
Restarting web server: apache2.
wolfree:/var/www/ispcp/engine/setup#

But now I have a beautiful 404 when I opened the backend. Oo

Somebody could help ? Permissions are set correctly to user vu2000.

Thanks

Wolle


RE: Upgrade result: 404 - joximu - 03-03-2009 10:24 AM

error.log?


RE: Upgrade result: 404 - WolFree - 03-03-2009 08:22 PM

Code:
Tue Mar 03 00:20:31 2009] [warn] FastCGI: server "/var/www/fcgi/master/php5-fcgi-starter" (uid 2000, gid 2000) started (pid 13667)
[Tue Mar 03 00:20:31 2009] [notice] Apache/2.2.9 (Debian) mod_fastcgi/2.4.6 mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal operations
[Tue Mar 03 00:20:32 2009] [error] [client 87.152.207.11] (2)No such file or directory: FastCGI: stat() of "/var/www/ispcp/gui/php{PHP_VERSION}" failed
[Tue Mar 03 00:20:34 2009] [error] [client 87.152.207.11] (2)No such file or directory: FastCGI: stat() of "/var/www/ispcp/gui/php{PHP_VERSION}" failed
[Tue Mar 03 00:20:59 2009] [notice] caught SIGTERM, shutting down

Looks like my FastCGI was getting screwed by the update *g* Normal html requests are working well.

I will take a closer look to this, when I found out how to solve it, I will post it here.

Cheers


RE: Upgrade result: 404 - joximu - 03-03-2009 08:33 PM

seems so:

grep -r PHP_VERSION /etc/apache2
and
grep -r PHP_VERSION /var/www/fcgi

all the {...} should be replaced by the right content.
{PHP_VERSION} should normally be 5

/J

PS: from which version did you update? How did you update?


RE: Upgrade result: 404 - WolFree - 03-03-2009 08:38 PM

I updated from Rc7 to stable.

After grep:

Code:
[Tue Mar 03 11:36:47 2009] [notice] FastCGI: wrapper mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Tue Mar 03 11:36:47 2009] [notice] FastCGI: process manager initialized (pid 7135)
[Tue Mar 03 11:36:47 2009] [notice] mod_python: Creating 8 session mutexes based on 6 max processes and 25 max threads.
[Tue Mar 03 11:36:47 2009] [notice] mod_python: using mutex_directory /tmp
[Tue Mar 03 11:36:47 2009] [warn] FastCGI: server "/var/www/fcgi/master/php5-fcgi-starter" (uid 2000, gid 2000) started (pid 7136)
[Tue Mar 03 11:36:47 2009] [notice] Apache/2.2.9 (Debian) mod_fastcgi/2.4.6 mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal operations
[Tue Mar 03 11:36:49 2009] [error] [client 80.134.32.111] (2)No such file or directory: FastCGI: stat() of "/var/www/ispcp/gui/php{PHP_VERSION}" failed
[Tue Mar 03 11:36:50 2009] [error] [client 80.134.32.111] (2)No such file or directory: FastCGI: stat() of "/var/www/ispcp/gui/php{PHP_VERSION}" failed

:/ my god I feel like a newby.


RE: Upgrade result: 404 - joximu - 03-03-2009 08:55 PM

grep should show you where something is to do... id does change nothing... :-)

Was there no output?

/J


RE: Upgrade result: 404 - WolFree - 03-03-2009 09:03 PM

rofl i forget.. ahh i need a coffee

but no there was no output.

But the problem seems to be that it misses a file/folder in the guifolder named php5. But there is no folder or file named like this.


RE: Upgrade result: 404 - joximu - 03-03-2009 09:11 PM

I think it's in the config - but where...???

/etc/ispcp?

hm...

/J


RE: Upgrade result: 404 - sci2tech - 03-04-2009 02:29 AM

Take a look inside /var/www/fcgi/master/php5-fcgi-starter. Should look like
Code:
#!/bin/sh

umask 022

PHPRC="/var/www/fcgi/master/php5/"

export PHPRC
PHP_FCGI_CHILDREN=2
export PHP_FCGI_CHILDREN
PHP_FCGI_MAX_REQUESTS=500
export PHP_FCGI_MAX_REQUESTS

exec /usr/bin/php5-cgi



RE: Upgrade result: 404 - WolFree - 03-04-2009 02:32 AM

my php5-fcgi-starter:
Code:
#!/bin/sh

umask 022

PHPRC="/var/www/fcgi/master/php5/"

export PHPRC
PHP_FCGI_CHILDREN=2
export PHP_FCGI_CHILDREN
PHP_FCGI_MAX_REQUESTS=500
export PHP_FCGI_MAX_REQUESTS

exec /usr/bin/php5-cgi

Exactly the same.