Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: Browser not loading anything from localhost |
|
Author |
|
pollythena
Joined: 12 Feb 2012 Posts: 5 Location: England
|
Posted: Sun 12 Feb '12 17:04 Post subject: Browser not loading anything from localhost |
|
|
I have Apache on my desktop computer (Windows Vista) and over the past few days, if I try and load any of the files in the htdocs folder, they don't work. I don't get any error messages, just a blank screen in the browser, and there is no source info.
I've tried Chrome, Firefox and Opera and get the same in all three. I can get the localhost homepage (the file that just says 'It works!'), but the files in any subfolders won't loads. PHPMyAdmin will let me load the login page but then the next screen comes up blank.
The only thing that's changed in the last week is my antivirus software updating, so I turned that and my firewall off and it made no difference. I've restarted Apache and restarted my computer twice and I keep getting blank pages. I've got no problems loading normal websites.
Does anyone have any idea what could be causing this? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 13 Feb '12 12:50 Post subject: |
|
|
Did you search in your access log and error log for that errors? |
|
Back to top |
|
pollythena
Joined: 12 Feb 2012 Posts: 5 Location: England
|
Posted: Mon 13 Feb '12 15:11 Post subject: |
|
|
It mentions no favicon file, but that's only for the Wordpress site I'm working on, so wouldn't affect PHPMyAdmin or the other sites on the server.
I also have this:
httpd.exe: Could not reliably determine the server's fully qualified domain name, using [removed] for ServerName
but checking the history, it always does that, presumably because it is a local server.
There's nothing else. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
|
Back to top |
|
brazitech
Joined: 14 Feb 2012 Posts: 5 Location: Brazil, Taguatinga
|
Posted: Tue 14 Feb '12 17:24 Post subject: |
|
|
hello
if your still having problems chek the permissions in the httd.conf in the conf dir.
look for this:
<Directory "D:/(your dir root docs)/htdocs">
then look for :
Order deny,allow
deny from all
</Directory>
add (allow statement)to look like this:
Order deny,allow
deny from all
allow from 127.0.0.1
</Directory>
in some systems you need to use
allow from ::1 for this to work.
Look in you error log,, it will show you the port number used to access Apache:
127.0.0.1 - - [12/Feb/2012:18:49:18 -0200] "GET....
or
::1 - - [12/Feb/2012:18:50:30 -0200] "GET...
Hope this helps
RS Brazitech
|
|
Back to top |
|
pollythena
Joined: 12 Feb 2012 Posts: 5 Location: England
|
Posted: Wed 15 Feb '12 0:46 Post subject: |
|
|
I've tried both tips and am experiencing the same problem, with nothing new showing in the error logs. Think my next step will be reinstalling. |
|
Back to top |
|
brazitech
Joined: 14 Feb 2012 Posts: 5 Location: Brazil, Taguatinga
|
Posted: Wed 15 Feb '12 14:48 Post subject: |
|
|
hello again.
you might try the following:
disable win vista UAC. Or reinstall Apache in the root of the drive. Apache and UAC do not get along. Try not to install in a sub directory of Program files on c:.
Also windows has a problem in that in some instances (only the windows gnome knows for sure) marks the files in a directory as read only. In windows explorer go to the top dir where you have installed Apache. Right click drill down to properties and un tick read only, in the popup check tick for all sub directories and files.
this might help, I went crazy for three days with this on a customers site. Windows claims this is a feature and not a bug. LOL
If this dose not work ,,post a little moe info on how you installed Apache...Drive dir ...etc
Do Not Give up!! Apache works! and works well,,,We just need to chase the gnome and send him to a mac or something!! lol
Let us know if you find a solution so we can share with others that might have the same problem
Hope this helps
RS BraziTech |
|
Back to top |
|
pollythena
Joined: 12 Feb 2012 Posts: 5 Location: England
|
Posted: Thu 16 Feb '12 0:37 Post subject: |
|
|
brazitech wrote: | hello again.
you might try the following:
disable win vista UAC. Or reinstall Apache in the root of the drive. Apache and UAC do not get along. Try not to install in a sub directory of Program files on c:.
Also windows has a problem in that in some instances (only the windows gnome knows for sure) marks the files in a directory as read only. In windows explorer go to the top dir where you have installed Apache. Right click drill down to properties and un tick read only, in the popup check tick for all sub directories and files.
this might help, I went crazy for three days with this on a customers site. Windows claims this is a feature and not a bug. LOL
If this dose not work ,,post a little moe info on how you installed Apache...Drive dir ...etc
Do Not Give up!! Apache works! and works well,,,We just need to chase the gnome and send him to a mac or something!! lol
Let us know if you find a solution so we can share with others that might have the same problem
Hope this helps
RS BraziTech |
*sigh* I know it works, it's been fine for two years and suddenly gone weird (which I'm convinced is due to my computer, not Apache, since I haven't made any changes to Apache or my PHP settings).
Apache is installed in my Program files (C\Program Files\Apache Software Foundation\Apache 2.2). I'm going to try uninstalling and reinstalling it in the root when I have time and see if the fixes it. I'll come back and let you know if it does! |
|
Back to top |
|
pollythena
Joined: 12 Feb 2012 Posts: 5 Location: England
|
Posted: Mon 20 Feb '12 22:37 Post subject: |
|
|
Well, the good news is that it's finally fixed and working again. It just took me all day but it's sorted .
I don't think it was anything to do with Apache or even PHP, because I reinstalled both of them and had the same issue. In fact, pages which just used HTML and/or PHP were loading okay. It was anything that had to interact with the database that wasn't loading.
After a fresh install of MySQL everything seems hunky dory again (fingers crossed!) |
|
Back to top |
|
|
|
|
|
|