• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Issue Problems with Open-Basedir and .htaccess (Plesk Obsidian 18.0.68 Web Pro Edition on Debian 12.9)

itksystemhaus

New Pleskian
Server operating system version
Debian 12.9
Plesk version and microupdate number
Plesk Obsidian 18.0.68
Hello,


I try to move our website to a new plesk server, but I have some problems I can't solve.

Our website has three languages and we have three domains: website.de, website.com, website.fr

The domains have their directories /var/www/vhosts/website.de/httpdocs, /var/www/vhosts/website.com/httpdocs, /var/www/vhosts/website.fr/httpdocs

I have a management-domain website.net which has its directory /var/www/vhosts/website.net/httpdocs

Since there are hundrets of thousands jpg and pdf files and the php-files are also all the same, only the config files are different, I have all those original files in /var/www/vhosts/website.net/httpdocs

In the language domains I have symbolic links to all files and directories. In every php-config I have the open_basedir setting as follows:
{WEBSPACEROOT}{/}{:}{TMP}{/}:/var/www/vhosts/domain.net/httpdocs
Files have mode 644, and directories 755

When I try to open a picture https://domain.com/img/picture.jpg, this works, when Proxy-Mode under nginx-settings is turned off.
When proxy-mode is turned on, I get a 403
AH00037: Symbolic link not allowed or link target not accessible: /var/www/vhosts/domain.net/img/image.jpg

My old server has Proxy mode enabled and it works without problems. I have the same setup there.



My other problem is the .htaccess with hundrets of rewrites, which is ignored. I don't know why. I cannot find any setting in plesk, where I can enable the .htaccess.

Any thoughts? Thank you.

Best regards
Ralph
 
The .htaccess is a apache thing meaning you need to have proxy mode enabled and configured PHP to be either FPM application served by Apache or FastCGI application served by Apache for .htaccess to be honored.

Also make sure Restrict the ability to follow symbolic links is turned off in the Apache & nginx Settings.
 
I have chosen FPM application served by Apache and Restrict the ability to follow symbolic links is disabled. This is also the setting on the old server. But I get this error message anyway. I even made a subdomain test.domoin.net, which is in the same subscription in /var/www/vhosts/domain.net/test.domain.net. So it has even the same user, but it doesn't work.
 
Back
Top