• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • 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.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

How do I symlink httpsdocs to httpdocs?

D

dennis00

Guest
I have already symlinked httpsdocs to httpdocs, but it keeps giving errors.

[Wed Nov 19 16:25:26 2008] [error] [client 82.4.12.241] PHP Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0
[Wed Nov 19 16:25:26 2008] [error] [client 82.4.12.241] PHP Fatal error: Unknown: Failed opening required '/home/httpd/vhosts/villa.nl/httpsdocs/catalog/admin/index.php' (include_path='.:') in Unknown on line 0
I have tried setting openbase_dir to none and httpdocs:httpsdocs:/tmp, but it doesn't help.
 
can you do php -f /home/httpd/vhosts/villa.nl/httpsdocs/catalog/admin/index.php from the command line ?
 
can you do php -f /home/httpd/vhosts/villa.nl/httpsdocs/catalog/admin/index.php from the command line ?
Yes, perfectly possible. No errors shown.

Also, does the domain have Options FollowSymLinks set in vhost.conf ? if not, you should probably try adding it inside a directory node.

http://httpd.apache.org/docs/2.2/mod/core.html#options
I already have a .htaccess "Options +FollowSymLinks" in /httpdocs/ and I've already tried adding this in vhost.conf. Unfortunately all https://-pages still return 403-errors. I tried making all sorts of changes to vhost.conf, but it doesn't help much (no, I didn't forget websrvmng).

Something that I found strange was, that the symlink was owned by root.root and could not be rechowned. Is this normal?
I also tried adding /home/httpd/vhosts/villa.nl/httpsdocs in openbase_dir, but that didn't help much either.

[Thu Nov 20 11:08:32 2008] [error] [client 82.2.2.241] Symbolic link not allowed or link target not accessible: /home/httpd/vhosts/villa.nl/httpsdocs
 
I think you have to put the options into the vhost.conf in a directory clause

<directory /dir/goes/here>
options line
</directory>

if the symlink is 777 (rwxrwxrwx) then it shouldnt matter who the owner is.
 
isn't it easier to use the "Use a single directory for housing SSL and non-SSL content" option in Plesk?
 
it would definately be easier to do that yes, but it would be nice to have this symlink so that then you never need to worry about it :)
 
God damnit, I didn't knew that option. It's perfect for me.
 
Back
Top