Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2017-11-11 09:28:20

Kossatsch
Member
From: St. Wolfgang
Registered: 2004-04-01
Posts: 198
Website

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?


txp at irox.de since spring 2004 (g1.17) & at roxomatic since 2006.

Offline

#2 2017-11-12 19:39:02

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,137
GitHub

Re: SSL and openbase_dir with multiple isntall

Is your server running Plesk? If so, try this: www.linuxweblog.com/plesk-vhost.conf

Offline

#3 2017-11-14 06:21:11

Kossatsch
Member
From: St. Wolfgang
Registered: 2004-04-01
Posts: 198
Website

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


txp at irox.de since spring 2004 (g1.17) & at roxomatic since 2006.

Offline

#4 2017-11-14 10:27:28

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,137
GitHub

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

Board footer

Powered by FluxBB