Current time: 04-20-2024, 06:46 PM Hello There, Guest! (LoginRegister)


Post Reply 
[SOLVED] Upgrade result: 404
Author Message
WolFree Offline
Junior Member
*

Posts: 50
Joined: Jan 2009
Reputation: 0
Post: #1
[SOLVED] Upgrade result: 404
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
(This post was last modified: 03-04-2009 03:45 AM by WolFree.)
03-03-2009 08:49 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: Upgrade result: 404
error.log?
03-03-2009 10:24 AM
Visit this user's website Find all posts by this user Quote this message in a reply
WolFree Offline
Junior Member
*

Posts: 50
Joined: Jan 2009
Reputation: 0
Post: #3
RE: Upgrade result: 404
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
03-03-2009 08:22 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: #4
RE: Upgrade result: 404
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?
03-03-2009 08:33 PM
Visit this user's website Find all posts by this user Quote this message in a reply
WolFree Offline
Junior Member
*

Posts: 50
Joined: Jan 2009
Reputation: 0
Post: #5
RE: Upgrade result: 404
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.
03-03-2009 08:38 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: #6
RE: Upgrade result: 404
grep should show you where something is to do... id does change nothing... :-)

Was there no output?

/J
03-03-2009 08:55 PM
Visit this user's website Find all posts by this user Quote this message in a reply
WolFree Offline
Junior Member
*

Posts: 50
Joined: Jan 2009
Reputation: 0
Post: #7
RE: Upgrade result: 404
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.
03-03-2009 09:03 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: #8
RE: Upgrade result: 404
I think it's in the config - but where...???

/etc/ispcp?

hm...

/J
03-03-2009 09:11 PM
Visit this user's website Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #9
RE: Upgrade result: 404
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
(This post was last modified: 03-04-2009 02:29 AM by sci2tech.)
03-04-2009 02:29 AM
Visit this user's website Find all posts by this user Quote this message in a reply
WolFree Offline
Junior Member
*

Posts: 50
Joined: Jan 2009
Reputation: 0
Post: #10
RE: Upgrade result: 404
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.
(This post was last modified: 03-04-2009 02:32 AM by WolFree.)
03-04-2009 02:32 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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