-
Notifications
You must be signed in to change notification settings - Fork 572
Installation Path #201
Comments
It's all in the wiki https://github.com/anchorcms/anchor-cms/wiki/Installing |
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). |
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 |
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: Or here is the copy/paste: Unhandled Exception Message: Undefined index: HTTP_HTTPS /storage/content/74/152474/feldt.nu/settings/includes.php on line 70 #0 /storage/content/74/152474/feldt.nu/public_html/notes/system/bootstrap.php(79): System\Error::shutdown() htaccess looks like this: RewriteEngine On RewriteBase /feldt.nu/public_html/notes/
<IfModule !mod_rewrite.c> |
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. |
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) #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() The file: |
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. |
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... |
I think I'm missing something here. Why don't you just run the installer on the uploaded version? |
Because, when I visit the uploaded version i get the above error message. The installer doesn't even start. |
Give me a link to the installer and this is a completely fresh install yes? |
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. |
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. |
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. |
No problem but have you looked at the very root, before public_html. |
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"){ |
👍 the rest of the if statement please. |
This is everything that that file holds: |
Do you have any Secure connection pages at all? If not, just comment out the if statement. |
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. |
Hmmm not sure what to do then. No problem, sorry I couldn't help. |
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. |
Seems like a bit of an edgecase, but I'll have a look into that setup. |
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
The text was updated successfully, but these errors were encountered: