Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
SSL and openbase_dir with multiple isntall
This is the installation:
http://www.domain.de
is in the folder
/var/www/vhosts/domain.eu/httpdocs/sites/site5/
and is run from an multiple installation under
/var/www/vhosts/domain.eu/httpdocs/textpattern
Now after installing a SSL certificate, I get a bunch of error messages and no display (only an extract):
Warning: realpath(): open_basedir restriction in effect. File(/var/www/vhosts/domain.eu/httpdocs/textpattern) is not within the allowed path(s): (/var/www/vhosts/domain.eu/httpdocs/sites/site5/public/:/tmp/) in /var/www/vhosts/domain.eu/httpdocs/sites/site5/public/index.php on line 65 Warning: include(): open_basedir restriction in effect. File(/lib/constants.php) is not within the allowed path(s): (/var/www/vhosts/domain.eu/httpdocs/sites/site5/public/:/tmp/) in /var/www/vhosts/domain.eu/httpdocs/sites/site5/public/index.php on line 68
I still did not enforce the SSL via .htaccess, so http://www.domain.de remains accessible. No warning.
I assume I need to set open_basedir somewhere, but where? Some say in htaccess, others not (indeed it does not work). And is this secure? Or maybe I need to change a setting for the certificate (I have a virtual server with rather free access).
Any ideas?
Offline
Re: SSL and openbase_dir with multiple isntall
Is your server running Plesk? If so, try this: www.linuxweblog.com/plesk-vhost.conf
Offline
Re: SSL and openbase_dir with multiple isntall
Thanks for your message. Indeed, it was a server problem.
When switching to SSL, you need to create a vhost_ssl.file with the same content the vhost.conf already has (the file is located under /var/www/vhosts/<domainname.com>/conf when using Ubuntu).
Then you need to open a SSH and type
/usr/local/psa/admin/bin/httpdmng —reconfigure-all
That’s all. Restarting the server does not help (that is what I assumed first).
Offline
Re: SSL and openbase_dir with multiple isntall
Glad I could give you a pointer! I have memories of many frustrating hours with Plesk on various hosts and I hope I don’t get flashbacks…
Offline