I made a site in drupal 7. I was pretty happy with it. There were a couple things left to add but I wanted to start letting users on today. So I read here and elsewhere that you can move the files from the directory to the root directory.

It didn't work. I then tried to make a copy back in the old directory. Now going to either url will show the front page, but the one in root can't link to anything, not even the drupal admin stuff, and one in the /drupal directory is missing everything else but the admin pages stuff. I did some work with the CSS Injector to make it look how I wanted, all that seems to be gone now.

Reading more on here and elsewhere looking for a fix, it seems there is a change suggested in .htaccess. My file, in both directories, is empty. In settings.php, the base_url definition is commented out. Defining it does nothing to help the site in the drupal directory. I can't seem to be able to grant myself permission to edit the one in the root directory.

This is pretty frustrating, but I'm still hoping nothing has really been lost. Can anyone help me?

Comments

cauzality’s picture

i installed it using softaculous... if that's important

narendraR’s picture

Check if you have permission to edit / upload files on server.
.htaccess file should not be empty. You can replace your root .htaccess file with a fresh downloaded .htaccess file.
Also check settings.php file for database connection.

Let's Drupal

cauzality’s picture

I found a fresh copy of .htaccess and that has both pages linking to pages properly again - thank you - but there are no images and i can only log into the /drupal site, not the one in root.

What you said about "check settings.php file for database connection."... how would i do that? It looks identical for both versions of the site I now have.

cauzality’s picture

thanks for your help. I figured out the remaining issues. The file permissions on sites>default>files were such that I couldn't write to them. When I moved the files, I didn't get these and apparently lost them. I didn't get them back when I copied the moved files back so I had two copies of the site. Luckily I compressed my root directory and downloaded it to my computer so I could compare the files now to what they were.

For some reason I had all my sites image files in that folder as well as a copy of .htaccess and the css_injector_1.css file. I changed the permissions, copied the files back, and it all appears to be working. I logged in with diferent accounts on the separate sites and could chat with myself :)

Thanks again. This is a huge relief!

narendraR’s picture

Glad to help you. :)

Let's Drupal