Internet Explorer 10 (Windows 8) crashing Apache - apache

I just installed Windows 8, and I'm having a hard time running Apache on it.
After a couple of adjustments on httpd.conf file (changing ports because of WWAHost.exe and allowing ::1 due to IPv6) I finally got it running (installed with EasyPHP), but when I open some local site on Internet Explorer 10, Apache stops responding and keep trying to load the page forever.
I think it has to do with Internet Explorer 10, because on other browsers work fine before loading any local site on Internet Explorer. After that I have to restart Apache to work again and not use Internet Explorer 10 any more in order to keep it running.
Did you have the same problem?

I had a similar problem and managed to fix it with the following solution. See IE freezes when requesting an EasyPHP/Apache hosted page.
As I already had a modern Apache, I just added:
AcceptFilter https none
AcceptFilter http none
EnableSendfile Off
EnableMMAP off
before loadmodules section. This worked like a charm.
My configuration was: Apache 2.4.4 and Internet Explorer 10

I had the same problem running Apache 2.4.2 (EasyPHP 12) with Internet Explorer 10 on Windows 7, although think I've found a solution on astutelogic.com that seems to work... At least, upgrading Apache to 2.4.4 using those instructions worked for me.
I downloaded the Apache binaries from Apache Lounge, then after the extracting/renaming steps, I copied my current 'php.ini' and 'httpd.conf' files across to the new folder and added the additional lines to my 'httpd.conf' file as instructed.
As per the linked page, a note on development servers vs live servers:
As far as I can see, the AcceptFilter directive only really works on FreeBSD and Linux (to a lesser extent) so there isn’t any benefit from having them on Windows. I could be wrong though… In any case, its only a development environment so a few milliseconds slower shouldn’t be a problem.
Update
Just noticed EasyPHP 13.1 has been released, which comes with Apache 2.4.4. If you haven't already tried the steps I linked to above (or simply updated EasyPHP), I'd recommend you just download the updated stack.

I have been attempting to fix the same issue on Internet Explorer 10 on Windows 7 and have found that using compatibility mode alleviated most of the delays using localhost sites.
I know it isn't exactly a solution, but I also experienced these issues on Windows 8 and tried the common fixes to no avail.

It might be something with ThreadsPerChild.
Check error.log and httpf.conf:
# Server-pool management (MPM specific)
#Include conf/extra/httpd-mpm.conf
I had the same problem in Internet Explorer 10, but now I can't seem to reproduce it. Normally I use Firefox, and there is no problem. It seems I got this problem after updating to Apache 2.4.

Related

Apache "Failed to load resource: The network connection was lost."

First of all, my thanks to this community for helping me solve many, many issues over the years. In fact, I have never needed to post a new question - I was always able to find an answer (eventually).
Not so this time. I am a moderately experienced hobby developer, self-hosting a small set of sites on my Mac Mini (Apache 2.4, PHP 8.0, MySQL 5.6). I built a reasonably complex site (www.fundas.us/manhattanzen) and everything was working perfectly.
I then decided to add SSL encryption to my server (certificate purchased from ssl.com) and installed it with no issues. Checking the SSL configuration via "SSL Checker" and Whynopadlock.com confirms that the certificate is properly installed. The only "warning" I get is that I only have TLSv1 enabled on the server. This despite the fact that my httpd-ssl.conf file says "SSLProtocol -all SSLv3". I mention this in case it is the cause of my troubles.
The issue I am experiencing is that the SSL encrypted site works perfectly using Firefox and Chrome on the Mac Mini (Mojave), but fails using Safari on the same Mac and fails using any of the browsers on my iPad or iPhone. Safari's web console shows "Failed to load resource: The network connection was lost." and the server log shows "child pid XXXXX exit signal Segmentation fault (11)".
The resources that fail to load are some (but not all) of the css and js resources that reside on the local (Mac Mini) server. All other resources (residing on external servers) load fine.
I have tried a number of suggestions found on Stack Overflow, including
changing file permissions to 777 on the offending resources (js, css files)
setting KeepAlive to Off in httpd-default.conf
minifying offending resource files
increasing SSLSessionCache in httpd-ssl.conf
None of it has made any difference. I should also point out that I have configured .htaccess in the root folder of my site to force all incoming connections to https://
This seems like the last hurdle to make this website fully encrypted and fully functional and I am thoroughly stuck. I will appreciate any pointers you have for me. Many thanks.
Was able to figure this out and wanted to answer my own question, in case it helps anybody else.
First, the strange test results from SSL validation sites that my server was not TLSv1.2 ready. I fixed this by changing the SSLProtocol line in httpd-ssl.conf to explicitly only permit TLSv1.2 ("SSLProtocol all -SSLv3" --> "SSLProtocol TLSv1.2")
Second, the odd behavior of Safari (on both desktop and mobile) occasionally hanging unable to load a page (while other browsers had no issues). I found the solution to this at https://serverfault.com/questions/937253/https-doesnt-work-with-safari. Making the recommended change to httpd-ssl.conf and adding the line "Header unset Upgrade" solved the Safari issue.

ColdFusion 2016 stopped rendering website after Mac software update

ColdFusion 2016 stopped rendering website files in browser after I updated my Mac software to latest one, Mojave 10.14.1. Instead of seeing the rendered page in the browser I can see my repository files only.
I noticed that some previous settings regarding local server and Apache were removed after update. I did restore missing settings back how they were before and even reinstalled ColdFusion 2016, but still have that problem with rendering websites on the ColdFusion platform.
After running /Applications/ColdFusion2016/cfusion/runtime/bin and sudo ./wsconfig, I the get Web Server Configuration Window with content inside
[ localhost ] Apache : /private/etc/apache2.
Is there anyone who can help to resolve this issue please?
Change the directory to
/Application/ColdFusion2016/cfusion/runtime/bin
Run
sudo ./wsconfig
The documentation does not mention sudo, but I am suggesting it to be safe.
Source: https://helpx.adobe.com/coldfusion/configuring-administering/web-server-management.html
After testing ColdFusion 2016 platform using port :8500 I found out that CF server uses Tomcat path (wrong path) instead of Apache one (for Mac virtual directory file: httpd-vhost.conf) and both of them are running at the same time.

Wamp (apache) stops working after windows 10 upgrade

I'm an old dog (75) not very good at learning new tricks.
I still use Coral_8_0_0 to create my WAMP server and am comfortable with it, so please don't tell me to upgrade to 13_3_2_ZeroXIII.
I have tried that and haven't yet worked out how to have several websites in the vhosts folder and get to them via the localhost.
I promise that I will sort that out - but, meanwhile, I have another more pressing problem:
I am running Windows 10 on a desktop computer, and I have Apache running as a service and I can :
Stop it when I like and restart it when I want;
Maintain 13 websites in the vhosts folder;
Look at each site via the localhost.
A few weeks ago the Windows 10 OS was upgraded for April 2018 to version 1803, and my setup stopped working :
I could not stop or start apache either as a service or as a programme;
I could not look at my local sites via localhost.
This was really annoying as I update most of these sites on a daily/weekly basis.
Also Dreamweaver did not work properly as it could not access the local site.
I uninstalled the version 1803 upgrade and - magic - Apache and Dreamweaver and the localhost worked perfectly again.
HOW CAN I OVERCOME THIS PROBLEM ?
I sync everything to my laptop which also has windows 10 (not yet upgraded) where everything works as I like.
Today - the 1803 upgrade arrived and I installed it to see what would happen.
Alas - Apache and localhost stopped (like on the desktop machine) so I uninstalled the upgrade and everything reverted back to normal.
I would like to solve this problem before I get stuck into sorting out the latest version of WAMP.
Any help will be gladly received. Thanks in advance.

Website sometimes gets jammed(timeout)

I'm hosting my website www.xgclan.com with the latest apache 2.4.1 and sometimes my server gets jammed, it doesn't seem to send any data but you don't get a timeout like when the Apache process isn't running.
A reboot of the process resolves this issue.
It seems to happen when you open the website in multiple browsers on the same system.
I've tested it on 2 different systems to make sure its not a bandwith or cpu problem.
Putting this without the quotes "AcceptFilter http none" in the httpd.conf fixed the issue for me.
I found the solution here: http://www.apachelounge.com/viewtopic.php?t=4543&postdays=0&postorder=asc&start=20

Ubuntu Lucid, cgi-bin, and MathTex

So I have several dedicated servers out there running Ubuntu Lucid server. They primarily run WordPress sites - LAMP. However, one of my original sites is a controls engineering site that uses MathTex to render the equations.
MathTex is pretty hard on servers. The engineering site is still hosted on the original VPS which runs something like CentOS (but that's irrelevant). The traffic and numbers of renderings that MathTex creates cause resource issues with my VPS. I've been able to allocate more resources to the VPS but ultimately this gets expensive. So I'd like to offload the equation rendering to my dedicated servers all of which are much more powerful and under-utilized.
So I've followed the instructions on installing and compiling MathTex. And MathTex works fine from the command line. However, when I attempt to call the script via my browser the browsers all try download the cgi file (I've tested on Firefox and Chrome on 2 machines).
This led me to attempt to compile and install on my home Ubuntu box that is Ubuntu desktop. The command line works fine. However, again when calling the function in my browser it wanted to download the file instead of rendering an equation. So I moved the mathtex.cgi script to /usr/lib/cgi-bin. Still no go. Then I changed /usr/lib/cgi-bin to 777 and it worked. I changed /usr/lib/cgi-bin to 755 and it stopped working.
So my home box works when /usr/lib/cgi-bin is 777. I tried that one of my dedicated Ubuntu servers and still no go. My browser still attempts to download the file.
The directive for Apache to find the cgi-bin directory is in /etc/apache/site-available/default. And at a quick glance they appear to be identical (I haven't yet studied every character).
FYI
I got some help from my hosting company. They are generally pretty good but this is outside the scope of what they provide for free. So when I was switching servers I had a couple of password issues and managed to tack this question on as well.
The support person finally got the mathtex.cgi script to run by creating a /cgi-bin under the domain's folder. Making that folder 777 and adding an AddHandler cgi-script to the http.conf. Then he restarted Apache2.
I had been putting mathtex.cgi under a generic /cgi-bin directory that I had intended to share among all the domains as needed. And this generic /cgi-bin directory appeared to be what the MathTex installation instructions were suggesting.
Hope this helps someone else.