• The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

php not enabled in virtual hosts

T

tolis

Guest
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 "[email protected]"
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>
 
Back
Top