Why is WAMP opening localhost homepage, static html but not wordpress site? - wordpress

I have lost myself trying to setup WAMP in an effort to download a wordpress site. I had done this before but decided to reset my computer. Somehow I can't do it.
I copies static html to www directory and the site opens well. Wordpress also loads as long as the wp-config.php file is unaltered. (error establishing a database connection). As soon as the wp-config file is setup and made ready, the local host directory returns "Error connecting to the site" warning.
I have a feeling this might have to do with the php setting or sql but I do not know what to do. I have tried every search topic.
Sad thing is that I had two website perfectly set up following youtube tutorials just a few months ago. And now I can't do it.
Anybody here?? x

Related

Transferring site to an ubuntu 16.04 server

I am attempting to transfer a website from a bluehost server to an AWS ubuntu 16.04 server. I have moved ~12 sites to the new server without any problems. one site in particular won't transfer properly. This site is adental.ca.
how it should look
This link shows how the site should look
This link shows how the site currently looks
Broken image
Methods I've tried to transfer it are as follows
1.Through the WP all in one plugin
2.Importing the site through Filezilla FTP, and uploading the database.
3.Running a backup on all in one plugin, downloading the file, and uploading the file through ftp. Then restoring.
4.downloading the files through the bluehost portal and uploading them onto the new site.
I believe the files may be being corrupted as they are being pulled off the bluehost server, But I had the site working for ~1 day. It worked on several computers so it wasn't just the fact that the site was cached. But it reverted back to being broken after the day. Any suggestions would be helpful
The issue was an activated plugin that had a set path that it drew files from. When the site was transferred, this set path had moved. The issue was resolved by getting rid of the plugin.

need assistance on my local wordpress

I just finished building my basic website using wordpress and wamp. installation directory is at C:\wamp64\www\wordpress and i'm currently accessing my site at localhost/wordpress
now i have 2 problems:
1. how can i trick my localhost to use http://www.tracking-site.com instead of localhost/wordpress? I tried changing site and wordpress address but all i get is page not found.
after changing my url, i am planning to access my local wordpress (which will now be http://www.tracking-site.com) from another PC.
2a. do i need to copy all the wordpress files to pc#2?
2b. do i need to install wamp to pc#2?
edit: i can skip problem #1 if changing site url is not important. cause my main target here is to access my localhost wordpress from another PC with same LAN. I tried adding tracking-site.com in hosts file to redirect to 127.0.0.1 then in PC#2 added in hosts file 192.168.x.xxx (my ip) then tracking-site.com. not working tho.
I don't want to host it online because my website will only be used internally in my workplace.
This should work, haven't done it in Windows in forever.
Set your site to a different URL, this is probably a bad idea honestly since WP hardcodes a lot of urls like the images, you can get past this by using wp-cli.phar to search and replace in the db but that's not a simple procedure either.
That being said it can be done.
Right click Notepad and open as administrator.
Click Open and change the file type to all files.
open the following file: c:\Windows\System32\Drivers\etc\hosts
Add the following line: 127.0.0.1 www.tracking-site.com
Question 2. Is answered here: How to access my localhost from another PC in LAN?

How to restore local wordpress server from cash?

I'm fairly new to development and have been trying to create my own wordpress theme. While editing the theme today I made a mistake in the code and now the wordpress page won't load at all. It's just a white page and I can't even access wp-admin. I have wordpress installed locally with Bitnami.
I've researched how to fix this wordpress crashing problem and everyone keeps saying with FTP. But with a local server, from as far as I can tell, I don't think that works. I'm using Cyberduck and have tried to enter the IP address of the local server wordpress site to access the files but Cyberduck doesn't pull anything up. I have also tried stopping the server and starting it again and this doesn't help.
How do I recover my wordpress site from a crash when it's stored on a local (Bitnami) server?

Problems in migration from localhost to my online webserver of a WordPress website

I am finding some problems uploading a WP site from my local web server to the official online web server.
The situation is the following , on my local web server:
I have installed WP website on my computer
I have configured it
I have installed custom a template
After, I have uploaded this site in a folder on my official online web server. I have took the local database export and imported in the online database using PhpMyAdmin (to export the local database on a file and then to import it on the online database)
Finally 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 are two problems:
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: [code]http://localhost/wordpress/?p=81[/code]
If I try to open the administration panel opening this URL: [code]http://www.scorejava.com/wordpress/wp-admin/[/code] I obtain a white page
I don't know if these two problems are related together 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?
Look into this: http://codex.wordpress.org/Moving_WordPress
There's a link on there for a "Search and Replace for WordPress Databases Script" tool that's very handy (make sure to read the instructions and have a backup of the db before using it). The problem is that image URL's and other things are stored in the database and will reflect the URL of the dev location. That tool will go through and properly update all instances from the dev URL to the final location.
Normally before you move a WP site you also want to update the site URL in the General settings as well, which may be contributing to your second problem.

Wordpress Multisite Not Working after Migration to New Server

I have a Wordpress Multisite which was working fine until I migrated the instance over to a new physical server.
The funny thing is that The instance itself is fine: I can get to everything except one of the sites. I cannot get to it's Admin section either, both the individual site and it's admin section come up as blank white pages. But none of my other sites do which I find rather weird.
It's not a database connection issue. I don't believe it's an .htaccess issue because i just copied over the same .htaccess file from the server that the whole instance was previously working on.
The only thing I can think of is that the Drive that Wordpress sits on is now different (D: now as opposed to E:).
I have mod_rewrite enabled and like I said all the other individual sites are working along with their individual admins.
I moved from Windows 2003 server to a Windows 2008 server and they are both on Apache Web Server.
Anyone else have the same problem or know of a way to remedy this?
A blank white page is a php error.
Check your error logs. That one site is using a plugin or theme with a conflict.

Resources