Drupal 7 - Migrate multisite setup to live server - php

So I have developed a drupal site long ago and now I wanted new site with same drupal 7. So I use multisite feature to develop new site. I have created it in staging server and now I want to migrate the setup to live server.
I follow following steps
Export the staging server database.
Download all the folders of drupal via FTP.
Create new database on live server.
Import staging server database to live server.
Change setting.php file with new database settings, base url and domain setting.
Change the domain name in database domain table to live.server.com
After performing this steps, I think it should run. But my guess is wrong. It gives me blank page. Even the strange thing is if I echo 'testing'; in /sites/new.domain.com/template/page--front.tpl.php its not reflecting the change.
What am I missing here? Any help will be appreciate.
Thanks in advance.
Jay Stepin.

1 - Check if you have all modules on live server
2 - Clear all cache in database , truncate all tables who begin by "cache" (you can use drush too : drush cc all)
3 - Use drush registry rebuild (drush rr)
4 - Use drush to see logs

Related

How to get running on a local dev environment from an existing and complex Magento2 project

At work we took back our existing store running on Magento 2 from an external development agency. I need to get the project running in local development (with docker).
I familiarized myself with a vanilla project from the official docs and managed to get it running by downloading the vanilla template with composer, granting the proper permissions on files and folder and running the magento setup:install command.
My question is how do one goes when kick starting from an existing (production running) project?
Do I need to run setup:install again? If I do, why?
What do I need to import from production to ensure any content or configuration created via the admin is also running on my local setup? Should I import the complete Database from production?
I know our setup is using more than just php and mysql, but env.php seems to be listing only db configuration and admin url. Where can I get the complete service configuration informations about what our setup uses?
Anything else I am missing to get started with an existing project for local development?
As someone who is running Magento 2 on a local environment myself, hopefully I can shed some light on this.
If you have a direct copy of the live site, you do not need to run setup:install again.
Ensure you have a copy of the entire Magento 2 site (you can technically ignore the vendor folder, as you can run composer install and it will redownload those files, but that's up to you). Also get a copy of the entire database. Magento 2 is notorious for copying the same data to multiple tables so something could break if you don't have everything.
What do you mean by "service configurations" If you are referring to Magento 2 extensions, that data is saved in the database, not the env.php file. env.php is only for server side configurations, such as the DB information, Caching, and things of that nature. On mine, I use Redis for site Cache, so that would be included in that file as well, as an example.
When you first unpack the site to your local environment, run composer update in the directory. This will ensure you have all the proper files installed. If you are going to run a local dev environment, set the mode to development with the following command: bin/magento deploy:mode:set developer. This will allow you to make changes and to view those changes by just refreshing the page, rather than flushing cache all the time.
All queries are replied correctly by Eric. I am also not sure about "service configurations" you have mentioned here. If this is about third-party extensions/services you can check config.php file for this.

Running Wordpress repo locally through MAMP. Assets not being pulled in

Currently I am trying to run a Wordpress repo locally for development. I am not using MAMP pro even though I still have a 9 day trail. I figured since I'm going to be using the free version for now I might as well work with that. I have my Apache & MySQL server running along with the Document Root pointing to my Sites folder where my projectName repo sits. I'm still running off of the default port of Apache 8888.
After I start the servers, I open WebStart and import my DB into phpMyAdmin. Everything works perfectly fine and the copy of my db gets imported. I then make sure that my wp-config.php file has the appropriate settings to access this db. I then click on My Website. This pulls up the content of the website. However, it does not pull in any of the assets(imgs/js/css). I receive the following errors in the console:
Failed to load resource: net::ERR_EMPTY_RESPONSE http://projectName.dev/wp-content/uploads/2016/09/logo-footer-1.png
Failed to load resource: net::ERR_EMPTY_RESPONSE http://projectName.dev/wp-content/themes/projectName/images/circle.png
And so the list goes on and on for pretty much every asset the project could possibly have. Now configuration is NOT my strong suit, and at this point I am at a loss of what could possibly be happening. Awhile ago I did follow a tutorial on how to setup my files so that I can access them in the web browser by simply typing the name of the project with the domain .dev, example: projectName.dev. I started having issues with this after upgrading to OS Sierra and it no longer works. Could this possibly be the reason as to why it is looking for these assets in the projectName at the .dev domain?
I apologize if this does not make sense. I am willing to provide anyone with any information on this as I need as much help as possible because I still need to level up my configuration skills. Let me know if you have questions.
The images and other assets are referenced with an absolute filepath (i.e. the URL of the server on which you first set it up). This has to be changed in all database entries. There are tutorials for this on the net, but the most simple version is to open the sql file in an editor and search & replace the general URL part in the complete database.
Be sure to keep a backup of the file - that might not work on the first try...

wordpress website server configuration local system

I would like develop and test my wordpress website on windows xp system.I'm unable to set Wordpress in my system, please help me to find a suitable phpmysql server which supports wordpress on windows xp. I've already used uniserver, phpmyadmin, and esy php but they are not worked well.I am new to this and any help will be appreciated
Thanks
You can try Xamp, Wamp for windows, and if you already have prebuild wordpress then you have to make sure that the migration is done properly.
For migration there lots of plugin available to that use one of them.
Or just change the host file with same domain name, so that you can test your wordpress site without any migration burden.
Bitnami wordpress is a very easy way to get set up on windows. It comes with the whole stack to get you set up and is installed in just a few minutes without any command line usage. https://bitnami.com/stack/wordpress

Migrate a Drupal Site with AWS

I'm trying to migrate a open atrium (based on drupal) site to a new AWS EC2 instance.
I was following the steps of migrating a site from http://drupal.org. I'm sure that the settings.php and new database is configured right. But when I try to open the new site it always shows a blank page. Can anyone help me identify the problem?
Ps, I did try a fresh install and it works fine.
You need to make sure that the security groups are defined correctly for your EC2 instance (for example, that port 80 is open...).
If you're using different instances for apache and the database - make sure the security groups are also configured properly for those.
Also, try and use an amazon instance of the same distro as you're using before migrating (e.g. CentOS, Ubuntu, ...), and make sure the settings.php and new database are configured as they should.
Alternatively - you can try something like http://www.ravellosystems.com - it will let you use VMs which are 100% identical to the ones you're migrating from, or even just upload your current VMs.
-- Full disclosure - I work for Ravello Systems.

Joomla Database Problem

I am a beginner to Joomla, I have installed Joomla 1.5 in my server with Fantastico including sample data, also i have installed joomla in my local server. I Don't know how to upload this project from local to real server, when i completed my project , i have exported my database and import this Database in to real server after deleting all tables from real data base. But everyday this database data automatically changed to old sample data? I don't know how to fix this problem. Please any one help me!!!!!!!!
I've never used Fantastico to install Joomla, but:
To copy a Joomla installation from a server to another you'll need to:
Copy the content of your webroot (be careful about permissions)
Adjust the config parameters from the config.php or through the admin panel
Dump the database from the old website and import it into the new one.
My feeling is that you're trying to "install" Joomla again on the real server, and during the installation you're confirming the creation of the sample data (this will override the existing tables).
Are you sure you're using the right database name in your real server? Maybe you have two or more...

Categories