Hello

I'm moving hosting sites from a basic hosting account to a cloud VM. I have a website that was developed using drupal 7.10. I've setup LAMP and phpmyadmin. Now I'm not sure how to upload the new site. I've uploaded the files for the new site to /var/www. I then changed the mysql db settings in the /var/www/sites/default/settings. I'm now just getting the phpinfo screen although I'm getting the favicon. I'm not quite sure what's happening here.

TIA

Comments

sovtek’s picture

Just some more info. I'm moving to a Debian Squeeze LAMP stack with Apache /2.2.16, Mysql 5.1.49-3, php 5.3. Any more info required just ask. Thanks

Road Runner’s picture

Possible your hidden files didn't get moved those that start with . dot Things like .htaccess are critical.
I suggest you move a drupal 7 tar and expand it into your new public_html or www folder or whatever it is called in your cloud. Be careful not to replace your sites folder since that is the heart of your system. Then run update.php just for heck of it.

Actually, you might run update.php prior to doing all the above.

sovtek’s picture

Thanks for the reply. Sorry but how do you run update.php exactly?

Many Thanks

Road Runner’s picture

http://yourwebsite.com/update.php will run it and this should be run anytime you manually update a module too. In D7 the auto update runs this for you.

sovtek’s picture

OK I ran update.php and I actually took a step backwards. Before I was getting the favicon of my site and the php info. After running update I'm not getting that now. I then copied over .htaccess and .gitignore from the old site to no avail.
Are you saying I should expand the drupal tar and then run the install? Would that not overwrite the old sites files?

Road Runner’s picture

Only if you write over the old sites folder. That is the only folder you keep from your current installation.
Another tedious method would be do a complete fresh install into a pristine database. Then copy all your modules and themes and files and images into appropriate folders in the new installation. Then using phpMyAdmin import your old data base into the newly created database then run update.php

myke’s picture

Did you update your database settings in the settings.php file, located (usually unless using multisite) at sites/default/settings.php ?

And imported with phpMyAdmin the database export from the old server...?

Also, are you sure about the file location, some servers may user /var/www/html or other directories..

sovtek’s picture

Thanks
I did change the settings.php to point to the db on the new site. I also exported using phpmyadmin from old site and imported using phpmyadmin to new site.
The /etc/apache2/sites-enabled/000-default file sets the DocumentRoot as /var/www


ServerAdmin webmaster@localhost

DocumentRoot /var/www

Options FollowSymLinks
AllowOverride None


Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all

ErrorLog ${APACHE_LOG_DIR}/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/access.log combined

Alias /doc/ "/usr/share/doc/"

Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128

sovtek’s picture

ok I did a fresh install of Drupal. I then imported the db again and did update (said everything was updated). I was then getting "index not defined" errors but could see the website banner and one story but thats all with no other formatting (no blocks/pages etc). I also can't login to administer drupal. So I then moved over the theme directories from sites/all/themes/*. I also moved over sites/all/libraries dir and sites/default/files/ dirs and .htaccess. I did another update and got rid of the "index not defined" errors but still can't login and the site only has the banner and one story with no formatting. Any other ideas?

TIA

sovtek’s picture

I did another import of the db and I now have a site! Woo Hoo! Thanks for the help

zoevillalba’s picture

I also feel the same, I moved some juegos online sites and gives me a strange error.