Wordpress website can be acces outside LAN, but no internally UBUNTU SERVER - wordpress

So I have a problem and I do not really think it has anything to do with the apache2 settings.
I have installed a wordpress website on my local server computer.
Now, I can acces phpmyadmin and anything BUT the wordpress websites.
This ofcourse makes me think its WORDPRESS and not the webservers fault.
Permalinks in wordpress are set to www.mydomain.com
Im trying to load the website from: 192.168... Localhost and my external IP. but it just sits there loading.
And when I try to acces the website from my phone/outside the local networks, the website works completely fine!
I have been working on the website for a while now and I can't really do a re-install.
Anyone know what could cause this problem?

Related

wordpress on apache2 not display correctly css only on windows host

I did a recently installation of wordpress with apache2 on ubuntu server . The web can be displayed correctly on any host just display the html
I am new in the web world, so I don't have much skills in it
I was looking for and I suspect is a css problem compatibility
In windows host I have the following
windows browser
I tried with all the possible wk , clear my cookies,other browser . etc
without results
Both machines live in the same network with the web server
Hope you can give some ideas
Thanks
I finally found the problem.
When I was inspecting the page with google. I saw some objects like wp-config.php is not working, It have a message of resources can not be loaded, connection refused so I change the address url and site url on the wordpress configuration to my domain, and I enter on the web server(ubuntu) a entry for my domain in /etc/hosts with the local ip of my webserver

AWS EC2 instance showing IIS Page on Public IP even though localhost shows WAMP

I created a Windows 2016 Base EC2 Instance and installed IIS on it. But soon realized that I have to run WAMP to host PHP sites so I installed WAMP and stopped IIS service and everything was working fine.
Then I made a few changes to the site (It's a Wordpress site) and published it and since then the public IP is showing IIS page.
I have tried renamed iisstart.html to iisstart (to trick system into
thinking the file doesn't exist) from IIS folder but the public IP
is still showing IIS page.
I have tried restarting the instance machine. Localhost is showing my wordpress site but public/elastic IP shows IIS.
I have tried restarting WAMP, no luck.
I don't know how is it possible that IIS page is shown even when the file is renamed.
I have tried creating an Elastic IP as well but didn't worked.
Ok! So the issue is fixed! Now posting solution for anyone who will reach here (maybe my future self)
There was no issue with AWS EC2 or WAMP. The issue was in importing Wordpress.
When I imported Wordpress the Site Address and Wordpress Address changed to localhost. Due to which the IP was redirecting to localhost of destination machine.
Solution:
After you import your Wordpress, goto wp-admin -> Settings (in Side Bar)
And change the Site Address and Wordpress Address to the public/elastic IP of your instance.
Then clear Cache/Cookie on your destination machine and revisit the IP. It should work. (It did in my case)

Local valet wordpress site redirects to real site

I used to use MAMP to locally host my wordpress website and it worked fine.
I recently started doing Laravel development so I use homebrew and valet. (which apparently interfered with MAMP because it stopped working, I'm still new to that whole area, so now I have to use wordpress with valet)
I was able to connect to my website using mysite.dev and I could see the homepage but without any date because the database was empty. Then I imported my database and now when I use mysite.dev in any broswer, it redirects me to www.mysite.ca (the actual website and not the local one).
I did do the command valet park in my wordpress repository.
How can I possibly fix this ? I suspect it's some setting in wordpress but I can't even access my local wp-admin.
You might try adding the following to your wp-config.php file.
define('WP_HOME','http://mysite.dev');
define('WP_SITEURL','http://mysite.dev');
This forces WordPress to recognize your current domain.

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?

Drupal Multisite, MAMP and SVN Best Practices?

I successfully set-up Drupal Multisites with:
site1.domain.com
site2.domain.com
site3.domain.com
using Virtualhosts and editing the etc/hosts with MAMP on my localhost. I then deployed it using SVN (it deploys automatically) on the live site.
The Problem: when I type "Site1.domain.com" because it goes to my localhost instead of my live site. Is there anyway to avoid this? (apart from renaming the subdomain, because it speeds up deployment)
Just check your virtual host settings in httpd.conf file, are you using IP address to redirect them?
And if its directing to your localhost, just check your host file, if might be redirecting because of that

Resources