Re: [campsite-support] Installation as non-root problems
  • Hi,

    Please edit the file /web/foghorn/campsite/bin/campsite-create-instance.php, go to line 139 and replace the lines 139 and 140:

    if ($res != 0)
    return implode("\n", $output);

    with

    // if ($res != 0)
    // return implode("\n", $output);

    Regards,
    Mugur

    wrote: Author: jimmybondo
    Link: http://code.campware.org/phorum/read.php?8,3751,3751#msg-3751
    --------------------------------------------------------------------------------

    I followed all of the directions on the non-root instruction page, but when I go to the create instance command, I got this:

    chown: changing ownership of `/web/foghorn/campsite/etc/campsite': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/etc/campsite/smtp_conf.php': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/etc/campsite/database_conf.php': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/etc/campsite/parser_conf.php': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/etc/campsite/apache_conf.php': Operation not permitted
    Campsite parameters:
    APACHE_USER = (removed)
    APACHE_GROUP = (removed)
    CAMPSITE_DIR = /web/foghorn/campsite
    BIN_DIR = /web/foghorn/campsite/bin
    SBIN_DIR = /web/foghorn/campsite/sbin
    ETC_DIR = /web/foghorn/campsite/etc
    WWW_DIR = /web/foghorn/campsite/www
    WWW_COMMON_DIR = /web/foghorn/campsite/www-common
    DEFAULT_SMTP_SERVER_ADDRESS = localhost
    DEFAULT_SMTP_SERVER_PORT = 25
    DEFAULT_DATABASE_SERVER_ADDRESS = localhost
    PARSER_START_PORT = 2000
    DATABASE_NAME = campsite
    DATABASE_SERVER_ADDRESS = localhost
    DATABASE_SERVER_PORT = 0
    DATABASE_USER = (removed)
    DATABASE_PASSWORD = (removed)
    PARSER_PORT = 2001
    PARSER_MAX_THREADS = 0
    SMTP_SERVER_ADDRESS = localhost
    SMTP_SERVER_PORT = 25

    Now, I have tried giving thos files all permissions, tried changing the myself, but no luck. Any suggestions?
    Thank you
    Jim

    --
    Sent from Campware Forums
    http://code.campware.org/phorum



    ---------------------------------
    New Yahoo! Messenger with Voice. Call regular phones from your PC for low, low rates.
  • 4 Comments sorted by
  • Alright, I commented out those lines, but now it is pumping out these errors:

    chown: changing ownership of `/web/foghorn/campsite/www/campsite': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/install_conf.php': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/smtp_conf.php': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/admin.php': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/include': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/classes': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/javascript': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/configuration.php': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/index.php': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/look': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/images': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/images/thumbnails': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/css': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/database_conf.php': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/attachment.php': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/parser_conf.php': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/apache_conf.php': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/campsite_version.php': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/parser_utils.php': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/files': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/db_connect.php': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/admin-files': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/cgi-bin': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/cgi-bin/get_img': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/cgi-bin/tpl_cgi': Operation not permitted
    Unable to create the database campsite
    Campsite parameters:
    APACHE_USER = (removed)
    APACHE_GROUP = (removed)
    CAMPSITE_DIR = /web/foghorn/campsite
    BIN_DIR = /web/foghorn/campsite/bin
    SBIN_DIR = /web/foghorn/campsite/sbin
    ETC_DIR = /web/foghorn/campsite/etc
    WWW_DIR = /web/foghorn/campsite/www
    WWW_COMMON_DIR = /web/foghorn/campsite/www-common
    DEFAULT_SMTP_SERVER_ADDRESS = localhost
    DEFAULT_SMTP_SERVER_PORT = 25
    DEFAULT_DATABASE_SERVER_ADDRESS = localhost
    PARSER_START_PORT = 2000
    DATABASE_NAME = campsite
    DATABASE_SERVER_ADDRESS = localhost
    DATABASE_SERVER_PORT = 0
    DATABASE_USER = (removed)
    DATABASE_PASSWORD = (removed)
    PARSER_PORT = 2001
    PARSER_MAX_THREADS = 0
    SMTP_SERVER_ADDRESS = localhost
    SMTP_SERVER_PORT = 25

    Thanks for your help so far though!
    Jim
  • Please make sure you set the apache user and group to your own user/group. For example, if your user/group are: jimmy/jimmy then you MUST set the apache user/group to: jimmy/jimmy, not to apache/apache.

    Mugur

    wrote: Author: jimmybondo
    Link: http://code.campware.org/phorum/read.php?8,3754,3771#msg-3771
    --------------------------------------------------------------------------------

    Alright, I commented out those lines, but now it is pumping out these errors:

    chown: changing ownership of `/web/foghorn/campsite/www/campsite': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/install_conf.php': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/smtp_conf.php': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/admin.php': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/include': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/classes': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/javascript': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/configuration.php': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/index.php': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/look': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/images': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/images/thumbnails': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/css': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/database_conf.php': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/attachment.php': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/parser_conf.php': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/apache_conf.php': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/campsite_version.php': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/parser_utils.php': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/files': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/db_connect.php': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/html/admin-files': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/cgi-bin': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/cgi-bin/get_img': Operation not permitted
    chown: changing ownership of `/web/foghorn/campsite/www/campsite/cgi-bin/tpl_cgi': Operation not permitted
    Unable to create the database campsite
    Campsite parameters:
    APACHE_USER = (removed)
    APACHE_GROUP = (removed)
    CAMPSITE_DIR = /web/foghorn/campsite
    BIN_DIR = /web/foghorn/campsite/bin
    SBIN_DIR = /web/foghorn/campsite/sbin
    ETC_DIR = /web/foghorn/campsite/etc
    WWW_DIR = /web/foghorn/campsite/www
    WWW_COMMON_DIR = /web/foghorn/campsite/www-common
    DEFAULT_SMTP_SERVER_ADDRESS = localhost
    DEFAULT_SMTP_SERVER_PORT = 25
    DEFAULT_DATABASE_SERVER_ADDRESS = localhost
    PARSER_START_PORT = 2000
    DATABASE_NAME = campsite
    DATABASE_SERVER_ADDRESS = localhost
    DATABASE_SERVER_PORT = 0
    DATABASE_USER = (removed)
    DATABASE_PASSWORD = (removed)
    PARSER_PORT = 2001
    PARSER_MAX_THREADS = 0
    SMTP_SERVER_ADDRESS = localhost
    SMTP_SERVER_PORT = 25

    Thanks for your help so far though!
    Jim

    --
    Sent from Campware Forums
    http://code.campware.org/phorum



    ---------------------------------
    Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.
  • I have the correct apache user group, I just chose not to show it. I got them from the sys admin.
    Jim

    PS- Thanks for the fast reply!
  • When installing Campsite without root privileges you MUST NOT USE the apache user/group but instead use your own user/group.

    For example, if your user/group are: jimmy/jimmy then run the configure script the following way:

    ./configure --apache_user jimmy --apache_group jimmy [etc.]

    Then:
    make
    make install
    .../campsite-create-instance ...

    Mugur

    wrote: Author: jimmybondo
    Link: http://code.campware.org/phorum/read.php?8,3754,3787#msg-3787
    --------------------------------------------------------------------------------

    I have the correct apache user group, I just chose not to show it. I got them from the sys admin.
    Jim

    PS- Thanks for the fast reply!

    --
    Sent from Campware Forums
    http://code.campware.org/phorum



    ---------------------------------
    New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.