0

I am finding some problems uploading a WP site from my local webserver to the official online webserver.

The situation is the following one, on my local web server:

  1. I have install WP website on my computer
  2. I have configure it
  3. I have custom a template

After, I have upload this site in a folder on my official online webserverm I have took the local database on the online database using PhpMyAdmin (to export the local databse on a file and then to import it on the online database)

Finnally I have changed the file wp-config.php changing the MySql connection settings and putting here the settings related to the official online database.

When I try to open the website it appears to me, here you can say how: http://www.scorejava.com/wordpress/

Ok...seems good but there is two problems:

  1. If you try to open an article it is not open the article on the online server but in the localhost server, infact open this URL: http://localhost/wordpress/?p=81

  2. If I try to open the administration pannel opening this URL: http://www.scorejava.com/wordpress/wp-admin/ I obtain a white page

I don't know if these two problems are related togheter but I think that all may depend due to a problem of location path...

I think that somewhere there is some settings that specify the URL (that can't be localhost...), but (if it is so...) where is this setting? in some file or in the database?

Some one have an idea? Can you help me?

2
  • localhost/wordpress/?p=81 will only work on your local machine. It won't work for anyone else. There should be no links to localhost on your live site.
    – vancoder
    Commented Mar 21, 2013 at 21:26
  • 1
    Please, don't Multi-post the same Question across the network.
    – brasofilo
    Commented Mar 21, 2013 at 21:45

2 Answers 2

0

You have to change siteurl and home in the wp_options table to your server address.

Just go to the table wp_options in phpMyAdmin, look in the option_name column for siteurl respectively home and overwrite their value in the option_value to http://www.scorejava.com/wordpress in your case.

6
  • now the articles are correctly open but I still have the problem of the withe page when I try to open the administration...some ideas about it? Commented Mar 21, 2013 at 20:07
  • I still have white page, no error message :-/ Commented Mar 21, 2013 at 20:49
  • Doh! I meant define('WP_DEBUG', true);.
    – vancoder
    Commented Mar 21, 2013 at 21:19
  • ok, now I obtain the following error message: Notice: register_sidebar_widget è deprecata dalla versione 2.8! Utilizzare al suo posto wp_register_sidebar_widget(). in /home6/onofrior/public_html/scorejava/wordpress/wp-includes/functions.php on line 2839 what means? Commented Mar 21, 2013 at 21:42
  • It means something is using deprecated code, but I don't know offhand why that explodes your site so seriously. I'm beginning to think your issue is too localized for us to be of assistance.
    – vancoder
    Commented Mar 21, 2013 at 21:50
0

have a look here

After DB upload you just need tu run the script and replace your Local URL with Online URL

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.