Current time: 07-08-2024, 09:58 PM Hello There, Guest! (LoginRegister)


Post Reply 
PHP bei Subdomains Problem und FTP User über DB?
Author Message
maXus Offline


Posts: 4
Joined: May 2009
Reputation: 0
Post: #3
RE: PHP bei Subdomains Problem und FTP User über DB?
Hallo MasterTH,

danke für die Antwort. Dann muss ich mir was mit dem FTP einfallen lassen, oder lassen sich auch 2 Datenbanken nacheinander angeben um solch eine Verbindung herstellen zu können? Ansonsten fällt mir nur noch eine parallel Installation ein.

Es hat sich raus gestellt, dass meine neuen Freehost Accounts sogar die Verbindung mit dem ispCP Adminpanel gestört haben. Es war besser gesagt nicht mehr erreichbar. Da scheint also noch eine bestimmte Angabe zu fehlen. Ich poste mal 2 Beispiele:

Hier der Eintrag des ispCP Users, über den das Script Läuft und über den dann die Accounts in Ordnern über Subdomains angelegt werden:
Code:
# httpd [DOMAIN.de] dmn entry BEGIN.
<VirtualHost IP:80>

    <IfModule suexec_module>
           SuexecUserGroup vu2003 vu2003
    </IfModule>

    ServerAdmin     webmaster@DOMAIN.de
    DocumentRoot    /var/www/virtual/DOMAIN.de/htdocs

    ServerName      DOMAIN.de
    ServerAlias     www.DOMAIN.de DOMAIN.de *.DOMAIN.de

    Alias /errors   /var/www/virtual/DOMAIN.de/errors/

    RedirectMatch permanent ^/ftp([\/]?)        http://admin.SERVERDOMAIN.net/ftp/
    RedirectMatch permanent ^/pma([\/]?)        http://admin.SERVERDOMAIN.net/pma/
    RedirectMatch permanent ^/webmail([\/]?)    http://admin.SERVERDOMAIN.net/webmail/

    ErrorDocument 401 /errors/401.html
    ErrorDocument 403 /errors/403.html
    ErrorDocument 404 /errors/404.html
    ErrorDocument 500 /errors/500.html
    ErrorDocument 503 /errors/503.html

    <IfModule mod_cband.c>
        CBandUser DOMAIN.de
    </IfModule>

    # httpd awstats support BEGIN.

   # httpd awstats support END.

    # httpd dmn entry cgi support BEGIN.
    # httpd dmn entry cgi support END.

    <Directory /var/www/virtual/DOMAIN.de/htdocs>
        # httpd dmn entry PHP support BEGIN.
        # httpd dmn entry PHP support END.
        Options -Indexes Includes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

    # httpd dmn entry PHP2 support BEGIN.
    <IfModule mod_php5.c>
        php_admin_value open_basedir "/var/www/virtual/DOMAIN.de/:/var/www/virtual/DOMAIN.de/phptmp/:/usr/share/php/"
        php_admin_value upload_tmp_dir "/var/www/virtual/DOMAIN.de/phptmp/"
        php_admin_value session.save_path "/var/www/virtual/DOMAIN.de/phptmp/"
        php_admin_value sendmail_path '/usr/sbin/sendmail -f vu2003 -t -i'
    </IfModule>
    <IfModule mod_fastcgi.c>
        ScriptAlias /php5/ /var/www/fcgi/DOMAIN.de/
        <Directory "/var/www/fcgi/DOMAIN.de">
            AllowOverride None
            Options +ExecCGI -MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>
    <IfModule mod_fcgid.c>
        <Directory /var/www/virtual/DOMAIN.de/htdocs>
            FCGIWrapper /var/www/fcgi/DOMAIN.de/php5-fcgi-starter .php
            Options +ExecCGI
        </Directory>
        <Directory "/var/www/fcgi/DOMAIN.de">
            AllowOverride None
            Options +ExecCGI MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>
    # httpd dmn entry PHP2 support END.

    Include /etc/apache2/ispcp/DOMAIN.de.conf

</VirtualHost>
# httpd [DOMAIN.de] dmn entry END.

# httpd [DOMAIN.de] dmn group entry END.

Hier der Code einen Testkunden des Freehost-Script:
Code:
#Start User maxus
<VirtualHost IP:80>
    ServerName www.maxus.DOMAIN.de
    ServerAlias  maxus.DOMAIN.de www.maxus.DOMAIN.de
    DocumentRoot /var/www/virtual/DOMAIN.de/htdocs/user_web/maxus
    DirectoryIndex index.html index.htm index.shtml index.php index.php3 index.php4
<IfModule mod_php5.c>
    <Directory /var/www/virtual/DOMAIN.de/htdocs/user_web/maxus>
        php_admin_flag engine on
        RewriteEngine On
        php_admin_value safe_mode 1
        php_admin_value upload_tmp_dir /tmp
        php_admin_value open_basedir /tmp:/var/www/virtual/DOMAIN.de/htdocs/user_web/maxus
        Options +FollowSymlinks
        Allow from all
    </Directory>
</IfModule>
<IfModule mod_fastcgi.c>
    ScriptAlias /php5/ /var/www/virtual/DOMAIN.de/htdocs/user_web/maxus
    <Directory /var/www/virtual/DOMAIN.de/htdocs/user_web/maxus>
        AllowOverride None
        Options +ExecCGI -MultiViews -Indexes
        Order allow,deny
        Allow from all
    </Directory>
</IfModule>
<IfModule mod_fcgid.c>
    <Directory /var/www/virtual/DOMAIN.de/htdocs/user_web/maxus>
        FCGIWrapper /var/www/fcgi/DOMAIN.de/php5-fcgi-starter .php
        Options +ExecCGI
    </Directory>
    <Directory /var/www/virtual/DOMAIN.de/htdocs/user_web/maxus>
        AllowOverride None
        Options +ExecCGI MultiViews -Indexes
        Order allow,deny
        Allow from all
    </Directory>
</IfModule>
</VirtualHost>
#End User maxus

Hoffe es hilft weiter.
(This post was last modified: 05-29-2009 05:09 AM by maXus.)
05-29-2009 05:05 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: PHP bei Subdomains Problem und FTP User über DB? - maXus - 05-29-2009 05:05 AM

Forum Jump:


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