Directory Listing on , how ?

vivek

Well-Known Member
#1
Hello
I just created a hosting account, and uploaded some files but no index file.

LiteSpeed is showing only a blank page instead of the contents of that folder.

How do I enable the directory listing?

Thanks
vivek
 

vivek

Well-Known Member
#2
I tried these settings

Index Files index.html, index.php, index.php5, index.htm
Auto Index Yes
Auto Index URI /home/lsws/share/autoindex/default.php


Where /home/lsws is the installed folder.

Still not working

Anybody there?
 

vivek

Well-Known Member
#3
Hmmm... seems like Open_base is restricting it.

How to add this directory to the open_base list ?
I also moved autoindex folder to /usr/lib/php

But nothing is working


2008-02-03 01:23:52.096 [NOTICE] [69.73.188.177:39307-0#APVH_pcton.com] [STDERR] PHP Warning: Unknown: open_basedir restriction in effect. File(/home/lsws/share/autoindex/default.php) is not within the allowed path(s): (/home/pctonco/:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp) in Unknown on line 0
 

vivek

Well-Known Member
#4
ok, Nobody from LiteSpeedtech.com for helping me.

Finally I found it and seems working now.

I would like to share it with other users.



If you have open_base protection then Directory listing will not work.
For enabling this, do these steps

My litespeed installation folder is /home/lsws.
Please change below if you have other location like /opt/lsws

mv /home/lsws/share/autoindex /usr/lib/php/
cd /home/lsws/share/
ln -s /usr/lib/php/autoindex autoindex

Goto LSWS Admin panel and enable Auto Index

Restart webserver.
Done

Hey, I am using "ln" command for the first time :) Reference



Thank you
Vivek
 

mistwang

LiteSpeed Staff
#5
ok, Nobody from LiteSpeedtech.com for helping me.

Finally I found it and seems working now.

I would like to share it with other users.



If you have open_base protection then Directory listing will not work.
For enabling this, do these steps

My litespeed installation folder is /home/lsws.
Please change below if you have other location like /opt/lsws

mv /home/lsws/share/autoindex /usr/lib/php/
cd /home/lsws/share/
ln -s /usr/lib/php/autoindex autoindex

Goto LSWS Admin panel and enable Auto Index

Restart webserver.
Done

Hey, I am using "ln" command for the first time :) Reference



Thank you
Vivek
That's what in our cPanel+LiteSpeed wiki. :)
 
Top