Virtual host index file value not saving

Discussion in 'Install/Configuration' started by zep, May 9, 2008.

  1. zep

    zep New Member

    Ok, so I have this bad boy humming away (very fast) with the standard edition but I have an issue...

    I have a php script as my index (index.php), but it does not load, instead litespeed is looking for index.html

    as I understand this setting is available in two spots:

    1) Virtual Hosts --> [my host] --> general --> Index Files

    and

    2) Configuration --> Server --> Index Files

    when I set the first value in the virtual host and save it it displays fine, but when I switch tabs the value goes back to index.html.

    so I dicided to set my master server configuration to index.php and set 'Use Server Index Files' in the virtual server area.

    Problem is, when I switch tabs or reload the page the 'Use Server Index Files' value defaults back to NO

    How can I get this to work? Is some configuration file in the server software not writable, or am I just going crazy?:eek:

    Please help with my issue, Thanks!
  2. mistwang

    mistwang LiteSpeed Staff

    Looks like you do have a permission problem. Check the configuration file see if it changed?
    If you install LSWS to your home directory, you may have this problem, install it to /opt/lsws or /usr/local/lsws.
  3. zep

    zep New Member

    Where is the configuration file, and what is it named, also should it be CHMOD to 777?

    I did install it into the /opt/lsws directory ;)

    Thanks for your help!
  4. anewday

    anewday Moderator

    in /opt/lsws/httpd_config.xml
  5. zep

    zep New Member

    the only files there are license and version files, could the config files be in any other directory?
  6. anewday

    anewday Moderator

    Try the conf directory
  7. zep

    zep New Member

    I set this to 777, all permissions to everybody, but it still resets when I navigate away then come back, any more suggestions? Id hate to have to take this down because of such a silly, but important thing. Thanks for your input.
  8. mistwang

    mistwang LiteSpeed Staff

    Have you tried to harden the security under the lsws directory? The default installation should work just fine. Maybe you should remove /opt/lsws directory and reinstall it from scratch.
    You can manually change the lsws/conf/httpd_config.xml, the worst case.
  9. zep

    zep New Member

    I just went live on this site, I will have to edit the xml file manually, not the end of the world I guess...
  10. zep

    zep New Member

    after CHMOD ing all the files in the conf directory (within the virtual host) everything works fine now, and I can change the persmissions back after editing:D

Share This Page