[campsite-dev] install notes from Os
  • This is a multipart message in MIME format.
    --=_alternative 0034FA96C1257051_=
    Content-Type: text/plain; charset="us-ascii"

    Hi all,

    My good friend Os Tyler has been trying his hand at a Campsite install,
    and here is his latest mail on the process. One issue was that with Red
    Hat 9 he couldn't get a package for libxml2 2.6 or greater to work, but
    now he has that fixed. Anyway, here's the mail:

    ========================================

    A little more change on the campsite front.

    I worked it out so the login page appears at http://campsite..com/login/

    Next, I installed the database by hand and I called it
    "campsite_".

    So that the application would know where to find the database, I modified
    /usr/local/campsite/etc/campsite/database_conf.php, changing:
    $Campsite['DATABASE_NAME'] = 'campsite';
    to:
    $Campsite['DATABASE_NAME'] = 'campsite_';

    This one change to the database_conf.php file caused this error:
    main(/usr/local/campsite/www/campsite_/html/admin-files//login.
    php): failed to open stream: No such file or directory in
    /usr/local/campsite/www-common/html/admin.php on line 75
    Fatal error: main(): Failed opening required

    To me this seems like a small issue that the team might want to address.

    Since it seemed to be happier with the database variable set to equal
    "campsite", I created a new db instance by hand called "campsite" and now
    the login is working.

    Give it a try and let me know what you see on your end.

    If you are able to make changes that are reflected in the database, that's
    probably fine to do. We can always rename the database later (back to
    campsite_, or whatever) are just leave it.

    OK, lemme know how it goes.

    -Os
    --=_alternative 0034FA96C1257051_=
    Content-Type: text/html; charset="us-ascii"



    Hi all,



    My good friend Os Tyler has been trying his hand at a Campsite install, and here is his latest mail on the process. One issue was that with Red Hat 9 he couldn't get a package for libxml2 2.6 or greater to work, but now he has that fixed. Anyway, here's the mail:



    ========================================



    A little more change on the campsite front.



    I worked it out so the login page appears at
    http://campsite.<domain>.com/login/



    Next, I installed the database by hand and I called it "campsite_<domain>".



    So that the application would know where to find the database, I modified /usr/local/campsite/etc/campsite/database_conf.php, changing:

    $Campsite['DATABASE_NAME'] = 'campsite';

    to:

    $Campsite['DATABASE_NAME'] = 'campsite_<domain>';



    This one change to the database_conf.php file caused this error:

    main(/usr/local/campsite/www/campsite_<domain>/html/admin-files//login.

      php):   failed   to   open  stream:  No  such  file  or  directory  in

      /usr/local/campsite/www-common/html/admin.php on line 75

      Fatal error: main(): Failed opening required



    To me this seems like a small issue that the team might want to address.



    Since it seemed to be happier with the database variable set to equal "campsite", I created a new db instance by hand called "campsite" and now the login is working.



    Give it a try and let me know what you see on your end.



    If you are able to make changes that are reflected in the database, that's probably fine to do. We can always rename the database later (back to campsite_<domain>, or whatever) are just leave it.



    OK, lemme know how it goes.



    -Os

    --=_alternative 0034FA96C1257051_=--

    ------------------------------------------
    Posted to Phorum via PhorumMail
  • 2 Comments sorted by
  • Gday Os!

    Are you using the create_instance script to create your campsite
    instance in the first place? My testing seemed to show that if you used
    that, then the database_conf file would be created with a pointer to the
    appropriately named database.

    If you fancy trying an install from an RPM, please give my SRPM a go,
    http://pye.dyndns.org/campsite/SRPMS/campsite-2.2.2-1.src.rpm.

    wget http://pye.dyndns.org/campsite/SRPMS/campsite-2.2.2-1.src.rpm
    rpm -i campsite-2.2.2-1.src.rpm
    cd /usr/src/redhat/SPECS
    rpmbuild -ba campsite.spec
    rpm -i /usr/src/redhat/RPMS/i386/campsite-2.2.2-1.i386.rpm

    This of course is Campsite 2.2.2, but I did make some changes to the
    installation process because I also experience some difficulties with
    that version (see the patch file embedded in attached SRPM).

    Would be very pleased to hear how you go, if you do get a chance. I'm
    aiming to do an RPM for Campsite 2.3.0 shortly.

    Course it's possible taht I didn't fix the problem you're seeing. I just
    remember that I fiddled about with some of the related files in my
    efforts to get the RPM installer working as intended.

    Cheers

    JP

    Douglas.Arellanes@mdlf.org wrote:

    >
    > Hi all,
    >
    > My good friend Os Tyler has been trying his hand at a Campsite
    > install, and here is his latest mail on the process. One issue was
    > that with Red Hat 9 he couldn't get a package for libxml2 2.6 or
    > greater to work, but now he has that fixed. Anyway, here's the mail:
    >
    > ========================================
    >
    > A little more change on the campsite front.
    >
    > I worked it out so the login page appears at
    > _http://campsite..com/login/_
    >
    >
    > Next, I installed the database by hand and I called it
    > "campsite_".
    >
    > So that the application would know where to find the database, I
    > modified /usr/local/campsite/etc/campsite/database_conf.php, changing:
    > $Campsite['DATABASE_NAME'] = 'campsite';
    > to:
    > $Campsite['DATABASE_NAME'] = 'campsite_';
    >
    > This one change to the database_conf.php file caused this error:
    > main(/usr/local/campsite/www/campsite_/html/admin-files//login.
    > php): failed to open stream: No such file or directory in
    > /usr/local/campsite/www-common/html/admin.php on line 75
    > Fatal error: main(): Failed opening required
    >
    > To me this seems like a small issue that the team might want to address.
    >
    > Since it seemed to be happier with the database variable set to equal
    > "campsite", I created a new db instance by hand called "campsite" and
    > now the login is working.
    >
    > Give it a try and let me know what you see on your end.
    >
    > If you are able to make changes that are reflected in the database,
    > that's probably fine to do. We can always rename the database later
    > (back to campsite_, or whatever) are just leave it.
    >
    > OK, lemme know how it goes.
    >
    > -Os

    ------------------------------------------
    Posted to Phorum via PhorumMail
  • See below...

    > Next, I installed the database by hand and I called it
    > "campsite_".
    >
    > So that the application would know where to find the database, I modified
    > /usr/local/campsite/etc/campsite/database_conf.php, changing:
    > $Campsite['DATABASE_NAME'] = 'campsite';
    > to:
    > $Campsite['DATABASE_NAME'] = 'campsite_';
    >
    > This one change to the database_conf.php file caused this error:
    > main(/usr/local/campsite/www/campsite_/html/admin-files//login.
    > php): failed to open stream: No such file or directory in
    > /usr/local/campsite/www-common/html/admin.php on line 75
    > Fatal error: main(): Failed opening required
    Well, you can't change the database name just like this because Campsite finds
    the PHP include files based on this name. So you can't rename an instance.

    Mugur

    --- Douglas.Arellanes@mdlf.org wrote:
    > Hi all,
    >
    > My good friend Os Tyler has been trying his hand at a Campsite install,
    > and here is his latest mail on the process. One issue was that with Red
    > Hat 9 he couldn't get a package for libxml2 2.6 or greater to work, but
    > now he has that fixed. Anyway, here's the mail:
    >
    > ========================================
    >
    > A little more change on the campsite front.
    >
    > I worked it out so the login page appears at
    > http://campsite..com/login/
    >
    > Next, I installed the database by hand and I called it
    > "campsite_".
    >
    > So that the application would know where to find the database, I modified
    > /usr/local/campsite/etc/campsite/database_conf.php, changing:
    > $Campsite['DATABASE_NAME'] = 'campsite';
    > to:
    > $Campsite['DATABASE_NAME'] = 'campsite_';
    >
    > This one change to the database_conf.php file caused this error:
    > main(/usr/local/campsite/www/campsite_/html/admin-files//login.
    > php): failed to open stream: No such file or directory in
    > /usr/local/campsite/www-common/html/admin.php on line 75
    > Fatal error: main(): Failed opening required
    >
    > To me this seems like a small issue that the team might want to address.
    >
    > Since it seemed to be happier with the database variable set to equal
    > "campsite", I created a new db instance by hand called "campsite" and now
    > the login is working.
    >
    > Give it a try and let me know what you see on your end.
    >
    > If you are able to make changes that are reflected in the database, that's
    > probably fine to do. We can always rename the database later (back to
    > campsite_, or whatever) are just leave it.
    >
    > OK, lemme know how it goes.
    >
    > -Os




    ____________________________________________________
    Start your day with Yahoo! - make it your home page
    http://www.yahoo.com/r/hs

    ------------------------------------------
    Posted to Phorum via PhorumMail