wordpress on apache2 not display correctly css only on windows host - css

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

Related

Wordpress with LiteSpeed shows 404 when trying to access it by my new domain

I have created an instance of wordpress with open LiteSpeed cache in Digital Ocean droplets, it works fine if I have the IP configured in the Settings/General Site and Wordpress URL, but when I add my dns name, starts popping up 404 everywhere. The screen reads:
404
Not Found
The resource requested could not be found on this server!
Proudly powered by LiteSpeed Web Server
Please be advised that LiteSpeed Technologies Inc. is not a web hosting company and, as such, has no control over content found on this site.
I believe the problem is in this LiteSpeed, which don't seem to be clever enough to figure that there is a new domain configured? Unfortunately restarting the LiteSpeed web server did not help...
Any ideas?
You have to access the OpenLiteSpeed Console, you can find the password for the console in the .litespeed_password file in the root's home directory on the server.
You also need to allow your IP address to be able to connect to the console, you can do this simply by executing ufw allow from <your_home_ip_address>.
Also documented here: https://docs.litespeedtech.com/Cloud/wordpress/#web-server-control-panel-access
When you're within the Console you can go to "Listeners", here you'll find two listeners, one named "Default" and one named "Defaultssl".
On each listener you have to modify the "Virtual Host Mappings" to use your domain under "Domains" - after this restart OpenLiteSpeed, and it should no longer return a 404 when you access the site via your domain.

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)

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

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?

Being redirected to 127.0.0.1 from Wordpress/Apache installation with AMPPS

I have installed AMPPS (Apache + MysQL) with Wordpress on a Windows 10 computer to quickly setup a website. The website is working fine locally.
Now, the problem that I have occurs when I try to access the website from another computer.
When I enter the server IP ( http://219.223.239.3/ ) on another computer, a main webpage show with the main directories:
This indicates that the other computer can connect to the server.
However, when I try to access the WordPress subdirectory on the server ( http://219.223.239.3/wp/ ), it redirects to http://127.0.0.1/wp/ and the webpage does not show. Hence, it seems that there is some configuration problem with WordPress or Apache.
To try to solve the problem, in Wordpress, I went to Settings>General, and I have set the "Wordpress Address" and "Site Addresss" to http://219.223.239.3/. Moreover, I have edited the Apache configuration file to change "ServerName" to 219.223.239.3:80. But it still does not work.
Otherwise, all the settings should be the default settings of AMPPS.
I am not very familiar with Apache.
Does anyone knows how to solve this issue?
Check the wp-config.php file in the root of your wp folder. I had the exact same problem and it turned out the credentials for establishing a connection to the MySQL database I had running locally were incorrect.
In the Ampps management console (typically located at localhost/ampps/ in your brower), open up PHPMyAdmin and check the user credentials for the database connection.

Wordpress Blog system display setup problem

I had followed all the installation step on the wordpress.org and working fine on the host machine . Everything including image ,flash, text can be display on the Host pc. However, when i try to connect the hose via local IP(eg.192.168.0.112) from another LAN PC. In come out only shows words On the local PC. No image no flash at all..
Can't find any info on the web anyone who know how to fix it please help
Solved.. -_- very simple question
it is just because the wordpress engine try to load CSS from Localhost/wordpress/.../default.css
it should be load from the host machine. which is /192.168.0.112/wordpress/.../default.css
so go the the admin setting
type in your wordpress address and site address with ur local ip
it should be working

Resources