• 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 extensions vhost.conf

N

nc001

Guest
Hi i want to add an php execution extenstion to an vhost.
I´ve create a file called:
/var/www/vhost/xx.xxxxx.xx/conf/vhost.conf
with the following contents:
Code:
<VirtualHost 11.11.11.11:80>
	<Directory /var/www/vhosts/xxx.xxx.xxx/httpdocs>
	<IfModule mod_php4.c>
		AddType text/plain .php .php4 .php3 .phtml .inc
  		php_admin_flag engine off
	</IfModule>
	</Directory>
	<Directory /var/www/vhosts/xxx.xxxx.xxx/web_users>
	<IfModule mod_php4.c>
		AddType text/plain .php .php4 .php3 .phtml .inc
		php_admin_flag engine off
	</IfModule>
	</Directory>
</VirtualHost>
If added .inc as you can see, but it wont work. :(
It would be cool if anybody could help me!
Thx
 
what are you trying to do? should the .inc be seen as a php-file or not?

If not, why not just disable php for a domain in Plesk? Then .php and .inc are just text files

if yes, why do you turn of the php-engine in your statement?

According to my httpd.conf the correct type for php files seems to be AddType application/x-httpd-php and not text/plain
 
This is how the httpd.include in the directory (subdomain) looks like.
I copied the content into vhost.conf and just added .inc to the line.
cat http.include > vhost.conf
But PHP works fine. Just the inc´s are not parsed "*compiled*" by php.
 
run /usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=<domain_name>

and then restart apache
 
Back
Top