Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Installation Path #201

Closed
docklandsstudios opened this issue Feb 8, 2013 · 23 comments
Closed

Installation Path #201

docklandsstudios opened this issue Feb 8, 2013 · 23 comments

Comments

@docklandsstudios
Copy link

Has the installation path changed as can't get it running as per HP instructions?

Also, I noticed there's no .htaccess in the current release?

Thanks guys

@simoncla
Copy link

simoncla commented Feb 8, 2013

@dafeld
Copy link

dafeld commented Feb 8, 2013

Someone should probably change the docs on the site to correspond with the wiki: http://anchorcms.com/docs/getting-started/installing

Because I've spent sometime trying to fix this and had to find the answer thru a tweet. Still haven't gotten the install to work. Maybe the wiki/site also should have an example on how the .htaccess should look like when editing the base and index. For n00bs like me.

The site should assume that there are idiots (like me) who is going to use the docs and the installer. Idiots that love the ease of installing WordPress but are tired of the bloatiness of it. I'd be happy to help anyway I can (being an idiot an all).

@simoncla
Copy link

simoncla commented Feb 8, 2013

What errors are you getting while installing?

Also the .htaccess is pretty much done unless you want to add some other features.

If you just want clean URL's just rename htaccess.distro to .htaccess and change your application path in anchor/config/application.php from
'index' => "index.php",
to
'index' => " ",

@dafeld
Copy link

dafeld commented Feb 8, 2013

Thanks for the reply. There are no "anchor/config/application.php" file to edit, but i found one in install/config/application.php. Is that the one you meant?

For error, see for yourself:
http://feldt.nu/notes/

Or here is the copy/paste:

Unhandled Exception

Message:

Undefined index: HTTP_HTTPS
Location:

/storage/content/74/152474/feldt.nu/settings/includes.php on line 70
Stack Trace:

#0 /storage/content/74/152474/feldt.nu/public_html/notes/system/bootstrap.php(79): System\Error::shutdown()
#1 [internal function]: System{closure}()
#2 {main}


htaccess looks like this:

RewriteEngine On RewriteBase /feldt.nu/public_html/notes/
# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Rewrite all other URLs to index.php/URL
RewriteRule ^(.*)$ {index} [L]

<IfModule !mod_rewrite.c>
ErrorDocument 404 index.php

@simoncla
Copy link

simoncla commented Feb 8, 2013

We'll if you haven't managed to install that file won't be there no. You can do it manually from that one you found but you need to move it to that other directory.

Also link what is in includes,php because it seems that is causing the issue and as far as I'm aware that isn't even Anchor.

@dafeld
Copy link

dafeld commented Feb 8, 2013

First: I'm really grateful for the help. Thanks Simon!

Second: I deleted everything from my server, redownloaded from anchorcms.com/download and uploaded everything to my webserver. Now I get a bigger error message, but it seems that the .htaccess i edited earlier might have messed things up. Now it actually seems to go in to files under anchor. This is the message:

#Unhandled Exception

##Message:

Database connection is not defined for [].

##Location:

/storage/content/74/152474/feldt.nu/public_html/notes/system/database.php on line 26

##Stack Trace:

0 /storage/content/74/152474/feldt.nu/public_html/notes/system/database/query.php(64): System\Database::connection(NULL)
1 /storage/content/74/152474/feldt.nu/public_html/notes/system/database/query.php(59): System\Database\Query->__construct('sessions')
2 /storage/content/74/152474/feldt.nu/public_html/notes/system/session/database.php(19): System\Database\Query::table('sessions')
3 /storage/content/74/152474/feldt.nu/public_html/notes/system/session/driver.php(36): System\Session\Database->load('VYEPLkrHuK27MKy...')
4 /storage/content/74/152474/feldt.nu/public_html/notes/system/session/driver.php(47): System\Session\Driver->id()
5 /storage/content/74/152474/feldt.nu/public_html/notes/system/session/payload.php(35): System\Session\Driver->fresh()
6 /storage/content/74/152474/feldt.nu/public_html/notes/system/session.php(23): System\Session\Payload->load(NULL)
7 /storage/content/74/152474/feldt.nu/public_html/notes/system/bootstrap.php(111): System\Session::load()
8 /storage/content/74/152474/feldt.nu/public_html/notes/index.php(33): require('/storage/conten...')
9 {main}

#Unhandled Exception

##Message:

Undefined index: HTTP_HTTPS

##Location:

/storage/content/74/152474/feldt.nu/settings/includes.php on line 70

##Stack Trace:

0 /storage/content/74/152474/feldt.nu/public_html/notes/system/bootstrap.php(79): System\Error::shutdown()
1 [internal function]: System{closure}()
2 {main}


The file:
/storage/content/74/152474/feldt.nu/settings/includes.php on line 70
Doesnt even exists. There is nothing there. I don't have an directory called settings and no file called includes.php. My current site at feldt.nu is php but the simplest form. I include a header and a footer and a analyticsfile on the pages. That's all.

@simoncla
Copy link

simoncla commented Feb 8, 2013

Okay, hmmm.

Well have you run the install because most of those errors are because it can't connect to your database because no settings are there.

@dafeld
Copy link

dafeld commented Feb 8, 2013

No, I haven't. Its freshly downloaded and not installed ever on that server or anything. I've just downloaded and got MAMP up and running on my computer. Here I get the installer going. Maybe I'll run thru it locally and upload it all "configured and done", see what happens...

@simoncla
Copy link

simoncla commented Feb 8, 2013

I think I'm missing something here.

Why don't you just run the installer on the uploaded version?

@dafeld
Copy link

dafeld commented Feb 8, 2013

Because, when I visit the uploaded version i get the above error message. The installer doesn't even start.

@simoncla
Copy link

simoncla commented Feb 8, 2013

Give me a link to the installer and this is a completely fresh install yes?

@dafeld
Copy link

dafeld commented Feb 8, 2013

This (http://feldt.nu/blog/) is a completely fresh download from the github-repository (except for adding and renaming the htaccess.distro from the storage-directory in the root of the anchor-install)

This (http://feldt.nu/notes/) is the same thing but downloaded from http://anchorcms.com/download. This one contains a few fewer files, like a "content"-directory for instance. The file that downloads is "anchor-cms-0.8.2.zip".

It is something with my webserver. Both these instances of Anchor i get the installer running locally, but the installer can't connect to my MySql-database thou. But it is the same files, nothing changed. Works (until connecting to the database) locally but not on the webserver.

@simoncla
Copy link

simoncla commented Feb 8, 2013

Yeah so it's like I said.

Whatever is on line 70 of that includes.php is causing the issue and as far as I'm aware that's not apart of Anchor at all.

Go to root directory of your host and looks for settings/includes.php there.

@dafeld
Copy link

dafeld commented Feb 8, 2013

Yeah, and like I said, there are no file called includes.php on my server in a folder called "settings". Not in the "feldt.nu".

Anywho. I appreciate all the help and input Simon, I really do. Have a fantastic weekend.

@simoncla
Copy link

simoncla commented Feb 8, 2013

No problem but have you looked at the very root, before public_html.

@dafeld
Copy link

dafeld commented Feb 8, 2013

Whoa whoa whoa. Hold your horses! I went back even further in the folder-structure and found a settings-directory with an include.php-file. This seems to be something that my hostingprovider has.

Line 70 and 71 is the following:

if($_SERVER['HTTP_HTTPS'] == "on"){
$_SERVER['HTTPS'] = "on";

@simoncla
Copy link

simoncla commented Feb 8, 2013

👍

the rest of the if statement please.

@dafeld
Copy link

dafeld commented Feb 8, 2013

This is everything that that file holds:

@simoncla
Copy link

simoncla commented Feb 8, 2013

Do you have any Secure connection pages at all?

If not, just comment out the if statement.

@dafeld
Copy link

dafeld commented Feb 8, 2013

I don't seem to have permission to edit that file. :(

Well, I'm going to drop it for now. Thanks for your time Simon.

@simoncla
Copy link

simoncla commented Feb 8, 2013

Hmmm not sure what to do then. No problem, sorry I couldn't help.

@dafeld
Copy link

dafeld commented Feb 11, 2013

Just wanted to give an update. When I got the hosting company to comment out the if-statement above I got everything running!

I use a rather big web hosting provider here in Sweden, binero.se, and that include.php thing they have seems to be their default setting.

I have no idea how this would work, but this is just an FYI if other people contact about the same issues. Maybe this could be a setting or whatever that Anchor could override/overwrite.... I don't know... you guys are the experts!

Thanks again for all the help.

@ghost ghost closed this as completed Feb 18, 2013
@ghost
Copy link

ghost commented Feb 18, 2013

Seems like a bit of an edgecase, but I'll have a look into that setup.

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants