Vhost.conf oder .htaccess / PHP läuft nicht !

Alles, was den Apache betrifft, kann hier besprochen werden.

Vhost.conf oder .htaccess / PHP läuft nicht !

Postby tobsen » 19. December 2007 10:02

Hallo Leute, ich bin neu hier im Forum und hoffe Ihr könnt mir weiterhelfen.
Ich habe mir schon einige Sachen über mein vhost Problem angeschaut, Foren durchsucht und
auch das Google Orakel befragt. Leider komme ich nicht weiter.
Mein Problem:

Ich habe eine bestens funktionierende Django Installation auf meinem VServer ( Debian4,Plesk8, Apache2). Für RichText Funktionalität benutze ich TinyMCE und da gibt es ein Plugin um Bilder zu verwalten ( ibrowser), das PHP benutzt.
Nun setzt Django auf Python auf und weill mir das Plugin immer als Datei anbieten und nicht vom Webserver ausführen lassen. Ich habe einen media Ordner für mein Projekt indem cass Sachen und Bilder liegen, auch andere Projektspezifische Daten, eben auch der TinyMCE. Und für Diesen Ordner muss ich PHP ans Laufen bekommen.
In der vhost.conf habe ich alles probiert, was mir einfällt und was ich verstehe. Ich habs auch mit einer .htaccess Datei probiert.

Folgendermassen schauts aus:

HttpdOrdner: /media/tinymce/plugins/….


Vhost.conf:
Code: Select all
<Location "/">
       SetHandler python-program
       PythonHandler django.core.handlers.modpython
       SetEnv DJANGO_SETTINGS_MODULE rathaus.settings
       PythonDebug On
</Location>

<LocationMatch "\.(php)$">
    SetHandler None
</LocationMatch>

<Location /media/>
 SetHandler None
</Location>

<Location /adminmedia/>
        SetHandler None
</Location>

<LocationMatch "/media/*.js">
        SetHandler None
</LocationMatch>



Httpd.include:
Code: Select all
<VirtualHost *someip*:80>
        ServerName   *domain*:80
        ServerAdmin  "someone@bla.bla"
        DocumentRoot /var/www/vhosts/*domain*/httpdocs
        CustomLog  /var/www/vhosts/*domain*/statistics/logs/access_log plesklog
        ErrorLog  /var/www/vhosts/*domain*/statistics/logs/error_log
<IfModule mod_userdir.c>
        UserDir /var/www/vhosts/*domain*/web_users
</IfModule>
        <IfModule mod_ssl.c>
                SSLEngine off
        </IfModule>
        <Directory /var/www/vhosts/*domain*/httpdocs>
        Options FollowSymlinks Indexes
        <IfModule mod_php4.c>
                php_admin_flag engine off
        </IfModule>
        <IfModule mod_php5.c>
                php_admin_flag engine off
        </IfModule>
                Options -Includes -ExecCGI
        </Directory>
        <Directory /var/www/vhosts/*domain*/web_users>
        <IfModule mod_php4.c>
                php_admin_flag engine off
        </IfModule>
        <IfModule mod_php5.c>
                php_admin_flag engine off
        </IfModule>
        </Directory>
        Include /var/www/vhosts/*domain*/conf/vhost.conf
</VirtualHost>



Wäre super wenn Ihr mir weiterhelfen könnt, ich blicke es einfach nicht 

Gruß
Tobi
tobsen
 
Posts: 2
Joined: 19. December 2007 09:36

Gelöst ! Problem gefunden ....

Postby tobsen » 19. December 2007 14:13

:D
Hallo Leute, ich hab das Problem gefunden... Yeah !

Code: Select all
 <Directory /var/www/vhosts/*domain*/httpdocs>
         Options FollowSymlinks Indexes
        <IfModule mod_php4.c>
                php_admin_flag engine on    <----!!!!
                php_admin_flag safe_mode off
         </IfModule>
        <IfModule mod_php5.c>
      php_admin_flag engine on    <----!!!!!
                php_admin_flag safe_mode off
        </IfModule>


Php wurde gar nicht geladen *gg*

Vielen Dank ! Ich beehre Euch bald wieder ;-)

Gruß
tobsen
 
Posts: 2
Joined: 19. December 2007 09:36


Return to Apache

Who is online

Users browsing this forum: No registered users and 248 guests