1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

php not enabled in virtual hosts

Discussion in 'Plesk for Linux - 8.x and Older' started by tolis, Feb 2, 2006.

  1. tolis

    tolis Guest

    0
     
    Sorry but i moved this post from the misplaced forum.My problem is that i cannot get php enabled for my virtual hosts.
    If i set defaultype text/html .php then php includes are not processed, if i remove it then the browser prompts for open or save the file.
    Please help!
    Below is the http.include of the virtual host
    # ATTENTION!
    # DO NOT MODIFY THIS FILE OR ANY PART OF IT. THIS CAN RESULT IN IMPROPER PLESK
    # FUNCTIONING OR FAILURE, CAUSE DAMAGE AND LOSS OF DATA. IF YOU REQUIRE CUSTOM
    # MODIFICATIONS TO BE APPLIED TO THE CONFIGURATION, PLEASE, PERFORM THEM IN THE
    # FOLLOWING FILE(S):
    # /var/www/vhosts/platonproject.local/conf/vhost.conf
    # /var/www/vhosts/platonproject.local/subdomains/<subdomain-name>/conf/vhost.conf

    <VirtualHost 192.168.210.208:80>
    ServerName platonproject.local:80

    UseCanonicalName Off
    SuexecUserGroup platonproject psacln
    ServerAdmin "tolis@dotsoft.gr"
    DocumentRoot /var/www/vhosts/platonproject.local/httpdocs
    CustomLog /var/www/vhosts/platonproject.local/statistics/logs/access_log plesklog
    ErrorLog /var/www/vhosts/platonproject.local/statistics/logs/error_log
    <IfModule mod_userdir.c>
    UserDir /var/www/vhosts/platonproject.local/web_users
    </IfModule>
    ScriptAlias /cgi-bin/ /var/www/vhosts/platonproject.local/cgi-bin/
    Alias /plesk-stat /var/www/vhosts/platonproject.local/statistics/
    Alias /webstat /var/www/vhosts/platonproject.local/statistics/webstat
    Alias /webstat-ssl /var/www/vhosts/platonproject.local/statistics/webstat-ssl
    Alias /ftpstat /var/www/vhosts/platonproject.local/statistics/ftpstat
    Alias /anon_ftpstat /var/www/vhosts/platonproject.local/statistics/anon_ftpstat
    <IfModule mod_ssl.c>
    SSLEngine off
    </IfModule>
    <Directory /var/www/vhosts/platonproject.local/httpdocs>
    <IfModule mod_perl.c>
    <Files ~ (\.pl$)>
    SetHandler perl-script
    PerlHandler ModPerl::Registry
    Options ExecCGI
    allow from all
    PerlSendHeader On
    </Files>
    </IfModule>
    <IfModule mod_perl.c>
    <Files ~ (\.asp$)>
    SetHandler perl-script
    PerlHandler Apache::ASP
    PerlSetVar Global /tmp
    </Files>
    </IfModule>
    <IfModule sapi_apache2.c>
    php_admin_flag engine on
    php_admin_value open_basedir "/var/www/vhosts/platonproject.local/httpdocs:/tmp"
    </IfModule>
    <IfModule mod_php5.c>
    php_admin_flag engine on
    php_admin_value open_basedir "/var/www/vhosts/platonproject.local/httpdocs:/tmp"
    </IfModule>
    <IfModule mod_python.c>
    <Files ~ (\.py$)>
    SetHandler python-program
    PythonHandler mod_python.cgihandler
    </Files>
    </IfModule>
    Options +Includes +ExecCGI
    </Directory>
    <Directory /var/www/vhosts/platonproject.local/web_users>
    <IfModule sapi_apache2.c>
    AddType text/plain .php .php4 .php3 .phtml
    php_admin_flag engine off
    </IfModule>
    <IfModule mod_php5.c>
    AddType text/plain .php .php5 .php4 .php3 .phtml
    php_admin_flag engine off
    </IfModule>
    </Directory>
    Include /var/www/vhosts/platonproject.local/conf/vhost.conf
    </VirtualHost>
     
Loading...