logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: URL Not Found Mystery
Author
SaintGiff



Joined: 10 May 2016
Posts: 2
Location: US

PostPosted: Wed 11 May '16 0:54    Post subject: URL Not Found Mystery Reply with quote

This one has me stumped so I'm hoping someone can help.

I have had Apache2.4 running as part of a LAMP stack on a Ubuntu 15.04 dev machine for nearly a year without a problem. I have some sites that are resolved via localhost, and for others I use virtual hosts. All of my configs work perfectly for both and I've never had a hitch. Until yesterday. I installed a few extra PhP modules for a new project and now my server cannot resolve anything. All of my localhost URLs and all of my virtual host URLs resolve to the URL not found on this server message.

I have checked my apache config, the .conf files for all of my virtual host sites, and my hosts file. All are exactly as they should be. Likewise, my netstat doesn't show anything off and my iptables all show Allow.

The PhP modules that I installed yesterday were graphviz, aspell, php5-pspell, php5-gd, php5-intl, php5-ldap, clamav.

So far as I can tell none of those should be causing the server to essentially not load any config files. I've tried reloading, restarting etc. It loads / starts fine without errors. There is nothing in my apache logs so I'm getting no help there. I'm really at a loss and would appreciate any help y'all can offer.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Sun 05 Jun '16 18:55    Post subject: Reply with quote

Are your 404 errors in the apache error log? Or what kind of error message do you get?
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Mon 06 Jun '16 17:59    Post subject: Reply with quote

I would imagine SaintGiff is getting this in his browser since s/he states that there is "nothing" in Apache logs which is not unusual for 404s these days.

Since SaintGiff thinks his conf files are not being read, this is a perfect example of why I think this would a good feature to have;
https://bz.apache.org/bugzilla/show_bug.cgi?id=59376

In 2.4 we do have -t -D DUMP_RUN_CFG which shows "Main DocumentRoot" and may/may not be enough to go on for the localhost which then may lead to why nothing is working, or not Confused

I think the first thing I would probably do in this situation is make sure apache is using the config I think it should be using with

httpd -f /path/to/my/httpd.conf

If it still doesn't work as it should, then chances are you did something to your config (like commenting out one or more Include directives temporarily and forgot to uncomment it/them later (I've been guilty of this in the past).

I realize you have apachectl (or something like that) and that file may be good to look at also because the ones I have seen usually set some defines or environment variables that effect Apache. It could have been changed during an update. Slim chance but you have to rule out all possibilities that could make it break. Sooner hopefully rather than later you stumble onto the problem.

Just a thought.
Back to top


Reply to topic   Topic: URL Not Found Mystery View previous topic :: View next topic
Post new topic   Forum Index -> Apache