• 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.

Changing DocumentRoot

NicholasEvans

New Pleskian
Hi,

I've got several sites that all run from the same document root but require separate mail accounts.

I've read that the best way to do this is to set up another site (or webspace) for the domain and then change the DocumentRoot in the vhost.conf file.

I've been trying to do this but don't seem to be able to get PHP to run on the new host once I've created vhost.conf.

I tried:
Code:
<Directory /var/www/vhosts/example.com/httpdocs>
Options -Includes -ExecCGI
</Directory>
DocumentRoot /var/www/vhosts/example.com/httpdocs

But the site just downloads the php file.

Any suggestions would be appreciated.

Kind regards,

Nick
 
Have also tried the following but I just get the default apache test page

Code:
DocumentRoot /var/www/vhosts/example.com/httpdocs

SetEnv PP_CUSTOM_PHP_INI /var/www/vhosts/example.com/etc/php.ini

<Directory /var/www/vhosts/example.com/httpdocs>

	<IfModule mod_perl.c>
	    <Files ~ (\.pl$)>
		SetHandler perl-script
		PerlHandler ModPerl::Registry
		Options ExecCGI
		allow from all
		PerlSendHeader On
	    </Files>
	</IfModule>
	<IfModule mod_python.c>
	    <Files ~ (\.py$)>
		SetHandler python-program
		PythonHandler mod_python.cgihandler
	    </Files>
	</IfModule>
	<IfModule mod_fcgid.c>
	    <Files ~ (\.fcgi)>
		SetHandler fcgid-script
		Options +FollowSymLinks +ExecCGI
	    </Files>
	</IfModule>
	<IfModule mod_fcgid.c>
	    <Files ~ (\.php)>
		SetHandler fcgid-script
		FCGIWrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper .php
		Options +ExecCGI
		allow from all
	    </Files>
	</IfModule>

	Options -Includes +ExecCGI

</Directory>
 
Back
Top