Ubuntu 14 Apache server, page loading icon doesn't disappear - apache

I'm new to the LAMP stack. I set up everything correctly, everything works fine, I can view a sample PHP file, but one thing that irritates me is that page loading icon. It is still active like the page was still loading, but the whole content of the page has already been loaded. I do not know how to fix this problem. I tried to ask Google but found nothing, tried to restart apache server but the problem is not solved. I followed this tutorial: https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu Is it a bug or something else?

Related

ExtJS 2.2 openlayers lightbox popup stopped working - error in CGI script

I have an old GIS website with OpenLayers 2.7, Geoserver, running ExtJS 2.2 and a lightbox.js. This has been working fine. I can click on a location and fire up a lightbox popup. This has suddenly stopped working. I click a location but and a short spinning wheel so I can see something is happening but no popup. Any idea where I start to search for errors? I get no output in console. Here is my website: http://kulturminnekart.no/ostfold/. When you zoom in and click a marker it should show a popup utilizing the lightbox.js.
I know this is very old but I have never had resources to upgrade to newer ExtJS.
I have an index.html and app.js. Also I include OpenLayers, Mapfish and ExtJS. I have another site running almost the same code so I suspect some upgrade of apache or other software may have caused this but I have no idea where to start looking.
The problem was that the click on a marker was doing a WMS GetFeatureInfo request via a proxy (proxy.cgi). Thanks to #Mike I was on a track to debug why cgi was not working. So the solution was to get mod_cgi working correctly on Apache 2.4 and then adjusting the permissions on cgi-bin.

Zend or Apache is replacing my src value with data:image

I am working on a web site that I worked heavily on a couple of years ago but only maintained since. It was recently migrated to another server. The new server uses ZendFramework version 1.12.20 on Apache (httpd=2.4.6-88.el7.x86_64).
There seems to be a weird bug where instead of using the URL of an image, it sends data:image content. Unfortunately the data:image is of an old image icon instead of the replacement icon. If I go directly to the URL of the image, it also still shows the old image. So it seems like a caching problem.
I've tried clearing the web browser cache and restarting the web server. There are no image files in /usr/local/zend/library/Zend/Cache and /usr/share/php/Zend/Cache. What will clear the Zend or Apache cache?

Wordpress pages randomly serve as RSS/XML content

For months we have been struggling with a weird issue on 1 of our Wordpress Network installations. We have 4 installations on 1 VPS and only one of the four installations generates this error.
The problem is that pages on all sites that run on that Wordpress Network installation, randomly(?) seem to try and parse the page as being RSS content. See this screenshot:
Full image
This only happens once per session (if it does at all) and after refreshing the page, all is good. This makes it extremely hard to fix, because debugging is almost impossible.
Whenever the issue seems to appear, the (RSS) content that is being displayed, is that of a different page..
Could this be a Wordpress issue, or could this be an issue in the Apache config?
Some domains we are encountering this on:
http://www.skynetsg.co.za/
http://www.workplacestrategies.co.za/
http://www.beachbreaks.co.za/
I hope there is someone that could help me solve this issue!
Update:
I just had the issue on the page: http://www.skynetsg.co.za/peter-sserwanga/ that was newly created. I checked the apache logs and they show nothing strange, just a 200 OK header..
Below is a link that may fix your problem. If your running WHM/Cpanel, you may have to recompile apache with out certain modules.
rss-feed-displayed-instead-of-html-page

reloading webpage on safari downloads the page

I have a dynamic site I have made on PHP/MySQL and recently I have experienced a weird issue - sometimes (about once in four times) when I reload the active page the safari web browser (on a mac) automatically downloads the xxxx.php page rather than reloading it! I am trying to figure out what could be causing this, but i have no idea. Any suggestions?
The Content-Disposition HTTP Header is the only thing I can figure. Is there any way you can post something that we can test?
could it be with the .htaccess? I had a similar problem last month and I had to change some entries in my .htaccess, the shared server may have changed Apache's settings and it sopped working properly.

My server intermittently won't serve pages to Safari 4... Need help!

I just upgraded my browser to Safari 4 and find that our website is having some major issues specific to that browser version. As I click through pages on our site it takes one or two clicks before the browser window simply goes blank. When the window goes blank, there is no source to view and no matter how many times I try to reload or if I try to load other pages of the site, I still get the blank window. It's as if the server takes the request and simply returns a blank page.
If I wait over 15 seconds and then hit refresh again, the page loads fine. Not sure why it starts working again... Maybe a cache issue???
It's a PHP site and I've tried turning on error_reporting(E_ALL);, but that doesn't give any information. I also tried putting an echo statement at the very beginning of the index.php file and verified that the page still goes blank without echoing that statement, so I'm thinking the problem is not php code specific. The Apache error log does not show any issues. I have the same site on my local development server and it doesn't have the problem.
Safari 4 is the only browser that shows this problem. Does anyone have any ideas how to debug/fix this?
My webserver is ubuntu Hardy running Apache 2 an Mysql 5.
We have an nginx load balancer in front of the apache server and I just figured out that Safari 4 requires the nginx keepalive_timeout setting to be 0. Took all day to figure that one out...
I've been having the same issue with Safari 4 on my site but found that when reloading pages that return blanks, the request never even makes it to the server. No entry shows up in Apache's logs.
The keepalive setting for your LB sounds like a direction I could sniff in. Not sure what leeway I will have though, being on shared hosting.
Mike
This looks to be a safari bug. We experience it too, and I have read other reports.
http://discussions.apple.com/thread.jspa?threadID=2064488&start=0&tstart=0