Current time: 04-27-2024, 08:05 AM Hello There, Guest! (LoginRegister)


Post Reply 
Serverwechsel
Author Message
LabSen Offline
Junior Member
*

Posts: 47
Joined: May 2007
Reputation: 0
Post: #11
RE: Serverwechsel
Hallo zusammen

Ich bin nun so vorgegangen, dass ich das ispcp auf dem neuen Server neu installiert habe, danach habe ich alle nötigen Dateien rübergenommen und noch ein paar nötige anpassungen gemacht.

Leider lauft es noch nicht ganz. Wenn ich was per Web aufrufen will, kommt nur

Not Found

The requested URL /php5/php5-fcgi-starter/index.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.3 (Debian) mod_fastcgi/2.4.2 Server at XX.XXX.XXX.X Port 80

Hat da jemand noch eine Idee, was es sein könnte? Logs sagen auch nichts aussagekräftiges aus, was mir helfen könnte

error.log

[Wed Sep 19 20:20:41 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Wed Sep 19 20:20:41 2007] [notice] FastCGI: wrapper mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Wed Sep 19 20:20:41 2007] [notice] FastCGI: process manager initialized (pid 2882)
[Wed Sep 19 20:20:41 2007] [warn] FastCGI: server "/var/www/fcgi/master/php5-fcgi-starter" (uid 2000, gid 2000) started (pid 2883)
[Wed Sep 19 20:20:41 2007] [notice] Apache/2.2.3 (Debian) mod_fastcgi/2.4.2 configured -- resuming normal operations

Kann damit als Amateur nicht viel anfangen, ausser, dass was mit FastCGI nicht stimmt und Suexec Probleme macht
09-20-2007 05:01 AM
Visit this user's website Find all posts by this user Quote this message in a reply
LabSen Offline
Junior Member
*

Posts: 47
Joined: May 2007
Reputation: 0
Post: #12
RE: Serverwechsel
Mhhh... irgendwie scheint es die 2. Seite nicht anzuzeigen wenn es nur 1 Post gibt. Bei mir auf jeden Fall^^
09-20-2007 05:03 AM
Visit this user's website Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #13
RE: Serverwechsel
Quote:The requested URL /php5/php5-fcgi-starter/index.php was not found on this server.

Was ist denn das ?
Schau mal nach ob du unter "/var/www/fcgi/domain.tld/" die zwei PHP Ordner und Dateien hast:
Code:
insgesamt 16
drwxr-x--- 2 vu2019 vu2019 4096 2007-08-08 23:25 php4
-rwxr-x--- 1 vu2019 vu2019  199 2007-08-08 23:25 php4-fcgi-starter
drwxr-x--- 2 vu2019 vu2019 4096 2007-08-08 23:25 php5
-rwxr-x--- 1 vu2019 vu2019  199 2007-08-08 23:25 php5-fcgi-starter

Greez BeNe
(This post was last modified: 09-20-2007 05:05 AM by BeNe.)
09-20-2007 05:04 AM
Visit this user's website Find all posts by this user Quote this message in a reply
LabSen Offline
Junior Member
*

Posts: 47
Joined: May 2007
Reputation: 0
Post: #14
RE: Serverwechsel
Ja ist vorhanden. Habe sie vom anderen Server kopiert.
09-20-2007 05:18 AM
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: #15
RE: Serverwechsel
Hast du auch fastcgi installiert?
also im Prinzip Schritt 3 (glaube ich) aus der Doku...

/J
09-20-2007 05:32 AM
Visit this user's website Find all posts by this user Quote this message in a reply
LabSen Offline
Junior Member
*

Posts: 47
Joined: May 2007
Reputation: 0
Post: #16
RE: Serverwechsel
Habe es nach dieser Anleitung gemacht:

http://www.myvhcs.de/modules/smartfaq/faq.php?faqid=8

Also ist fastcgi auch installiert
09-20-2007 05:47 AM
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: #17
RE: Serverwechsel
Hab das Gefühl, dieser Abschnitt aus der apache-conf greift nicht:

<IfModule mod_fastcgi.c>
ScriptAlias /php4/ /var/www/fcgi/master/
ScriptAlias /php5/ /var/www/fcgi/master/
<Directory "/var/www/fcgi/master">
AllowOverride None
Options +ExecCGI MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>

Könnte es sein, dass das fastcgi-Modul nicht geladen wird (kein Symlink von mods-avalilable to mods-enabled).
Ich mutmasse mal...

/J
09-20-2007 05:56 AM
Visit this user's website Find all posts by this user Quote this message in a reply
LabSen Offline
Junior Member
*

Posts: 47
Joined: May 2007
Reputation: 0
Post: #18
RE: Serverwechsel
So Symlinks haben wirklich gefehlt. Problem aber immer noch nicht behoben. Er hat etwas an der /etc/apache2/mods_enabled/fastcgi_ispcp.conf zu mekern.

Die sieht so aus:

PHP Code:
# ISPCP Ï‰ (OMEGA) a Virtual Hosting Control System
# Copyright (c) 2006-2007 by ispCP | http://isp-control.net
#
#
# License:
#    This program is free software; you can redistribute it and/or
#    modify it under the terms of the GPL General Public License
#    as published by the Free Software Foundation; either version 2.0
#    of the License, or (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GPL General Public License for more details.
#
#    You may have received a copy of the GPL General Public License
#    along with this program.
#
#    An on-line copy of the GPL General Public License can be found
#    http://www.fsf.org/licensing/licenses/gpl.txt
#
########################################################################
#
# @TODO :
# - Finish config Fastcgi

<IfModule mod_fastcgi.c>
    
FastCgiWrapper On
    FastCgiIpcDir 
/var/lib/apache2/fastcgi2
    FastCgiConfig 
-minProcesses 1 -maxProcesses 10 -singleThreshold 100
                  
#-killInterval 300 \
                  #-autoUpdate \
                  #-idle-timeout 240 \
                  #-pass-header HTTP_AUTHORIZATION

    
FastCgiServer /var/www/fcgi/master/php5-fcgi-starter -user vu2000 -group vu2000

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

Wenn ich denn Apache[/php] (Re)Starten will, kommt

s15:/etc/apache2/mods-enabled# /etc/init.d/apache2 restart
Forcing reload of web server (apache2)... waiting Syntax error on line 29 of /etc/apache2/mods-enabled/fastcgi_ispcp.conf:
FastCgiIpcDir /var/lib/apache2/fastcgi2: already defined as "/var/lib/apache2/fastcgi"
failed!

Also muss was mit der verweiss nicht stimmen. Wie sieht bei euch diese Datei aus?
09-20-2007 06:20 AM
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: #19
RE: Serverwechsel
line 29 of /etc/apache2/mods-enabled/fastcgi_ispcp.conf

meine sieht so aus - ab Zeile 27:
Code:
<IfModule mod_fastcgi.c>
        FastCgiWrapper On
        FastCgiIpcDir /var/lib/apache2/fastcgi2
        FastCgiConfig -minProcesses 1 -maxProcesses 10 -singleThreshold 100
                      #-killInterval 300 \
                      #-autoUpdate \
                      #-idle-timeout 240 \
                      #-pass-header HTTP_AUTHORIZATION

        FastCgiServer /var/www/fcgi/master/php5-fcgi-starter -user vu2000 -group vu2000

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

Welche Dateien hast du noch im mods-ebnabled? - es sind nicht alle nötig, die ich drin habe
Code:
rwxrwxrwx 1 root root   30 2007-04-09 15:47 actions.load -> ../mods-available/actions.load
lrwxrwxrwx 1 root root   28 2007-04-09 00:17 alias.load -> ../mods-available/alias.load
lrwxrwxrwx 1 root root   33 2007-04-09 00:17 auth_basic.load -> ../mods-available/auth_basic.load
lrwxrwxrwx 1 root root   33 2007-04-09 00:17 authn_file.load -> ../mods-available/authn_file.load
lrwxrwxrwx 1 root root   36 2007-04-09 00:17 authz_default.load -> ../mods-available/authz_default.load
lrwxrwxrwx 1 root root   38 2007-04-09 00:17 authz_groupfile.load -> ../mods-available/authz_groupfile.load
lrwxrwxrwx 1 root root   33 2007-04-09 00:17 authz_host.load -> ../mods-available/authz_host.load
lrwxrwxrwx 1 root root   33 2007-04-09 00:17 authz_user.load -> ../mods-available/authz_user.load
lrwxrwxrwx 1 root root   32 2007-04-09 00:17 autoindex.load -> ../mods-available/autoindex.load
lrwxrwxrwx 1 root root   27 2007-04-09 00:17 cgid.conf -> ../mods-available/cgid.conf
lrwxrwxrwx 1 root root   27 2007-04-09 00:17 cgid.load -> ../mods-available/cgid.load
lrwxrwxrwx 1 root root   26 2007-04-09 00:17 dir.conf -> ../mods-available/dir.conf
lrwxrwxrwx 1 root root   26 2007-04-09 00:17 dir.load -> ../mods-available/dir.load
lrwxrwxrwx 1 root root   26 2007-04-09 00:17 env.load -> ../mods-available/env.load
lrwxrwxrwx 1 root root   36 2007-09-14 16:05 fastcgi_ispcp.conf -> ../mods-available/fastcgi_ispcp.conf
lrwxrwxrwx 1 root root   36 2007-09-14 16:05 fastcgi_ispcp.load -> ../mods-available/fastcgi_ispcp.load
lrwxrwxrwx 1 root root   27 2007-04-09 00:17 mime.load -> ../mods-available/mime.load
lrwxrwxrwx 1 root root   34 2007-04-09 00:17 negotiation.load -> ../mods-available/negotiation.load
lrwxrwxrwx 1 root root   30 2007-04-09 15:47 rewrite.load -> ../mods-available/rewrite.load
lrwxrwxrwx 1 root root   31 2007-04-09 00:17 setenvif.load -> ../mods-available/setenvif.load
lrwxrwxrwx 1 root root   29 2007-04-09 00:17 status.load -> ../mods-available/status.load
lrwxrwxrwx 1 root root   29 2007-04-09 15:47 suexec.load -> ../mods-available/suexec.load
09-20-2007 06:38 AM
Visit this user's website Find all posts by this user Quote this message in a reply
LabSen Offline
Junior Member
*

Posts: 47
Joined: May 2007
Reputation: 0
Post: #20
RE: Serverwechsel
Habe es jetzt abgeändert auf deine Version geändert, nützt aber nicht. Was mirr noch aufgefallen ist, ist das ich auch noch eine fastcgi.load und fastcgi.conf habe in der steht:

<IfModule mod_fastcgi.c>
AddHandler fastcgi-script .fcgi
#FastCgiWrapper /usr/lib/apache2/suexec2
FastCgiIpcDir /var/lib/apache2/fastcgi
</IfModule>

Hat das echt was damit zu tun, dass es nicht funktioniert?
09-21-2007 02:57 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)