Centos 8 apache test page - apache

I have a clean instalation of centos 8 server with the LAMP services installed.However I can only access the apache test page on the machine and not from the network.When trying to open the page the browser shows error in connetion.I have an old server running Centos 6 which everything is running fine. even switching the IPs of the servers the new server still cannot open the page.
What i have done so far
Configure httpd.conf to listen on port 80 on the ip address of the server.
Temporarily disabled server firewall.
When i check the apache logs i can only see the logs from when i access on the machine, nothing is generated when i try to access on the browser.
Copied the http.conf file from the old server to the new server to no avail
Can someone point me in the right direction.

Related

Apache running on XAMPP, but localhost is not reachable

I installed XAMPP and started the Apache Server and MySQL. However, if I try to access https://localhost/, it just shows a blank page in Firefox. I am on a Windows 10 machine. I already tried to change the localhost port from 80 to 8080, but it says that it cannot open the page this way.
Any ideas what the reason could be?

Bitnami djangostack Not serving any pages degault/app

I am new to cloud jargon. I initiated a GCE instance sometime back and installed bitnami djangostack. It all worked fine.
One fine day due to some issue instance restarted and changed my server IP.On typing new IP in browser Apache2 Debian page was back.This previously showed Bitnami default page.
I restarted each service using /opt/bitnami/ctl script but apache was not running.
Searched and changed default port to 8080 and from 443 to 8443 in httpd.conf file.
Apache started. But still when I type on browser new server IP - I get connection refused error.Also cannot load any apps using http://serverip/Project/ which previously used to work.
Apache Error log says
localhost:8443:0 server certificate does NOT include an ID which matched server name.
Searched and changed below in /apache2/conf/extra/httpd-ssl.conf
ServerName to localhost from www.example.com
But nothing is working and I still get same error.
Can anyone help.

Ubuntu 14.04 with Apache 2.4.18 and 2 sites configure

I have a new Ubuntu server, on the old server (12.something) we had api.mysite.com and portal.mysite.com running. We have since moved portal.mysite.com to the new server but now I am stuck getting the api to work.
I have the ip of api.mysite.com in my local windows 7 hosts file set to the ip of portal.mysite.com and it is my understanding that if I go to api.mysite.com(on my machine with the fudged ip in the hosts file) it will go to the new server but the header for my request will identify to apache that I want to go to api and not portal.
I am pretty sure that I am hitting portal - the config file on portal is set to redirect / to https://portal.mysite.com and that is not how I know - it is because there is a ServerAlias on portal that is portal.prod.mysite.com and if I go to api.mysite.com I end up at https://api.prod.mysite.com/
portal currently redirects to https and when I am done I want api to redirect to https as well. Portal has been running fine on the new server for a few weeks no.
What am I doing wrong? I need portal and api to run on the same server.
Thank you
API:
And portal:

Why my VPS not accepting connections from outside?

I have a windows server 2008 VPS with no software installed on it and the only way to connect to it is remote desktop connection so I have to prepare it from scratch.
I installed apache server on it BUT after installing apache:
ON THE VPS:
when i go to localhost i get the "it works!" Home page so this sounds ok.
and "Netstat -a" results shows port 80 ok as following:
From other pc
- can't go to homepage via browser.
NOTE: I don't have a domain but i wish to access via browser using the VPS ip.
nevermind guys it worked now.
I just added port 80 to firewall. I thought that if the port stats is Listening then it is ok but I found out that I have to add the port to the firewall too.

liferay portal not opening

I'm new to liferay. I installed the liferay+tomcat bundle and tried to start liferay by running the startup.bat file. The liferay setup wizard should open in the browser by itself but it is not happening. The following is being displayed. How do I open the liferay setup wizard?
Apache - version 2.2.22
PHP - version 5.4.5
Server is up and running
The default Apache context is www in the Apache installation folder
It seems something else is running on port 8080 - e.g. some installation of Apache. You can try this if you just access http://localhost:8080 without starting tomcat/Liferay first.
Either you need to shut that down, move it to another port or move Tomcat/Liferay to another port. If you want the later, look for a file called conf/server.xml, in there locate the three active port=... instructions and change them to unused ports. Then start again.
You can change the port number by editing server.xml , you can find it in tomcat>>conf>>server.xml
Change all the ports from 8080 to say 9080 and restart the server.
I mistaken had CATALINA_HOME configured to a different tomcat setup and not the tomcat bundled with Liferay. This made it trigger the port 8080 of the other setup which in return blocked the port before Liferay could listen to it. Make sure CATALINA_HOME is not pointing to some other tomcat installation. Make sure port 8080 , 8005 and 8009 is reserved for tomcat.