I moved my wordpress site from local host to a live server. The problem is that all links from my nav won't work as the home button.
live site url: http://iulian.cablevision.ro
broken link example: http://iulian.cablevision.ro/about/
this is the error that i get:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root#localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/2.2.27 (CentOS) Server at iulian.cablevision.ro Port 80
I tried to use the a comand in SQL on my database to update urls:
UPDATE wp_posts SET post_content = REPLACE(post_content, 'localhost/wordpres/', 'www.iulian.cablevision.ro/');
And I also tried to use the Velvet Blues pluginbut that didn't work as well... Is the another way to manipulate the database so my links will work properly?
I folowed the tutorial from http://www.wpbeginner.com/wp-tutorials/how-to-move-wordpress-from-local-server-to-live-site/ but seams to not work for me... Wher is my mistake?
first go to files and rename the htaccess file and then check your live site .it will help you surely.and if you have any issue regarding please descibe in detail
For fixing all links after database migration, I use this tool. After downloading, rename folder for example searchandreplace, add this folder to the root of WP site, access it www.yoursite.com/searchandreplace, and then enter the old site name and in replace input write your new one, but be sure that they both use same convention wording, if you write old site name www.oldsite.com, then new one should be www.newsite.com too, not http://* or something else added. Hope this helps if the problem still persists.
Your old server is not only in the WP_POSTS table, but also in other tables. See here how to move your wordpress site:
http://codex.wordpress.org/Moving_WordPress
Download your existing site files.
Export your database - go in to mySQL and export the database.
Move the backed up files and database into a new folder - somewhere safe - this is your site backup.
Log in to the site you want to move and go to Settings > General, then change the URLs. (ie from http://example.com/ to http://example.net ) - save the settings and expect to see a 404 page.
Download your site files again.
Export the database again.
Edit wp-config.php with the new server's mySQL database name, user and password.
Upload the files.
Import the database on the new server.
First you need a .htaccess if you are using permalink other than default structure copy from here
Now that you have .htaccess try this
Re save permalinks
Check that your server has mod_rewrite enabled
I finaly found the solution. It was the .htacces file the problem... The first mistake I did was that when I was uploading the .htacces file to the server it uploaded as simpe .txt file and the conversion to htacces file type didn't turn. So what I did:
crated a simple text document with no name and uploaded to server
after i uploaded the file i changed the name into .htacces so then the file conersion kicked in.
After that my links worked flawless.
Thanks for the suport you guys gave me btw.
Related
I have this weird problem with my Wordpress Website. I worked on localhost and afterwards I tied to get my site online but i modified some configuration files and i don't know witch one is the fault. I am using XAMPP. The website right now is seems to not load js and css. Also on console log it gives 404 error for not fiinding the files it needs.
Landing page:enter image description here
Another Page:enter image description here
do you use gzip compression or such as it? if yes try to disable it, and make sure you have the right path
First, check that the file permissions are correct.
Also, if you have changed anything on your .htaccess files, overwrite them with the default ones: https://github.com/WordPress/WordPress
Also it's always a good idea to go to the permalinks page (/wp-admin/options-permalink.php) to update the links of all dependencies to the new URL.
I made a backup of site through cpanel-ftp and also made a backup of database through phpmyadmin.
Now I copied all site files in c:\xampp\htdocs and also imported database in localhost phpadmin ( changed site url\homepage url to local host as well)
I also rechecked my database name through wp-config.php file , everything is ok there.
whenever I try to access my site it gives me following errorError establishing a database connection
AND If i try to access installer.php then I get this error
[0B
The archive file size is currently 0B and its estimated file size should be around 142.6MB. The archive file may not have been fully downloaded to the server. If so please wait for the file to completely download and then refresh this page.
This warning is only shown when the file has more than a 10% size ratio difference from when it was originally built. Please review the file sizes to make sure the archive was downloaded to this server correctly if the download is complete.
Name: 20180403_defenceviewapartments_1ba487c8a8d788096778180403085830_archive.zip]2
Topic is quite old, but I have had the same problem, and none of the replys was right. I have solved the problem, which is actualy very easy when you know how :-)
If you have cPanel go to PHP selector --> Tab Options and set post_max_size to 512M .
Or in PHP.ini set post_max_size=512M
Thats solved my problem.
Download your website folder, export your database, Put the folder in xammp and import the database, in wp_config.php change the directory to the new database, user, password. In the database changes in the wp-options table the url and home site attributes for the new link. And its done
Ps: import the data base with phpmyadmin
I am pretty new in WP (I came from Joomla) and I have the following problem trying to import an old WP blog (made using WP 3.5) on my local web server.
I have put the old blog foder into my www Apache directory and then I have imported the database on my local MySql DB.
After, I went into the wp_options DB table and I have change the value of the option_value field related to the rows home and siteurl putting in them the correct address (on my localhost web server)
Ok, it's seem to work fine: I can see my website and the articles on it but now I have the following problem:
If an article contains an image, I can't see this image and if I open it in the browser, I get the the following error message: 404 Not Found
Not Found
The requested URL "/it/wp-content/uploads/2012/10/Andrea-Alfieri-chef-bassa3.jpg" was not found on this server.
And in the browser address bar I have the following wrong URL:
http://www.myOldWebSite.it/it/wp-content/uploads/2012/10/Andrea-Alfieri-chef-bassa3.jpg
It is wrong because it is related to the old website URL and not to my localhost website.
I think that must be some wrong settings on my database and that I have to change it but I don't know what I have to change
Can you help me? Some ideas?
Tnx
Andrea
Three things to try. change settings->permalinks to default - you can change it back later.
also in settings->general there is a fields called Wordpress Address and Site Url
then open your db.sql file in a text editor like sublime text or notepad++ and do a search and replace of the old url to the new local url. Then re-import the edited db.sql file into the the database on the new host.
This has worked for me in the past when moving WP from one host to another.
In database in table of posts (example: wp_posts ) guid is the url of specific image
you can update this table :
UPDATE wp_posts SET guid = replace(guid, 'http://www.old-domain.com','http://localhost');
I hope to help
You seem to know what your doing in terms of migrating your blog.
I would assume that if you went in to the settings->general section, both the URL's will match the new URL of the local server. Judging by what you have mentioned in the question.
Providing when you access the blog and then access the Dashboard the URL remains that of the local server then ,most likley everything is as it should be.
Another thing you can try which I have done before to resolve issue when migrating is to use the Wordpress search and replace plugin. This simply checks all tables for any instances of the old URL and replces this with the new one.
Make sure to backup the database before using this tool. Here is the URL for the plugin.
http://wordpress.org/plugins/search-and-replace/
Hopefully this will be of some use to you.
im working with scriptcase php code generator and as i build up my project, i uploaded it into my account in siteground.com. Now, i try to open it from the browser using mydomain.com/project_folder and it needs the initial configuaration.. all well till now, the prboblem starts when i get to the 3rd step where i need to setup or edit my db connection.. here it shows me this:
"404 - Not Found
The page you are trying to access does not exist.
If this error persists, please contact the website webmaster.
If you are the webmaster of this site make sure that:
You have uploaded correctly your files to the public_html directory which is the web-root of your account;
You have not misspelled the URL. Bear in mind that letters are case sensitive and no blank spaces are recommended;
In case you have applied SEO - SEF URL rewrite rules, make sure you have renamed the htaccess.txt file to .htaccess. If there is already a non-empty .htaccess file, check it and make sure the necessary rules are uncommented."
.. and, when i click on the rename connection, it shows:
"Rename Connection
There are no connections saved on the production environment."
none of these reasons is the one causing the problem..than what should i do??
thanks in advance!!
Not sure about siteground but important to give all files in the _lib directory of your app 777 permissions while you are setting it up
Also SC heavily uses sessions -- make sure you clear all cookies in your browser when moving from one SC app to another
I've just upload a WordPress project into a web server. Everything went fine with the exception of the User-Photo plugin. The problem I'm having is that its doesn't seems to find the basedir path. This is the error:
Upload error: Unable to place the user photo at: /var/www/clients/client2/web4/web/arsoblog/wp-content/uploads/userphoto/1.jpg
First of all, I don't know where this path is. Even on the local server, where the site is working good, is using the exact same path, which I can't find.
Maybe someone of you knows what could have changed from one server to the other. By the way, the blog is inside another site in the web server, which is developed using CakePHP.
EDIT --- I'm having the same problem with all the uploads!
The problem is in your upload directory. When we develop the WordPress site in localhost, the default upload directory will be point to your localhost only. When you move to online server, this directory path will not change.
To override this do the following steps:
Login to your cPanel/control Panel
Go to phpMyadmin
Select your database.
Go to wp_options table
On the second page (around 58th row) Edit 'upload_path'(For the first time this row may be blank).
Give your correct directory.Eg: /home/username/public_html/folder-name/wp-content/uploads
Change "username" and "folder-name". Username is usually the username you use to login to cPanel, or your domain’s control panel. Folder-name is used for the sites hosted in subfolders. If you hosted the site in root folder, remove it.
Here is a detailed tutorial How to move wordpress to a new server or host.
If you already used WordPress uploader in localhost, you need to do a search in wp_posts table and replace your localhost reference to your live site's reference. There are some plugin available to do these search and replace in database. Check this one
Hope this will solve your problem.
777 permissions are dangerous and not the correct fix for the issue. You will get hacked with 777 permissions. See Hardening WordPress « WordPress Codex
For solving this problem you have follow some step,
*Login to your cPanel/control Panel
*Go to phpMyadmin
*Select your database.
*Go to wp_options table
*On the second page (around 58th row) Edit 'upload_path'
*Give your correct directory.Eg: /home/username/public_html/folder-name/wp-content/uploads
then you shift your server See tutorial
for more
http://www.techyv.com/questions/error-when-running-wordpress-new-server