Concrete5 Installation Issue -

Permalink
Hey there -

I'm currently building my first Concrete5 site and ran into a small issue with installation. I'm keeping the concrete files in a folder titled "concrete" on the root level of my server until I'm ready to bring the new site live. I gave 755 permissions to the Files folder, the Config folder, and the concrete folder itself.

All seemed to have went fine with the mySQL servers and actually installing the platform on my web host (iXwebhosting). The problem came in when I was beginning to mess with the dashboard and when I click "Return to Site >" it brings me to the file directory of the folder "concrete" simply showing all the files that are in the folder instead of defaulting to Index.php - When I click on Index.php it brings me to my site as it should. What am I doing wrong? Could this be a permissions issue or perhaps I cant have these files located anywhere BUT my root folder? Any help would be much appreciated.

Also, When I do go to make this concrete site live in replace of the current site, will all these files HAVE to move to the root folder? Whats the best way of doing this without making issues on the platform?

Thanks so much in advance, your help is much appreciated.

~T

widabi
 
TheRealSean replied on at Permalink Best Answer Reply
TheRealSean
Hello,

If I am understanding correctly you have installed concrete5 within a folder called "concrete". (There is also a folder at the root of a concrete5 installation called "concrete").

If that is the case then you would need to update your .htaccess file.

My guess is you have played with the friendly url settings.

In your concrete5 root folder add a file called, .htaccess and with a text editor add the following. (It may be possible the .htaccess file is there then just compare the content and ensure its similar)

##run within the concrete folder
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /concrete/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
</IfModule>


Once you are ready to go live with the site, I move all the root folders into a folder I create "backup" then drag all of the root files and folders from the concrete5 directory into the root including hidden files.

You will then need to edit your .htaccess file just read
##If run from the root
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
</IfModule>


Depending on concrete5 version (pre 5.5 I think) you may then need to edit your config/site.php file. 5.5 on used automation to work out the location.

You might also just need to ensure that any custom templates/ blocks or packages are also updated if they have hard-coded links.

As a final note, the files within the concrete folder within the concrete5 root directory should remain there. (In your instance this would be root/concrete/concrete)

Hope this helps
Sean
widabi replied on at Permalink Reply
widabi
Sean,

Thanks a lot for your message -

I did as you mentioned and went ahead and enabled "Pretty URLs" and the .htaccess file (exactly as you have above) was added automatically to the concrete5 root folder (in my case titled 'concrete').

It seems the same thing is happening with it wanted to bring me to the file directory of the concrete root folder instead of right to Index.php - It seems to happen whenever I login, or whenever I'm in the dashboard and select it to "Return to Website" -

I went ahead and tried adding index.php to my directory indexes but it dosent seem to help either -

Any other suggestions would be much appreciated. I simply want to be sure I did everything right with this installation before beginning the process of building my site. Would hate to have it built on a shaky foundation.

Thanks again for you help. Please let me know if I can give you any more information. I'm running version 5.6.0.2 -

~Trent
widabi replied on at Permalink Reply
widabi
Sean, it must have taken a moment to update - its working fine now. I'll take your suggestions when I go to take the site live.

Thanks again for everything.

~T