Autoindex & httpd.conf

Discussion in 'Apache Migration/Compatibility' started by slimak, Nov 11, 2006.

  1. slimak

    slimak New Member

    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: Nov 11, 2006
  2. slimak

    slimak New Member

    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
  3. slimak

    slimak New Member

    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.

Share This Page