RE: [campsite-support] Can't get /admin/ to work!
  • Primexx -

    The 'virtual' admin directory is located in your root campsite folder under
    the name admin-files. This is invisible to the end user unless you need to
    go 'beneath the covers' for some reason. You should be able to use the admin
    stuff simply by going to:

    http://mysitename.com/admin/

    Virtual hosts are used on any machine which runs multiple 'instances' of the
    apache server. It is a very common thing and there is a ton of documentation
    on setting them up at the apache site (as well as specific information in
    the INSTALL file in the main campsite directory).

    One way to make them work is to have different names for different instances
    of apache. In other words if someone types:

    http://mysitename.com into their browser it will go to a document
    directory /var/www/html

    However if someone types:

    http://campsite.mysitename.com into their browser it will go to the
    document directory /var/www/campsite


    As to your last question, I am not sure what this 'Multiview thing' is. I am
    fairly new to campsite and I haven't stumbled across that yet.

    Hope this helps.

    Mark

    -----Original Message-----
    From: phorum@code.campware.org [mailto:phorum@code.campware.org]
    Sent: Thursday, October 16, 2008 4:23 AM
    To: campsite-support@campware.org
    Subject: [campsite-support] [Campsite Support] Can't get /admin/ to work!

    Author: primexx
    Link: http://code.campware.org/phorum/read.php?8,6628,6628#msg-6628
    ----------------------------------------------------------------------------
    ----

    The lack of admin folder is really confusing, and the matter isn't helped by
    the utter lack of documentation which explains that the folder doesn't
    actually exist, nor any documentation which clearly explains this whole
    thing in detail. Eventually I found this forum and the few previous topics
    on this, but I still can't get it to work.

    a) What's the whole deal with a Virtual Host or whatever? I've never come
    across any software that even mentioned it, why does Campsite need to use
    it?

    b) And then what's this MultiView thing? I've again never heard of anything
    like it.

    Bottom line is I just want to use the software, but it's giving me hurdles
    before it's even set up, that's gotta be good for first impression.

    Can anyone please help me get it working???

    Thanks...

    --
    Sent from Campware Forums
    http://code.campware.org/phorum
  • 18 Comments sorted by
  • Sorry - need a bit more explanation.

    On the shared host - do you have access to the httpd.conf file? If you
    don't, I am not sure if there is a way you
    can work around this.



    If you do, then try to include a new host under the virtual host definitions
    which is defined as such:

    ################ this could be different on
    your server - look to see how the first virtualhost is
    ################ set-up. if it is
    just then use that same syntax for yours
    DocumentRoot /var/www/campsite ########## This needs to be the
    directory where you transferred the main campsite files

    ServerName cshen.ca
    ServerAlias campsite.cshen.ca
    DirectoryIndex index.php index.html

    Options -Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    Allow from all



    -----Original Message-----
    From: phorum@code.campware.org [mailto:phorum@code.campware.org]
    Sent: Thursday, October 16, 2008 6:18 PM
    To: campsite-support@campware.org
    Subject: [Campsite Support] Re: [campsite-support] Can't get /admin/ to
    work!

    Author: primexx
    Link: http://code.campware.org/phorum/read.php?8,6632,6635#msg-6635
    ----------------------------------------------------------------------------
    ----

    thanks mark and mugur for your explanations, but i still don't know how to
    set it up. perhaps it's easier to use a solid example.

    I'm trying to install it on a shared host, here http://campsite.cshen.ca/, I
    tried to do it in a /campsite/ folder instead of a subdomain but that
    quickly failed because apparently the software detects the root path instead
    of the full path when including/redirecting to files (why???).

    I have access to ftp and cPanel, and I haven't added the dot to the htaccess
    file, I tried adding it and that just redirected every request to the main
    index.

    You could see that right now http://campsite.cshen.ca/admin/ can't be found.

    how do I make it work???

    thanks!

    --
    Sent from Campware Forums
    http://code.campware.org/phorum
  • The email got a bit garbled with my comments - this might be better for the
    conf file


    #warning - may be different
    ServerName cshen.ca #server name
    ServerAlias campsite.cshen.ca # campsite site name
    DirectoryIndex index.php index.html
    ##!!!!!!!!! important!!!! campsite main
    directory
    Options -Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    Allow from all



    -----Original Message-----
    From: Mark Corsi [mailto:mcorsi@spearreport.com]
    Sent: Thursday, October 16, 2008 7:18 PM
    To: campsite-support@campware.org
    Subject: RE: [Campsite Support] Re: [campsite-support] Can't get /admin/ to
    work!

    Sorry - need a bit more explanation.

    On the shared host - do you have access to the httpd.conf file? If you
    don't, I am not sure if there is a way you can work around this.



    If you do, then try to include a new host under the virtual host definitions
    which is defined as such:

    ################ this could be different on
    your server - look to see how the first virtualhost is
    ################ set-up. if it is
    just then use that same syntax for yours
    DocumentRoot /var/www/campsite ########## This needs to be the
    directory where you transferred the main campsite files

    ServerName cshen.ca
    ServerAlias campsite.cshen.ca
    DirectoryIndex index.php index.html

    Options -Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    Allow from all



    -----Original Message-----
    From: phorum@code.campware.org [mailto:phorum@code.campware.org]
    Sent: Thursday, October 16, 2008 6:18 PM
    To: campsite-support@campware.org
    Subject: [Campsite Support] Re: [campsite-support] Can't get /admin/ to
    work!

    Author: primexx
    Link: http://code.campware.org/phorum/read.php?8,6632,6635#msg-6635
    ----------------------------------------------------------------------------
    ----

    thanks mark and mugur for your explanations, but i still don't know how to
    set it up. perhaps it's easier to use a solid example.

    I'm trying to install it on a shared host, here http://campsite.cshen.ca/, I
    tried to do it in a /campsite/ folder instead of a subdomain but that
    quickly failed because apparently the software detects the root path instead
    of the full path when including/redirecting to files (why???).

    I have access to ftp and cPanel, and I haven't added the dot to the htaccess
    file, I tried adding it and that just redirected every request to the main
    index.

    You could see that right now http://campsite.cshen.ca/admin/ can't be found.

    how do I make it work???

    thanks!

    --
    Sent from Campware Forums
    http://code.campware.org/phorum
  • I'll ask the host but I looked around and it doesn't seem like I have access to the file. What does it do??

    Why does Campsite need it in the first place, no other CMS uses it Sad

    If this doesn't work, do you know any other CMS that's tailored toward Newspaper web publishing??

    Thanks!
  • As far as you second question, no.

    A few months ago, I spent a lot of time researching news/magazine publishing
    solutions and - believe it or not (because I didn't) - there are very few
    GNU publishing CMS solutions out there that specialize in newpaperr
    publishing. However,there are probably other ideas you can look at.

    Drupal has some publishing modules/skins that can give you the basic
    rudiments of a publishing platform. I am sure Joomla does as well, but I am
    not familiar with that platform.

    All that being said, implementing ANY cms solution is a fairly major
    undertaking from a systems standpoint. If I were on a trip to Las Vegas (or
    Monaco for you Europeans!) I would probably bet against implementing most of
    them on a shared hosting platform unless the host was really, really
    cooperative.

    If your company/website is fairly small - have you thought abouot just
    running your own linux server on a dsl or cable line? I don't know where you
    live, but in the US you could put together a pretty decent server for under
    $1,000 dollars US and put it on a dsl or cable connection for less than $100
    per month. Doing something with those kind of numbers would be able to
    support thousands of unique visitors per day provided you are not trying to
    supply major video/bandwidth hog downloads.

    Best of luck.

    Mark


    -----Original Message-----
    From: phorum@code.campware.org [mailto:phorum@code.campware.org]
    Sent: Friday, October 17, 2008 2:02 AM
    To: campsite-support@campware.org
    Subject: [Campsite Support] Re: RE: Re: [campsite-support] Can't get /admin/
    to work!

    Author: primexx
    Link: http://code.campware.org/phorum/read.php?8,6630,6639#msg-6639
    ----------------------------------------------------------------------------
    ----

    I'll ask the host but I looked around and it doesn't seem like I have access
    to the file. What does it do??

    Why does Campsite need it in the first place, no other CMS uses it Sad

    If this doesn't work, do you know any other CMS that's tailored toward
    Newspaper web publishing??

    Thanks!

    --
    Sent from Campware Forums
    http://code.campware.org/phorum!
  • I asked the host and i indeed do not have access to the file. However, every time I make a new subdomain it makes a new virtual host entry, I can't edit it, but it's at least running under its own virtual host. Is there any way to make the necessary changes either by .htaccess or php.ini??

    thanks!
  • hmmm.....

    I suggest you show the host the excerpt of the file contained in either my
    earlier email or the INSTALL file.

    Ask him if that is the structure of his virtual domain entry in httpd.conf

    Another idea is to ask him nicely, "Look bro, since we are talking like
    people - can you just add the following to the apache conf file?" Wink

    Better yet - just have him install it for you!! Campsite set-up is pretty
    simple and if you are running on Mandrake, Fedora or Redhat - these guys can
    send your host provider an rpm file.

    Honestly though, with patience (and salesmanship) you might get a CMS system
    running on a hosted platform; however, it is going to be more work than
    what it is worth (in my opinion).

    Luck,

    Mark



    -----Original Message-----
    From: phorum@code.campware.org [mailto:phorum@code.campware.org]
    Sent: Friday, October 17, 2008 6:11 PM
    To: campsite-support@campware.org
    Subject: [Campsite Support] Re: RE: Re: RE: Re: [campsite-support] Can't get
    /admin/ to work!

    Author: primexx
    Link: http://code.campware.org/phorum/read.php?8,6630,6642#msg-6642
    ----------------------------------------------------------------------------
    ----

    I asked the host and i indeed do not have access to the file. However, every
    time I make a new subdomain it makes a new virtual host entry, I can't edit
    it, but it's at least running under its own virtual host. Is there any way
    to make the necessary changes either by .htaccess or php.ini??

    thanks!

    --
    Sent from Campware Forums
    http://code.campware.org/phorum
  • Well they already said they can't accommodate custom entries. Would it work on a virtual private server?
  • Not sure.

    You need to be able to do the following things in order to set it up:

    1) install a directory that you control and the webserver can get to (access
    priveleges for apache (or orther webserver system call))

    2) create a virtual host (or have total control of the server so you can set
    the campsite directory as the MAIN website document root)

    It sounds like you can't do the second.

    I am not sure what a 'virtual private server' is. Since they are talking
    with you at this level, I would exchange our replies to you with them and
    let them tell you whether it is possible.

    It sounds like they are a fairly small hosting provider. I would sell them
    on the fact that installing campsite will help them to build further
    functionality for the people that host with them.

    Best of luck-

    Mark

    -----Original Message-----
    From: phorum@code.campware.org [mailto:phorum@code.campware.org]
    Sent: Friday, October 17, 2008 7:49 PM
    To: campsite-support@campware.org
    Subject: [Campsite Support] Re: RE: Re: RE: Re: RE: Re: [campsite-support]
    Can't get /admin/ to work!

    Author: primexx
    Link: http://code.campware.org/phorum/read.php?8,6630,6645#msg-6645
    ----------------------------------------------------------------------------
    ----

    Well they already said they can't accommodate custom entries. Would it work
    on a virtual private server?

    --
    Sent from Campware Forums
    http://code.campware.org/phorum
  • a VPS should provide full software access, except instead of dedicated servers they're using virtualization software to host multiple clients on a single high-end rig. The shared host I was talking about earlier is actually pretty large, but that's my own personal account and the live site won't be hosted there. I haven't obtained a host for the actual thing yet, I was going to go with another share hosting account since it'll handle the traffic fine, but I didn't expect the software to use obscure stuff that nobody else does, so I'll look around for a low-end VPS I guess.

    Thanks for your help!
  • I was reading some old (2006) posts and they mentioned that the code was being rewritten so it could be installed anywhere. What happened to that???

    It was also mentioned that there are hosts which do campsite specifically, where could I find them??

    thanks!
  • Hi,

    there might be an solution for you. Copy the attached .htaccess file to
    campsite's base folder, and try again to access www.yourdomain/admin/ (it
    may just work with an ending slash).

    Please let me know if it works or even not.

    Best,
    Sebastian
  • i don't see any attachments...could you copy it to http://pastebin.com/ ??

    thanks!!
  • Sorry, the forum seems not handle attachments.

    You can find the content here http://pastebin.com/m1a37114e

    or below this message. Copy them to the .htaccess file

    Best,
    Sebastian



    # Rewrite rules for Campsite ShortName URLs

    RewriteEngine On

    RewriteCond %{REQUEST_URI} ![^.]\.php
    RewriteCond %{REQUEST_URI} ![^.]\.html
    RewriteCond %{REQUEST_URI} ![^.]\.css
    RewriteCond %{REQUEST_URI} ![^.]\.js
    RewriteCond %{REQUEST_URI} !^/admin
    RewriteCond %{REQUEST_URI} !^/install
    RewriteCond %{REQUEST_URI} !^/get_img
    RewriteCond %{REQUEST_URI} !^/attachment
    RewriteCond %{REQUEST_URI} !^/templates
    RewriteCond %{REQUEST_URI} !^/admin-files
    RewriteCond %{REQUEST_URI} !^/css
    RewriteCond %{REQUEST_URI} !^/images
    RewriteRule . /index.php [L]

    RewriteCond %{REQUEST_URI} ^/admin/
    RewriteRule . /admin.php [L]
  • Hi, I'm one of those who have the problem on shared hosting (eunet.rs) -
    installation went smoothly (database creation etc), however when I tried
    to access /admin with default .htaccess, it could not be found. Now, with
    this updated .htaccess, i get error message 403 - You don't have
    permission to access / on this server, and same for all folders. It is not
    file attributes issue, i checked all combination.

    what might be wrong?

    Ljuba



    > Sorry, the forum seems not handle attachments.
    >
    > You can find the content here http://pastebin.com/m1a37114e
    >
    > or below this message. Copy them to the .htaccess file
    >
    > Best,
    > Sebastian
    >
    >
    >
    > # Rewrite rules for Campsite ShortName URLs
    >
    > RewriteEngine On
    >
    > RewriteCond %{REQUEST_URI} ![^.]\.php
    > RewriteCond %{REQUEST_URI} ![^.]\.html
    > RewriteCond %{REQUEST_URI} ![^.]\.css
    > RewriteCond %{REQUEST_URI} ![^.]\.js
    > RewriteCond %{REQUEST_URI} !^/admin
    > RewriteCond %{REQUEST_URI} !^/install
    > RewriteCond %{REQUEST_URI} !^/get_img
    > RewriteCond %{REQUEST_URI} !^/attachment
    > RewriteCond %{REQUEST_URI} !^/templates
    > RewriteCond %{REQUEST_URI} !^/admin-files
    > RewriteCond %{REQUEST_URI} !^/css
    > RewriteCond %{REQUEST_URI} !^/images
    > RewriteRule . /index.php [L]
    >
    > RewriteCond %{REQUEST_URI} ^/admin/
    > RewriteRule . /admin.php [L]
    >
    >
  • I modified Campsite not to use the multiview apache option anymore, although
    I think it's *REALLY STUPID* that the shared hosting providers do not
    allow/support this option. Check the ticket
    http://code.campware.org/projects/campsite/ticket/2634

    3.1.2 will have this fix

    Mugur

    On Tue, Oct 21, 2008 at 1:14 PM, Sebastian Goebel
    wrote:

    > Sorry, the forum seems not handle attachments.
    >
    > You can find the content here http://pastebin.com/m1a37114e
    >
    > or below this message. Copy them to the .htaccess file
    >
    > Best,
    > Sebastian
    >
    >
    >
    > # Rewrite rules for Campsite ShortName URLs
    >
    > RewriteEngine On
    >
    > RewriteCond %{REQUEST_URI} ![^.]\.php
    > RewriteCond %{REQUEST_URI} ![^.]\.html
    > RewriteCond %{REQUEST_URI} ![^.]\.css
    > RewriteCond %{REQUEST_URI} ![^.]\.js
    > RewriteCond %{REQUEST_URI} !^/admin
    > RewriteCond %{REQUEST_URI} !^/install
    > RewriteCond %{REQUEST_URI} !^/get_img
    > RewriteCond %{REQUEST_URI} !^/attachment
    > RewriteCond %{REQUEST_URI} !^/templates
    > RewriteCond %{REQUEST_URI} !^/admin-files
    > RewriteCond %{REQUEST_URI} !^/css
    > RewriteCond %{REQUEST_URI} !^/images
    > RewriteRule . /index.php [L]
    >
    > RewriteCond %{REQUEST_URI} ^/admin/
    > RewriteRule . /admin.php [L]
    >
    >
  • well the htaccess file semi-worked for me, i could access the login page (forgot the password so I'll check if everything else works later), but the logo on the default page ("No publication assigned") wouldn't display with the htaccess file, whereas without it it would display.

    I look forward to Mugur's fix though Very Happy

    Really appreciate the help everyone's given!!
  • Actually I don't know what caused the 403. But can you try to access
    http://yoursite/admin/ with the ending slash? And
    http://yoursite/admin/login.php

    I will update the .htaccess to work without this tomorrow.


    > -----Original Message-----
    > From: ljuba.rankovic@mediaonweb.org
    > [mailto:ljuba.rankovic@mediaonweb.org]
    > Sent: Tuesday, October 21, 2008 8:24 PM
    > To: campsite-support@campware.org
    > Subject: RE: [Campsite Support] Re: RE: Re: RE: Re: RE: Re: RE: Re: RE:
    > Re: [campsite-support] Can't get /admin/ to work!
    >
    >
    > Hi, I'm one of those who have the problem on shared hosting (eunet.rs) -
    > installation went smoothly (database creation etc), however when I tried
    > to access /admin with default .htaccess, it could not be found. Now, with
    > this updated .htaccess, i get error message 403 - You don't have
    > permission to access / on this server, and same for all folders. It is not
    > file attributes issue, i checked all combination.
    >
    > what might be wrong?
    >
    > Ljuba
    >
    >
    >
    > > Sorry, the forum seems not handle attachments.
    > >
    > > You can find the content here http://pastebin.com/m1a37114e
    > >
    > > or below this message. Copy them to the .htaccess file
    > >
    > > Best,
    > > Sebastian
    > >
    > >
    > >
    > > # Rewrite rules for Campsite ShortName URLs
    > >
    > > RewriteEngine On
    > >
    > > RewriteCond %{REQUEST_URI} ![^.]\.php
    > > RewriteCond %{REQUEST_URI} ![^.]\.html
    > > RewriteCond %{REQUEST_URI} ![^.]\.css
    > > RewriteCond %{REQUEST_URI} ![^.]\.js
    > > RewriteCond %{REQUEST_URI} !^/admin
    > > RewriteCond %{REQUEST_URI} !^/install
    > > RewriteCond %{REQUEST_URI} !^/get_img
    > > RewriteCond %{REQUEST_URI} !^/attachment
    > > RewriteCond %{REQUEST_URI} !^/templates
    > > RewriteCond %{REQUEST_URI} !^/admin-files
    > > RewriteCond %{REQUEST_URI} !^/css
    > > RewriteCond %{REQUEST_URI} !^/images
    > > RewriteRule . /index.php [L]
    > >
    > > RewriteCond %{REQUEST_URI} ^/admin/
    > > RewriteRule . /admin.php [L]
    > >
    > >
    >
    >
  • so i logged in and it seems the current htaccess breaks all images, but the admin folder is now accessible.