I developed a magento site locally and it was and still is working fine. I need to put it on a public URL to show people though so I've set it up on a subdomain.
I have uploaded all of the files, copied the database to the live server, amended the database connection details and cleared the cache and session folders. I just get a load of wierd symbols when I try and view it in my browser. It is at Click me
You can check if the settings of the webservers are alike. If it is a cloud spaced hoster ask them if their server is capable of running Magento.
Also make sure the compiler is disabled and there are no other cache modules active.
You can't "copy" a Magento database, you'll have to create a new one at your new location.
Every installation needs its own database as many variables are different...
Copy it over and amend the core_config_data table so it contains the new URLs of your store. You will also want to flush the cache and empty out any session data in the database, as it will relate to your old URLs (probably won't matter too much, though).
Related
I'm relatively new to web development and I have some serious concerns about repairing/editing/fixing live site.
I use WordPress and its DB hold also configuration, so let's say that I need to do some work on website with e-shop. I will start website on my local with current version of DB from live website. But in few hours, when I'm done, I can't just overwrite live DB with my DB from local environment, because there are some new orders, posts etc.
How can we deal with this kinds of things?
Thanks everyone who will share his advice or experiences!
First youhave to make note of all the changes you are making in the files. You have to document it properly.
Next there are actually three cases
i) When changing the files alone
if you are changing just the files then obviously no need to change the database only the files needs to be updated. First no need to hack the core wordpress files as everything can be done through "actions" and "filters" method. I mean by creating a plugin so your core files are safe. https://codex.wordpress.org/Writing_a_Plugin
ii) When chaning the database alone
if you are chaning the database instead of deleting the entire datase and reloading you can simply alter the tables using "ALTER" command http://dev.mysql.com/doc/refman/5.7/en/alter-table.html.
iii) Changing both databse and files.
Follow (i) and (ii)
I'm setting up a staging server at the moment. I copied the live db and codebase over, and I've changed the web/unsecure/base_url and web/secure/base_url in the db.
I've also updated the web/cookie/cookie_domain to staging.site.com (where the prod is currently www.site.com, and dev is dev.site.com),
I've turned all caching off by setting all related values in the db to 0. I've checked all the tmp directories on the server to see if cache was being written somewhere else, but found that it doesn't seem to be.
I've reindexed multiple times, and waited a day to see if the server was just being unfriendly with cache. I've also tried to access the domain on multiple computers using private browsing.
At first, the issue was that the site kept redirecting to the LIVE. I tried changing the admin URL, by setting the use_custom_admin_path to 1, and updating the local.xml file, which resulted in a 404 for the admin. We aren't using memcache or apc AFAIK.
Any help is greatly appreciated! Thanks!
My WordPress files are downloading instead of executing on the server. I have tried changing the server but that does not solve the issue. I am sure it is happening from my WordPress files as the hosting runs other WordPress files smoothly.
I wish I could could provide the code but that isn't needed. Please guide me. Thanks.
I have only seen this happen when:
1) PHP is turned off or not installed on the server
2) The server needs to be reset
3) File names are not correct
4) The redirect script is not redirecting as it should
5) Links are not valid
The good news is most of these can be solved by you/your host. Call your host to ask them for help on verifying the PHP install/process. If everything is good (for instance, if you have another site on the same server that is working fine) then you need to verify file names. As this is WordPress and the file names are all pretty standard this isn't exactly likely but make sure there are no unwanted spaces and the file names are "something.php". With WordPress you may see a bunch of parameters passed through the URL so "something.php?blah=blah" Is fine too (no space between php and ?).
Check the link you are clicking. The file names might be good but the link may be bad. It might be as simple as fixing all the link URLs. From what I recall of WordPress, there is a built in method of linking to pages within the same WP site. I believe these are all based off the URL in the database so you may want to verify the URL in the database/config file to verify WP is sending them to the correct place. If they are not stored in the database and are instead, coded directly into the content, you may have to manually update every link to the correct URL.
Finally, if it is script or wordpress related you may want to consider a fresh WordPress install. The good thing about WordPress is all the good stuff is in the data base:
1) Make a backup of the data base
2) Trash your WP install completely
3) download and install new WP with desired plugins and themes
4) Restore database
If the last step breaks the server again, check URLs within the database: http://codex.wordpress.org/Changing_The_Site_URL
Your Host can usually help in backing up and restoring WP databases. Even godaddy (who does not support it) will often help you walk through the process (you really want to call the hosting team. As an ex-godaddy employee, those guys are the experts).
If this isn't enough information, please provide a link to the site. It will allow me to do some quick troubleshooting to determine the overall issue.
EDIT: Help for verifying php install
Create a php file with the following contents:
<?php phpinfo(); ?>
And upload it to your site
This will make information about your PHP install easily accessible
Note: DO NOT LEAVE THIS FILE UP PERMANENTLY AND DO NOT POST A LINK PUBLICLY, YOU DO NOT WANT RANDOM PEOPLE ON THE INTERNET ACCESSING THIS INFORMATION
If you can access the file and it loads up a bunch of information in a purple (I believe it is purple) table, your PHP install is up and running. If the file just downloads like the rest, contact your hosting provider.
I'm helping a friend migrate her wordpress server to GoDaddy, and I think I may have bitten off more than I can chew... I've never migrated a wordpress before. This page here is the Wordpress wiki for moving Wordpress when your domain isn't changing. It doesn't seem to complex, but I'm terrified of accidentally ruining this website and I don't understand a couple of things on the wiki.
The Wiki says
If database and URL remains the same, you can move by just copying your files and database.
Does this mean that I can just log in to her server from Filezilla and copy all of the files on the server? What does database mean, is that something separate from the files on the server?
If database name or user changes, edit wp-config.php to have the correct values.
This sort of goes with my first question.. What initiates a database name or user change?
Apologies for my ignorance, but after an hour or so of searching around for these answers I'm left just as confused.
Last but not least, is there anything else I should be aware of when migrating a wordpress? I'm a little nervous..
You are going to need to migrate you instalation in two parts.
Part 1 you already eluded to. You will need to copy the files from one server to another. I am guessing you know how to do this so I will not dive any deeper into it. If you do need more explanation, please let me know and I will edit the question.
Part 2 is what you mentioned but said you did not understand. Copying the database of wp install. Wordpress runs off of PHP and MySQL. The "files" part in part 1 is the PHP files (along with some html and css). You need to log into his MySQL server and do an export of his database. You should be able to export the database (How to export mysql database to another computer?) and import it into his new server on GoDaddy. (Error importing SQL dump into MySQL: Unknown database / Can't create database).
Just take things slow, follow the guides that I have linked and do not delete anything from the first server until everything is working on the second. Please let me know if you do not understand anything.
if you don't feel confortable with database exports and imports, try using plugins like:
http://wordpress.org/plugins/duplicator/
or
http://wordpress.org/plugins/wordpress-move/
Check his docs for info.
Luck!
• A database is literally a data base. It's where websites (and other applications) store their data eg. For Wordpress, it would be data such as posts, user information etc.
If you are using a cPanel setup then you would need to get access to it and navigate to phpMyAdmin which is the GUI for managing a database.
Now I'm not sure what type of setup you're using but that should be a start.
• A database has a connection server address (usually localhost), a database name, username and password. These are setup at the time of setting up a database.
When migrating servers, you would need to update those details in the wp-config.php file (I think around line 19 or so).
• The annoying part about migrating Wordpress to another server is the domain change as you have to update the old domain with the new domain throughout the database. However since you're not changing domain names, it should be a smooth ride as long as the new server supports PHP and has a database.
I've been working in Dreamweaver CS4 on two computers, bot by accessing my hosting server (Bluehost) via the FTP feature in DW. Whenever I need to edit a file, I double click the file on my server in the Files Manager and it opens it with the submenu directly under the file name. Here's the example:
The issue I am having is when I edit includeA.php (which is included in PageA.php) on Computer1 and then go home to edit PageA.php on Computer2. I then save, which then saves over my changes made to includeA.php from Computer1.
Essentially, Is there any way to automatically update included files when opening a file? Or even when I start DW, updating all of my files in a certain directory? I believe I have tried refreshing my working directory before I edited includeA.php, but that did not help...I think... I have set up a test for this and will be testing by my return here (Computer2) tomorrow.
Any ideas? Thanks all!
Maybe you want to use a revision control system that solves your problems. git?