• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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