HEEELP

Permalink
Just moved the site to a subfolder and had help getting the htaccess set up right . Now I am getting this message:

Warning: require(/hsphere/local/home/c350498/cellista.no/site1/concrete/config/base_pre.php): failed to open stream: No such file or directory in /hsphere/local/home/c350498/cellista.no/site1/concrete/dispatcher.php on line 14 Fatal error: require(): Failed opening required '/hsphere/local/home/c350498/cellista.no/site1/concrete/config/base_pre.php' (include_path='.:/hsphere/shared/apache/libexec/php5ext/php/') in /hsphere/local/home/c350498/cellista.no/site1/concrete/dispatcher.php on line 14

I checked, and this folder does not exist: concrete->config

What to do? I could always copy that folder from the site inside the folder "ny" at root, but that is a newer version of concrete5.

Anyone?

URL_http://cellista.no/site1

djoniba
 
djoniba replied on at Permalink Reply
djoniba
Fixed it by copying the config folder over from my other site on the same server (but other version of C5). Seems to work.

Now I am wondering were in the h... the htaccess file is :) The site is nor redirected to the correct folder
INTcommunications replied on at Permalink Reply
INTcommunications
You have to clear the cache and turn off pretty urls just before you copy or move a concrete site - you need a config file on any concrete install. Clearing the cache should also be done before you export or back-up your mysql database also.
Also when you move a site you may have to give the correct permissions on the folders for reading and writing.

Even moving it out of a sub folder - do these steps -
https://www.concrete5.org/documentation/installation/moving_a_site...

Once you get the home page working - your browser may have cached versions also go to each page and reload from browser.

Jim
djoniba replied on at Permalink Reply
djoniba
Thanks. Good to know :)

It works fine now. I got help from the host setting up the .htaccess
Are there any considerations when setting up this file for Concrete5?
Here is the file as it looks now:

AddHandler phpini-cgi .php
Action phpini-cgi /cgi-bin/php5-custom-ini.cgi
# Do not change this line.
RewriteEngine on
# Change yourdomain.com to be your main domain.
RewriteCond %{HTTP_HOST} ^(www.)?cellista.no$ [NC]
# Change 'subfolder' to be the folder you will use for your main domain.
RewriteCond %{REQUEST_URI} !^/site1/
# Don't change these lines.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Change 'subfolder' to be the folder you will use for your main domain.
RewriteRule ^(.*)$ /site1/$1 [L]
# Change yourdomain.com to be your main domain again.
# Change 'subfolder' to be the folder you will use for your main domain