Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Drupal Acquia Stack - Have moved files to different folder, how to update site?

Tags:

drupal

acquia

Im using the Acquia stack instead of MAMP or WAMP but im using it to run a normal Drupal installation.

I imported a site fine. Ive then moved the sites's files to a different folder, and now I cant figure out how to change the site's settings.

In the stack interface, if I go to my site and click settings > Sites > Edit Then I can see the Site Path that it points to the old folder, but I cant change these settings.

Do I need to create a new site and import it again? Thanks

like image 838
Evanss Avatar asked Mar 23 '11 12:03

Evanss


3 Answers

I was looking for this answer, and digged out into acquia install folder. Here is what I did to change Site Path at acquia desktop interface.

Don't forget to make a backup just in case.

There are 4 files to attend to:

  1. Open and edit static.ini and dynamic.ini under your AcquiaDevDesktopControlPanel at Program Files/acquia-drupal install folder. Maybe different on Mac.
  2. Edit siteDir at static.ini
  3. Edit selImportedSiteCodebase and codebaseDir at dynamic.ini
  4. Edit httpd.conf at apache folder to use your new document root. There are 3 or 4 locations to change there
  5. Edit vhosts.conf to reflect your new locations

You have to run the notepad as administrator.

Its seems that changing only #4 + #5 don't hurt my sites, these can be done via acquia interface. But changing #2 + #3 makes you feel comfortable :)

Hope that helps

like image 160
swan Avatar answered Oct 18 '22 01:10

swan


I had the same question. I'm running Acquia Dev Desktop and wanted to change the default folder of the installation from /drupal-7.10 to /docroot.

I'm running this on a Mac and after reading the posts above, I searched for the dynamic.ini and static.ini files which were not to be found on my harddrive. Checked the httpd.conf file and didn't see anything mentioned.

I ended up making a backup copy of vhosts.conf and changed vhosts.conf to:

<VirtualHost *>
  ServerName loc.MYWEBSITE.com
  DocumentRoot "/Users/dv/Sites/MYWEBSITE/**new_dir_name**
  <Directory "/Users/dv/Sites/MYWEBSITE/**new_dir_name**">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
  </Directory<
<VirtualHost>

Refreshed the browser and I was good to go.

like image 29
David Vogel Avatar answered Oct 18 '22 03:10

David Vogel


I ran into this problem as well, the only way I was able to remedy was to dump the database delete the project, then re-import. Just an FYI, make sure that the settings.php in Drupal are set up correctly for the localhost setup, this was another snafoo for me.

.. I looked all around the Acquia files to try to find a place where it was storing this information first but could not find it

like image 1
user379468 Avatar answered Oct 18 '22 01:10

user379468