Re: [campsite-support] Re: Working with IIS
  • Hi Terix,In http://trac.campware.org/campsite/wiki/InstallingUnderPHP-CGI there is the answer for Apache. I guess IIS could work with the same settings, and please let us know if it does:Campsite files do not have to be owned by the Apache user (e.g. apache on Centos or www on Ubuntu). All you need is that the Apache user have a right to write to following directories:
    document_root (only during installation)
    /conf (only during installation)
    /templates
    /templates_c
    /plugins (only during plugin installation)
    All the best,Sava-----"" <phorum@code.campware.org> wrote: -----To: campsite-support@campware.orgFrom: "" <phorum@code.campware.org>Date: 11/23/2009 07:47PMSubject: [campsite-support] [Campsite Support] Re: Working with IISAuthor: TerixLink:  http://code.campware.org/phorum/read.php?8,7829,7835#msg-7835--------------------------------------------------------------------------------By the way, which are the folders that must be kept writable? The Hosting guy is stressing me to make writable the least possible number of folders...-- Sent from Campware Forumshttp://code.campware.org/phorum
  • 8 Comments sorted by
  • Hi Sava,
    thanks for the help.
    I've installed Campsite on IIS. The instalaltion procedure went fine, but after clicking on Administration icon, i got this:

    Fatal error: Call to undefined function camp_load_translation_strings() in D:\www\ilsegnale\www\admin\index.php on line 2

    What could be?
  • I went further (i saw that i must load admin.php instead of going to admin subfolder)

    Now i'm stuck there:


    Warning: require_once() [function.require-once]: open_basedir restriction in effect. File(C:\/db_connect.php) is not within the allowed path(s): (D:\www;D:\Temp-Upload) in D:\www\ilsegnale\www\admin\login.php on line 3

    Warning: require_once(/db_connect.php) [function.require-once]: failed to open stream: Operation not permitted in D:\www\ilsegnale\www\admin\login.php on line 3

    Fatal error: require_once() [function.require]: Failed opening required '/db_connect.php' (include_path='.;D:\www\alfacms-repository\config') in D:\www\ilsegnale\www\admin\login.php on line 3

    I think that some vars are not set, because many paths are weird (like the "C:\/db_connect.php" one)

    how can i fix them?
  • How can happen that on install the unix path works, but on site load there is a mismatch between MS style path (\...\...\) and unix path (/.../.../) ?
  • Please someone help me, this IIS is making me mad... the most crazy thing is that Campsite gives 1 thousands of error, but openx is working fine...
    What could be preventing Campsite from working well?
    I'll promise to full translate Campsite to Italian if you help me on that!
  • Hi Terix,I would help you if I could. As far as I know, our community has no or very little experience with IIS. Perhaps someone could use common sense to figure out what those error messages. I'll ask around, but can't promise anything.Sava-----"" <phorum@code.campware.org> wrote: -----To: campsite-support@campware.orgFrom: "" <phorum@code.campware.org>Date: 11/25/2009 11:34AMSubject: [Campsite Support] Re: [campsite-support] Re: Working with IISAuthor: TerixLink:  http://code.campware.org/phorum/read.php?8,7836,7848#msg-7848--------------------------------------------------------------------------------Please someone help me, this IIS is making me mad... the most crazy thing is that Campsite gives 1 thousands of error, but openx is working fine...What could be preventing Campsite from working well?I'll promise to full translate Campsite to Italian if you help me on that!-- Sent from Campware Forumshttp://code.campware.org/phorum
  • Campsite is using some GNU specific utilities during the install/configure
    process. Please check if the following files exist:
    - conf/configuration.php
    - conf/database_conf.php

    Mugur

    On Wed, Nov 25, 2009 at 12:34 PM, wrote:

    > Author: Terix
    > Link: http://code.campware.org/phorum/read.php?8,7836,7848#msg-7848
    >
    > --------------------------------------------------------------------------------
    >
    > Please someone help me, this IIS is making me mad... the most crazy thing
    > is that Campsite gives 1 thousands of error, but openx is working fine...
    > What could be preventing Campsite from working well?
    > I'll promise to full translate Campsite to Italian if you help me on that!
    >
    > --
    > Sent from Campware Forums
    > http://code.campware.org/phorum
    >
  • I'm doing a couple of tests, running this PHP script:

    echo dirname(__FILE__);
    echo "
    ";
    echo $_SERVER['DOCUMENT_ROOT'];
    echo "
    ";
    echo dirname(dirname(__FILE__));
    ?>

    Apache gives me back this:
    C:\UniServer5\www
    C:/UniServer5/www
    C:\UniServer5

    IIS gives me back this:
    D:\www\ilsegnale\www
    D:\www\ilsegnale\www
    D:\www\ilsegnale

    This surely could do some harm, but still doesn't explain why openx instead works fine...
  • i've handcrafted the D:/www/ilsegnale/www path, and now i get this..

    Error: While upgrading the database: tables.sql (2.0.x): 'mysql' is not recognized as an internal or external command, operable program or batch file.

    Maybe can help you point out the problem...

    As a side note, during the installation everything went fine even for the database, all the tables and the data is on it's place.