config/site.php missing/does not exist

Permalink 1 user found helpful
I have dug and dug and dug on the Concrete5 forums, and I just keep going in circles. I feel like I've lost my marbles on this. I have read several posts about moving a site, and every single one talks about editing the config/site.php after the move (and, for the record, very few actually go into specifics about how you edit said site.php file).

What do you do when config/site.php doesn't exist? Is there a different PHP file I should be editing? And, if so, how do I even edit it?

I have found other site.php files on my site (not in any config folder), but they look nothing like the few examples I have found.

I am running 5.7.3.1. I am using the Fruitful theme. Am I a crazy person?

JennyDillBrown
 
hutman replied on at Permalink Reply
hutman
All of the posts that you are reading apply to Concrete 5.6 and below. All of the config files in 5.7 live in /application/config/
JennyDillBrown replied on at Permalink Reply 1 Attachment
JennyDillBrown
Okay. But, here's all that exists in that folder (see screenshot attachment).

Which of those am I supposed to edit? And, how? I don't see any places in these files where there is anything URL related.
JennyDillBrown replied on at Permalink Reply
JennyDillBrown
Also, how are there no posts about this with regard to 5.7? Is it that new!?
hutman replied on at Permalink Reply
hutman
5.7 is that new and the documentation is not complete, that is an ongoing issue with users, but something that is being worked on.

What exactly are you trying to do?
JennyDillBrown replied on at Permalink Reply
JennyDillBrown
I am moving my site up one directory on the server—from the /dev site to the home site.

Here's what the code for both pages look like. This one is database.php:

<?php
return array(
    'default-connection' => 'concrete',
    'connections' => array(
        'concrete' => array(
            'driver' => 'c5_pdo_mysql',
            'server' => 'localhost',
            'database' => 'uniqu118_conc230',
            'username' => 'uniqu118_conc230',
            'password' => '7SLP[!V18z',
            'charset' => 'utf8'
        )
    )
);


This one is app.php

<?php
return array(
);


There seems to be no instructions/tutorials about how to move a site like this for 5.7.3.1 right now, and I am inexperienced enough to think I'm just bats.
hutman replied on at Permalink Reply
hutman
If you turn the cache off, turn pretty urls off, clear the cache (even if it's off) and move the site files, what happens?
JennyDillBrown replied on at Permalink Reply 1 Attachment
JennyDillBrown
I thought I had done that (I know I've done all of it except for maybe shutting off the cache), but I just realized that I have no idea whether the cache is off or not. Here is my cache settings page in my concrete5 dashboard. (See screenshot attached.)

How do I know it's "off" with all that?
JennyDillBrown replied on at Permalink Reply
JennyDillBrown
Waaaait! Whoa!! Somehow, my site just appeared. I don't even know how that happened.

Whaaaat? Amazing. Well, heh. Uh . . . thank you!
JennyDillBrown replied on at Permalink Reply
JennyDillBrown
I went to enable "pretty URLs" on the new site, and it said it wasn't able to automatically update the .htaccess file. Sooo . . . I may struggle with this bit, now, because I realized I couldn't find that file before.

C5 even generated code for me to change it myself. Any clues as to how I can locate that sucker? It seems to be hidden on my cPanel.

Here's what the generated code was.

<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>
hutman replied on at Permalink Reply
hutman
Ok, so the site is up, that is good :)

What you will need to do for the .htaccess is just create a file (on your desktop or wherever) using notepad and call it .htaccess (nothing before the .), paste all that "stuff" and then upload that file to your website files directory.
JennyDillBrown replied on at Permalink Reply
JennyDillBrown
This may be a dumb question, but is that a basic text file? No extension?
hutman replied on at Permalink Reply
hutman
Open a Notepad
Paste the generated code in it
Go File -> Save As
Where it says Save as type: select All Files (*.*)
Type .htaccess in the File Name: field
Save it

Now upload this file to your website files directory
JennyDillBrown replied on at Permalink Reply
JennyDillBrown
It worked! I figured out that it is actually its own extension (I selected "all files" when saving).

You ROCK! Thank you for your help today!