Symlink To External Directory For Images?

Need help installing Joomla! 3.x? For all Joomla! 3.x installation issues please use this forum.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
610Drew
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Sat Apr 10, 2021 10:44 pm

Symlink To External Directory For Images?

Post by 610Drew » Wed Apr 14, 2021 9:01 pm

I've installed Joomla 3 on a FreeBSD server. On this server I also have a Nextcloud installation where I have many photos. To avoid duplicating files, I'd like to create a symlink in joomla/images that points to the photo directory in Nextcloud. Both Nextcloud directories and Joomla directories are owned by www:www and my Apache installation has this config for my Joomla site:

Code: Select all

<Directory "/usr/local/www/joomla">
    Options None SymLinksIfOwnerMatch
    AllowOverride All
    Require all granted
</Directory>
I can see my symlink in in the various "image picking" dialogues on the back end but when I click the linked folder, I cannot see any of the images.

Similarly, I created a joomla/images/subfolder and uploaded images to it via FTP. Both the subfolder and all images in it are owned by www:www. Again, I can see the subfolder but I can't see any images in the various "image picking" dialogues in the subfolder either.

What am I missing?

Thanks for any pointers.

Cheers,

Drew

Richard67
Joomla! Explorer
Joomla! Explorer
Posts: 270
Joined: Fri Sep 16, 2011 6:13 pm
Location: Germany
Contact:

Re: Symlink To External Directory For Images?

Post by Richard67 » Thu Apr 15, 2021 9:52 am

Is there an "open_basedir" restriction set in PHP settings?

610Drew
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Sat Apr 10, 2021 10:44 pm

Re: Symlink To External Directory For Images?

Post by 610Drew » Wed Apr 21, 2021 8:32 pm

Richard67 wrote:
Thu Apr 15, 2021 9:52 am
Is there an "open_basedir" restriction set in PHP settings?
Thank you for your reply. I do not believe I have this set. Here is the snippet from my php.ini file:

Code: Select all

; open_basedir, if set, limits all file operations to the defined directory
; and below.  This directive makes most sense if used in a per-directory
; or per-virtualhost web server configuration file.
; http://php.net/open-basedir
;open_basedir =
Is there anything else to check?

Cheers,

Drew


Locked

Return to “Installation Joomla! 3.x”