Autoindex & httpd.conf

slimak

Well-Known Member
#1
I import configuration from httpd.conf (Apache/cPanel), but the autoindex doesn't work. How could I enable autoindex for all APVH?

The options in Server->General are set to:
Auto Index Yes
Auto Index URI /_autoindex/default.php
 
Last edited:

slimak

Well-Known Member
#2
It works

Now it works in new version of LiteSpeed (2.2.5), but I have a problem with open_basedir:


Warning: Unknown(): open_basedir restriction in effect. File(/usr/local/lsws/share/autoindex/default.php) is not within the allowed path(s): (/home/lsws:/usr/lib/php:/usr/local/lib/php:/tmp) in Unknown on line 0

Warning: Unknown(/usr/local/lsws/share/autoindex/default.php): failed to open stream: Operation not permitted in Unknown on line 0

Warning: Unknown(): open_basedir restriction in effect. File(/usr/local/lsws/share/autoindex/default.php) is not within the allowed path(s): (/home/lsws:/usr/lib/php:/usr/local/lib/php:/tmp) in Unknown on line 0

Warning: Unknown(/usr/local/lsws/share/autoindex/default.php): failed to open stream: Operation not permitted in Unknown on line 0

Warning: (null)() [function.include]: Failed opening '/usr/local/lsws/share/autoindex/default.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in Unknown on line 0
 

slimak

Well-Known Member
#3
Solution

I moved the autoindex directory from /usr/local/lsws/share/autoindex to /usr/lib/php/autoindex, created symlink and now it works. You may close/delete that ticket.
 
Top