Directory listing does not work

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
jorgemuralles
Joomla! Intern
Joomla! Intern
Posts: 86
Joined: Fri Dec 26, 2014 12:35 am

Directory listing does not work

Post by jorgemuralles » Sat Aug 01, 2015 6:51 pm

Hi Folks, I hope you are doing well.

I have a domain name where I installed Joomla but I am having some trouble.

I the rook directory I have created a folder to save some images that I use in a news letter.

I want to allow directory listing on it so I can use the images that are in it for my design.

Here is the link to this directory:

http://www.murallesenterprises.com/pictures/

The problem is that when I installed Joomla on this domain the directory browsing on the pictures folder stops working.

I get a blank page instead. I am not able to view the contents of this folder.

If I uninstalled Joomla, it works again.

Does anyone know how to fix this problem.

Thanks.

Jorge Murallles

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 28206
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: Directory listing does not work

Post by imanickam » Sun Aug 02, 2015 3:00 am

You can access images in the directory where Joomla is installed and its sub-directories. From what you are mentioning, the images you want to access are in a separate directory outside of the directory where Joomla is installed.

I would suggest uploading those images using the Media Manager into the images directory of Joomla! and you would be in a position to access those images.
Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
Joomla! - Global Moderators Team | Joomla! Core - Tamil (தமிழ்) Translation Team Coordinator
Former Joomla! Translations Coordination Team Lead
Eegan - Support the poor and underprivileged

sovainfo
Joomla! Exemplar
Joomla! Exemplar
Posts: 8808
Joined: Sat Oct 01, 2011 7:06 pm

Re: Directory listing does not work

Post by sovainfo » Sun Aug 02, 2015 6:57 am

Joomla instructs you to disable directory listing in .htaccess (Options -Indexes). You can change that so it is allowed for your folder. Use the <directory> tag and Options +Indexes within it.
Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!

RedEye
Joomla! Ace
Joomla! Ace
Posts: 1460
Joined: Sat Jan 21, 2006 8:42 pm

Re: Directory listing does not work

Post by RedEye » Fri Aug 07, 2015 2:26 pm

sovainfo wrote:Joomla instructs you to disable directory listing in .htaccess (Options -Indexes). You can change that so it is allowed for your folder. Use the <directory> tag and Options +Indexes within it.
You also have to change/comment out IndexIgnore, otherwise no files will be shown.
And as a note: You can't use <directory> tag within .htaccess.

sovainfo
Joomla! Exemplar
Joomla! Exemplar
Posts: 8808
Joined: Sat Oct 01, 2011 7:06 pm

Re: Directory listing does not work

Post by sovainfo » Fri Aug 07, 2015 2:58 pm

Obviously you need to use the <directory> tag where it is allowed. Joomla disables directory listing in .htaccess, which needs to be changed to apache configuration when using <directory> tag to allow it but continue to disallow for joomla folders.

As an alternative you can add an .htaccess with "options +Indexes" in those folders you allow to be listed.

Another alternative would be to move non-joomla stuff outside the joomla folder.
Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!

jorgemuralles
Joomla! Intern
Joomla! Intern
Posts: 86
Joined: Fri Dec 26, 2014 12:35 am

Re: Directory listing does not work

Post by jorgemuralles » Fri Aug 07, 2015 4:24 pm

Thank you everyone for the help.

I got it to work.

I am having trouble getting the fancyIndex to work. It does not show the icons.

http://www.uniformescaf.com/pictures/newsletter/

Can anyone tell me how to make that work.

Thanks.

Jorge Muralles

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 20652
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ Germany/ S'pore/Bogor/ North America
Contact:

Re: Directory listing does not work

Post by leolam » Sat Aug 08, 2015 8:03 am

Why using something that is so dangerous with direct access to your directory system? Why not using a directory component for that? This is actually a very bad solution you are trying to create and very vulnerable

Leo 8)
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -

RedEye
Joomla! Ace
Joomla! Ace
Posts: 1460
Joined: Sat Jan 21, 2006 8:42 pm

Re: Directory listing does not work

Post by RedEye » Fri Aug 14, 2015 2:09 am

sovainfo wrote:Obviously you need to use the <directory> tag where it is allowed.
Obviously to you and me, but for most of the users it's not.
sovainfo wrote:Joomla disables directory listing in .htaccess, which needs to be changed to apache configuration when using <directory> tag to allow it but continue to disallow for joomla folders.
The good way, if you're able to touch this file what most of the users here are not.
sovainfo wrote:As an alternative you can add an .htaccess with "options +Indexes" in those folders you allow to be listed.
Still you have to change the .htaccess Joomla! provides and comment out IndexIgnore.
jorgemuralles wrote:I am having trouble getting the fancyIndex to work. It does not show the icons. Can anyone tell me how to make that work.
Add the following line to your .htaccess to enable fancy indexes:
IndexOptions +FancyIndexing
If you want all folders first than files use:
IndexOptions +FancyIndexing +FoldersFirst
leolam wrote:Why using something that is so dangerous with direct access to your directory system?
Indexing a folder with only directories and images in it is far far away from being dangerous...

jorgemuralles
Joomla! Intern
Joomla! Intern
Posts: 86
Joined: Fri Dec 26, 2014 12:35 am

Re: Directory listing does not work

Post by jorgemuralles » Fri Aug 14, 2015 1:18 pm

Thanks for all the help.

I have tried everything above, still not working. It must have to do with the Joomla installation.

Thanks anyway.

Jorge Muralles

RedEye
Joomla! Ace
Joomla! Ace
Posts: 1460
Joined: Sat Jan 21, 2006 8:42 pm

Re: Directory listing does not work

Post by RedEye » Fri Aug 14, 2015 1:59 pm

jorgemuralles wrote:I have tried everything above, still not working. It must have to do with the Joomla installation.
Nope it doesn't! Contact your hoster and ask him to get FancyIndexing working.


Locked

Return to “Installation Joomla! 3.x”