Two quick problems

Discussion in 'General' started by gamepro127, Dec 4, 2010.

  1. gamepro127

    gamepro127 New Member


    I'm installing LiteSpeed Web Server on my new server for my vBulletin forums. My previous (shared) host used LiteSpeed and the speeds were just amazing.

    I have installed LiteSpeed and have everything setup, I just have two quick problems:
    1. LiteSpeed came with PHP4. I'm wanting to update to PHP5, but I'm unsure how. I want to the admin panel and tried to "compile" PHP 5, but it gives me an error everytime (Even on a clean install)

    2. The directory viewer isn't working. What I mean by this is that on my previous host, if I made a new FOLDER and went to the URL it would show all documents that are in that folder (Unless you have an index.php/index.html). On this clean install, it gives me a 404 even when I can access the files

    (ex: If I went to, it 404's me, but if I go to it lets me access it)

    So, how do I go with upgrading to PHP5 and making it so I can view directories? Thanks!
  2. webizen

    webizen Well-Known Member

    For directory listing, check the autoindex settings (admin console -> configuration -> server -> general -> Index Files -> Auto Index). Directory listing is turned off by default for better security.

    For php5 compile, search our past forum posts for solutions or post your error message here.
  3. gamepro127

    gamepro127 New Member


    I get the following error while trying to compile PHP 5.3.3

    I'm running a completely fresh install of LiteSpeed, no modifications.

    I cannot post the download link of the Suhosin patch because of the following error:

    To be able to post links or images your post count must be 5 or greater. You currently have 1 posts.

    Please remove links from your message, then you will be able to submit your post.
  4. webizen

    webizen Well-Known Member

    No need to worry about posting the Suhosin patch link at this point. It is a safety measure the forum puts on.

    The actual error is "line 128: patch: command not found". It tells your system does not have program "patch" installed. To fix it, do followings:
    For a CentOS server, do 'yum install patch(.x86_64)'.
    For a Ubuntu server, do 'apt-get install patch(.x86_64)'.

    Please check the following post for more details:
    Last edited: Dec 7, 2010
  5. gamepro127

    gamepro127 New Member


    Thank you for the help. I am now getting the following error:

    I have installed libxml2 (yum install libxml2) and rebooted my server, but no luck.

    My server is running CentOS 5.4 32-bit
  6. webizen

    webizen Well-Known Member

    xml2-config is in package libxml2-devel.

    to search a package that contains the file do 'yum provides /usr/bin/xml2-config' (use exact path) or 'yum provides */xml2-config' for a wider search.
  7. gamepro127

    gamepro127 New Member


    After yum install libxml2-devel I get the following error:

    Package libpng is already installed and up to date.
  8. webizen

    webizen Well-Known Member

    libpng-devel (contains /usr/lib/ is needed.

    yum provides /usr/lib/

Share This Page