Forums

CollectiveAccess Support Forum » Installation

Configuration file is missing for hostname ...

(9 posts)

  1. knut
    Member

    I tried to install CollectionAccess 0.6 on the same server as we have our website (/public_html/folder/collectiveaccess)and get the error message: Configuration file is missing for hostname "www.mywebsite.de"

    I made following settings:

    setup.php

    define("__CA_WEB_ROOT_DIR__", "/public_html/folder");
    define("__CA_URL_ROOT__", "");
    define("__CA_SITE_HOSTNAME__", "www.mywebsite.de");
    define("__CA_APP_NAME__", "my_first_collectiveaccess_system");
    define("__CA_APP_DISPLAY_NAME__", "My First CollectiveAccess System");

    define("__CA_DB_HOST__", 'localhost');
    define("__CA_DB_USER__", 'dbuser');
    define("__CA_DB_PASSWORD__", 'password');
    define("__CA_DB_DATABASE__", 'db000000');
    define("__CA_DB_TYPE__", 'mysql');

    global.php

    site_protocol = http
    site_hostname =__CA_SITE_HOSTNAME__
    site_host = <site_protocol>://<site_hostname>

    What is wrong in my settings?

    Best regards,
    Knut

    Posted 1 month ago #
  2. seth
    Developer

    Most likely the value for __CA_WEB_ROOT_DIR__ is not the actual value of your web root. Check what the root server path is in phpinfo(). Or cd into the directory and run pwd (assuming you're on a Unix-ish machine).

    Posted 1 month ago #
  3. knut
    Member

    Found this.

    Server Root /usr/lib/sphereconf/apache

    PATH /bin:/usr/bin:/sbin:/usr/sbin

    Posted 1 month ago #
  4. seth
    Developer

    Ok, so change __CA_WEB_ROOT_DIR__ to the proper root and change __CA_URL_ROOT__ to be /collectiveaccess and (hopefully) it'll work.

    Posted 1 month ago #
  5. knut
    Member

    Followed your advice, but no improvement.
    define("__CA_WEB_ROOT_DIR__", "/usr/lib/sphereconf/apache");
    define("__CA_URL_ROOT__", "collectiveaccess");

    Posted 1 month ago #
  6. knut
    Member

    Followed your advice, but no improvement.
    define("__CA_WEB_ROOT_DIR__", "/usr/lib/sphereconf/apache");
    define("__CA_URL_ROOT__", "collectiveaccess");

    Posted 1 month ago #
  7. stefan
    Developer

    The URL root should have a leading slash (as Seth noted above):

    define("__CA_URL_ROOT__", "/collectiveaccess");

    Posted 1 month ago #
  8. knut
    Member

    Sorry, this was a typing mistake. I have it like this but still the same message: Configuration file is missing for hostname ...

    define("__CA_WEB_ROOT_DIR__", "/usr/lib/sphereconf/apache");
    define("__CA_URL_ROOT__", "/collectiveaccess");

    Posted 1 month ago #
  9. stefan
    Developer

    Well then the path you entered is simply wrong. Enter the correct web root and you should be fine.

    There's not much we can do about that since this setting totally depends on your server setup.

    The only advice I can give is what Seth already wrote above: Issue a "pwd" on a shell in the directory in question and the system will tell you the absolute path.

    However, taking the information of your first post into consideration I personally would try the following (assuming you mean "~/public_html/folder/", not "/public_html/folder/", and assuming http://www.website.de points to "~/public_html/folder"):

    define("__CA_WEB_ROOT_DIR__", "/home/<yourusername>/public_html/folder");
    define("__CA_URL_ROOT__", "/collectiveaccess");

    But odds are that your provider moved the home directories to something else than /home, in which case you're back where you started and you need to issue that "pwd".

    Stefan

    Posted 1 month ago #

RSS feed for this topic

Reply

You must log in to post.