LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Apache Issue - I think (https://www.linuxquestions.org/questions/linux-networking-3/apache-issue-i-think-4175591291/)

TBotNik 10-12-2016 06:52 PM

Apache Issue - I think
 
All,

Been struggling to get the browser to work on my Aspire Laptop running Kubuntu 14.04 LTS. There are no errors in the logs, when I restart apache2, but localhost will not enable and any website with "index.*" as the home page will not work, just get errors, however I've managed to get Google to work and therefore been able to trick sites into giving me info.

EX:
blueletterbible.org errors so can not use it's home page. To trick it and get answers, in Google I enter:

blueletterbible.org Rom 8:32

and I will then get the Google list which I can click on to get the information being sought.

I put all applicable file on pastebin at:

http://pastebin.ca/3727003

I'm at my wits end on this and not much of an Apache hack, so really stumping and frustrating me, so any help appreciated.

Thanks!

TBNK

c0wb0y 10-12-2016 08:37 PM

I would love to help and English is also not my native language but sorry I am unable to comprehend much of it.

frankbell 10-12-2016 08:54 PM

If I understand correctly, the issue is that you cannot directly access blueletterbible.org in your browser, but can access it via a web search. If that is a correct understanding, I cannot duplicate your issue, as I can access blueletterbible.org quite nicely on both FreeBSD and on Slackware --Current with Firefox.

I puzzled as to how your running apache on your local machine could have any bearing whatsoever on your accessing a public website via your browser. I will note I am running httpd on the Slackware machine.

Can you clarify specifically why you think the two are related?

Habitual 10-13-2016 01:11 PM

What happens using https://www.blueletterbible.org/ instead of blueletterbible.org in your browser tab?

Rom 8:32 search works there, from here.

TBotNik 10-13-2016 02:05 PM

Every Site
 
All,

No this problem exists for every single site that has an index.* or home.* as it's default home page. I used blueletterbible.org as an example only!

Thanks!

TBNK

ondoho 10-13-2016 02:18 PM

Quote:

Originally Posted by TBotNik (Post 5617261)
when I restart apache2, but localhost will not enable and any website with "index.*" as the home page will not work

you do not need apache to browse the web from your home machine!!!
if you really installed apache on a desktop machine, i think you should just uninstall it, update the system, reboot & hope for the best.
if the best does not happen, i suggest a reinstall.

Habitual 10-13-2016 03:42 PM

ondoho is right.
Apache2 - remove it from your local system if you aren't hosting sites.
Also try a new browser profile and or system user

TBotNik 10-17-2016 12:24 PM

Ondoho & Habitual,

No I do web development and in particular framework/oop extensions, which require localhost so that's a must for me. However for your information the problem still exists when I stop apache2 with cmd:
service apache2 stop
So guessing the browsing part is a different issue from the apache2 problem. However localhost could be part of the browser issue, why the localhost index.php file is not processing.

Cheers!

TBNK

TBotNik 10-17-2016 12:31 PM

All,

I run 20 machines and this problem is unique to only my Aspire 7739 laptop. All other machines are fine. I have checked the browser and apache2 configs on all the machines, which are all the same as the laptop, as far as I can tell, so that is why I'm stumped here, since I have this anomaly!

PS
Cannot even get to this forum, via the laptop, so working this from one of my 2 servers.

Cheers!

TBNK

c0wb0y 10-17-2016 05:03 PM

If I understand it correctly, you are developing a webapp on that particular laptop and you would like to deploy it on a local Apache which is a fairly standard setup. The problem you seem to be having is you are unable to preview the webapp with index pages such as index.php. (Also, you have secondary issue which is your inablity to browse external sites)

What did you see when you point your browser to http://127.0.0.0 ? What error messages you get? Does it render any material, php text or not? If Apache php module is not enabled, you would not be able to see the sites correctly but it won't stop the browser from rendering contents including plain text. If you see any content that seems to be your webapp, that is already a good sign. If not, you have a bit of troubleshooting ahead of you.

Habitual 10-18-2016 03:11 AM

Sounds like you don't have a DirectoryIndex set in your site.conf

TBotNik 10-18-2016 07:00 PM

Quote:

Originally Posted by Habitual (Post 5619489)
Sounds like you don't have a DirectoryIndex set in your site.conf

Habitual,

Well yes there is no "site.conf" file on any of my machines.

You must be talking about another Linux fork. I'm on Kubuntu 14.04 LTS.

Cheers!

TBNK

TBotNik 10-19-2016 10:06 AM

Quote:

Originally Posted by c0wb0y (Post 5619351)
If I understand it correctly, you are developing a webapp on that particular laptop and you would like to deploy it on a local Apache which is a fairly standard setup. The problem you seem to be having is you are unable to preview the webapp with index pages such as index.php. (Also, you have secondary issue which is your inablity to browse external sites)

What did you see when you point your browser to http://127.0.0.0 ? What error messages you get? Does it render any material, php text or not? If Apache php module is not enabled, you would not be able to see the sites correctly but it won't stop the browser from rendering contents including plain text. If you see any content that seems to be your webapp, that is already a good sign. If not, you have a bit of troubleshooting ahead of you.

c0wb0y,

I get the message:

************************************************************************

Unable to connect

Firefox can't establish a connection to the server at 127.0.0.0.

The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer's network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.

************************************************************************

That is shown just after restarting apache2!

Cheers!

TBNK

Habitual 10-19-2016 12:20 PM

Quote:

Originally Posted by c0wb0y (Post 5619351)
What did you see when you point your browser to http://127.0.0.0 ?

Correction, I think? > http://127.0.0.1

Habitual 10-19-2016 12:21 PM

Quote:

Originally Posted by TBotNik (Post 5619811)
Habitual,

Well yes there is no "site.conf" file on any of my machines.

terminal>
Code:

sudo apache2ctl -S
In that output there should be a .conf listed.
Use "grep DirectoryIndex" on it.
DirectoryIndex controls "home*" and "index*" pages.

Does it exist?


All times are GMT -5. The time now is 01:36 AM.