I'm trying to make my wordpress website available for others to see using WampServer and ngrok. But when I expose local server to the Internet with 'ngrok http 80' all that people can access is the WampServer admin panel. When they click my wordpress project they get redirected to localhost/wprdpres directory instead of the custom link provided by ngrok.
I can also say that it worked perfectly before I installed a new theme. Is there a way this could have any influance on that?
Some screenshots:
Related
I have a website running on node/express as www.example.com. It is running on ubuntu server. I am new to WordPress and trying to set up WordPress so that I can create blogs on www.example.com/blog.
I have created a new directory as blog under public folder and installed WordPress in it.
I have also setup MySQL and everything, but www.example.com/blog is showing an error Cannot GET /blog/.
Can anyone please here, tell me how to fix it. Or, how can I setup WordPress for blogs on existing non-WordPress website?
You would have to set up php server and a compatible SQL db. And point www.example.com/blog to that server. Depending on how you've set up the server, pointing to /blog would turn out to be different.
You could for instance use npm module http-proxy to do proxy redirect from the node express server to wordpress once that's up and running.
I'am new to the WordPress and I created WordPress website and configure it within the Wamp Server. The site displays all it's contains locally correctly. Now I want to access that website from the another machine within same network but it did not display all the contents correctly. it displays only the text. no images and the applied theme is not displays. I turn off the firewall and change the Apache configuration file (httpd.config) as follows. but it also didn't work properly. please help me.
Order allow, deny
Allow from all
The problem is that you specify during install that the hostname of the site is "localhost". Unofrtunately when you connect from another computer the link to "localhost" refers to the pc you are connecting from and since in this pc there isn't any server runnin,g you see only the text and not the images or the css.
The solution is to modify the wp-config.php wordpress file and change this from:
define('DB_HOST', 'localhost');
to:
define('DB_HOST', '192.168.0.4');
The problem is with URL of the site. You need to update the URL in database and replace localhost with IP of your machine using phpmyadmin and then that site will be accessible from other machines in your network. Please try this and it will solve your problem.
This is a WordPress oddity. When you install WP on localhost, or anywhere, it stores the url used in the install in its database. It then uses this url internally in its code to build links etc.
So when you come to run this site from another PC, things like image links will be built with the url localhost or localhost/wordpress.
Now when you run this from another PC using a different URL like 192.168.0.4/wordpress localhost will still appear in the links and of course there is no localhost on the client PC. So the links dont work. Its a bit like you have moved your site to a new url, but WP does not know about it.
Read this post on the WP Codex to work out what you need to so to amend the urls in the database. OF course this means you wont be able to use localhost anymore on the WAMPServer machine either.
I spun up a Windows 2012 R2 Datacenter VM.
Endpoints have ports 21,80,443 successfully added to the dashboard.
Installed Wordpress/PHP on the VM using the Web Platform Installer.
Wordpress site works fine using localhost.
Trying to hit the DNS (mysite.cloudapp.net) or the public IP, shows just the generated version of the site below. Clicking links results in an "unable to connect" error.
Anyone know what I might be doing wrong?
By default, when you finish installing wordpress, the address URL is set to
http:/localhost/wordpress
When you browse your site with DNS, the resources file urls are still referring to like http://localhost/......
So, we need to sign in wordpress admin portal in your VM, click “setting”=>”general”, set “WordPress Address (URL)” and “Site Address (URL)” to http://<your_vm_name>.cloudapp.net/wordpress, and save changes.
If you have any further concern, please feel free to let me know.
wordpress is normally url based, make sure it's configured for wildcard or the cloudapp.net domain.
So one thing you can do is see if you can log into /WP-admin and check the home and url links under Settings>General to see if they match site.cloudapp.net. If they do you might also want to check under your wordpress's theme files in functions.php and add the following lines to the top after <?php
update_option('siteurl','http://example.com');
update_option('home','http://example.com');
I just want to learn how to build responsive themes and I installed the android emulator on win7 and all is ok when I test sites which are running on a live server. The problem is that is not working when I try to test wordpress sites from WAMP server. I'm using 10.0.2.2 instead of localhost or ip... It's working for simple html files but not for wp. It shows me a sitemap with all the site pages and when I try to click on one of them it shows me an error "The webpage might be temporarily down...".
I need to test them on WAMP server before uploading them on a live server. What should I do?... When I uplaod them on server, (the same theme), all is working. Could be something wrong with the wamp configuration?. I test it on 2 pc's (32 and 64) and the same is happening.
I found http://www.youtube.com/watch?v=ZR6E9I0PKoI video and there I see that it's working for him. What am I missing.
Thanks for your help,
Florin
UPDATE
I tested the instructions on the video and they worked fine; I was using WordPress multisite and didn't work, so I created a standalone setup and it worked :)
Here's a simple solution I tested and working for debugging WordPress themes on Android.
First you have to be able to access your localhost from your mobile, follow this instructions here.
Now you should be able to access your localhost from Android. Since WP is redirecting addresss like http://192.168.0.100/wordpress/ to something like http://localhost/wordpress/. Better create a directory on your www folder and test your html versions of styles until they suite your responsive needs.
I'm trying to set up a wordpress blog hosted from my computer using this tutorial. When I visit the site on the computer it's hosted on, via localhost or the IP of the computer, the site looks fine, but when I visit it from another computer it looks like this.
All Wordpress resources (stylesheets and images at least) use Wordpress' URL configuration. You can find it as the 3rd option down in the General Configuration page of your Admin. This is due to the way that themes are to be programmed and create the header of the blog using the bloginfo function that uses those configuration values to generate the rest of them
What is probably happening is that such URL is using either localhost or 127.0.0.1. If that is the case, when accessing the blog from your own PC it would show fine as both do resolve to the local machine. If you access it from an external PC, they would not resolve to the PC that is serving Wordpress but also to the local PC - which is not able to provide them.