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: internal error http://Example.com/UI
Author
meows



Joined: 07 Feb 2011
Posts: 2
Location: usa

PostPosted: Fri 23 Jan '15 12:03    Post subject: internal error http://Example.com/UI Reply with quote

I have been fighting this for a week now and it is time to ask for some smarter people. To please help.
Apache 2.4 PHP 5.3 Win7
Current ports was showing
IPv4 IGMP 192.168.0.1 if i ran HTML page
and
IPv4 TCP 192.168.0.1 if I ran a PHP page with
this header
Code:
<?php
header('Content-type: text/html; charset=us-ascii');
header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
?>

htaccess is
Code:
RewriteEngine On
AddHandler cgi-script .pl .cgi
Options +ExecCGI +FollowSymLinks
<FilesMatch "\.(htm|html|css|js|php)$">
AddDefaultCharset charset=us-ascii
DefaultLanguage en-US
</FilesMatch>
require all granted


I did a system restore a few hours ago praying that would fix things,, It did not..
Current ports shows
    Process ProcessID localport localportname IP remoteport
    Unknown 0 TCP 80 http 192.168.0.2:80 49837 192.168.0.2:49837 xxxx.com:49837 Time Wait N/A 1/23/2015 1:42:39 AM
    Unknown 0 TCP 49838 192.168.0.2:49838 80 http 192.168.0.2:80 xxxx.com:80 Time Wait N/A 1/23/2015 1:42:49 AM

The process is supposed to be APACHE2.4 not unknown
also before I did the system restore instead of
IPv4 TCP i got
IPv4 IGMP in current ports

netsh interface ipv4
Code:
netsh interface ipv4 show global
Querying active state...

General Global Parameters
---------------------------------------------
Default Hop Limit                   : 128 hops
Neighbor Cache Limit                : 256 entries per interface
Route Cache Limit                   : 128 entries per compartment
Reassembly Limit                    : 29203488 bytes
ICMP Redirects                      : enabled
Source Routing Behavior             : dontforward
Task Offload                        : enabled
Dhcp Media Sense                    : enabled
Media Sense Logging                 : disabled
MLD Level                           : all
MLD Version                         : version3
Multicast Forwarding                : disabled
Group Forwarded Fragments           : disabled
Randomize Identifiers               : enabled
Address Mask Reply                  : disabled




Windows IP Configuration
Code:
Windows IP Configuration

   Host Name . . . . . . . . . . . . : GAMEMAKER
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : Yes
   WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Local Area Connection:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Realtek PCIe GBE Family Controller
   Physical Address. . . . . . . . . : F4-6D-04-D8-94-EF
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   IPv4 Address. . . . . . . . . . . : 192.168.0.2(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.0.1
   DNS Servers . . . . . . . . . . . : 8.8.8.8
                                       8.8.4.4
                                       4.2.2.1
                                       4.2.2.2
                                       208.67.222.222
                                       208.67.220.220
                                       8.26.56.26
                                       8.20.247.20
                                       156.154.70.1
                                       156.154.71.1
   NetBIOS over Tcpip. . . . . . . . : Enabled


I just tried in http.conf
RewriteEngine on
RewriteCond %{HTTP_HOST} ^xx\.com$ [OR]
It did't work
Back to top
James Blond
Moderator


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

PostPosted: Sun 25 Jan '15 1:21    Post subject: Reply with quote

What is your question? Sorry I don't see it. There is no question mark anywhere.
Back to top
meows



Joined: 07 Feb 2011
Posts: 2
Location: usa

PostPosted: Mon 26 Jan '15 4:08    Post subject: Reply with quote

James Blond wrote:
What is your question? Sorry I don't see it. There is no question mark anywhere.


Gosh I was upset. I see I did not post a actual question.

I found the cause 'I think',
It was two fold. In case others have the same issue

Acronis had installed a software Network card to monitor it's software.

When my DSL/ROUTER died and we got a new, incompatible for Apache DSL/ROUTER, so got another router. in the interm trying to get something working the HTTP/TCP/IVP4 and IVP6 got all messed up,


THE FIX
Create an ETW trace
To start tracing events in Http.sys use the Logman.exe tool. Logman.exe ships with every Windows installation, and can be used right out of the box. To enable ETW, type:

C:> logman start httptrace -p Microsoft-Windows-HttpService 0xFFFF -o httptrace.etl -ets

To stop tracing we use the logman tool again:

C:> logman stop httptrace -ets
This will flush the event cache to your .etl output file, httptrace.etl in this case. By itself, the .etl file is of little use. We can create a human readable file in either XML or .csv format by using the tracerpt command (admin privs not necessary here):

For .csv output:

C:> tracerpt.exe httptrace.etl –of CSV -o httptrace.csv

For XML output:

C:> tracerpt.exe httptrace.etl -of XML -o httptrace.xml

To maximize the amount of useful information in each trace I would advise the XML format.

Also Windows EventViewer also displays .etl files, use File open.

Run netstat -anb to get active connections to compare with the trace,

With the results go to microsoft or google and search for How to Use the Netsh.exe Tool and Command-Line Switches - [242468]

My issue was found in the trace with
Realtek PCIe GBE Family Controller 00-E0-4C-XX-XX-XX
AND this add-on that I did not know about

Acronis Computer Inc. Software Controller F4-6D-04-D8-94-EF

I used a lot of tools from nirsoft SysinternalsSuite and some of my own. I had to change the registry to stop the second network adapter and then use Netsh to stop TCP/6 multicasting on 244.0.0.0.



I use this tried and true test to find and fix most problems with Apache

Code:
 ###############################################################################
 # File name: Read_me.txt
 # Created By: The Apache Server Development Team
 # V 1.0 11-12-2009
 ###############################################################################

 When Apache Server fails to start you need to determine an underlying cause.
 Diagnostics is all about gathering information hopefully pin pointing a cause
 and a possible solution.

 If the servers unexpectedly crash or fail to start no error logs are produced
 making diagnostics difficult. Added to this are system variations the cause
 of a failure may be hidden and the resulting error messages masking a real
 cause?

 -----------
 Diagnostics
 -----------

 This folder contains several batch files that are intended to isolate specific
 problem areas and gather as much information as possible to aid diagnostics.

 1) Always start with a fresh install of Apache Server
 2) Before performing tests restart the PC this provides a know state.
 3) Run server_status.bat before performing any tests
 4) Tests should be run in the following order:

    1_port_check.bat
    2_Apache_program.bat
    3_Start_MySQL_program.bat
    4_Stop_MySQL_program.bat
    5_Start_Services.bat
    6_Stop_Services.bat 

 -------
 General
 -------

 Fails to start general causes:
  1) Check ports are not in use - Run first test
  2) Check ports are not being blocked by some other progam such as a firewall
  3) Always login as Admin
  4) Disable the User Account Control (UAC)

 Disable UAC on Windows Vista
  a) Open up Control Panel, type in “UAC” into the search box.
  b) You will see a link for “Turn User Account Control (UAC)
      on or off” click this link:
  c) A new screen opens uncheck the box for “Use User Account Control (UAC)”,
     click the OK button.
  d) You must restart Windows.

 Disable UAC on Windows 7
  a) Type UAC into the start menu or Control Panel search box.
  b) Drag the slider up or down, defines how often you want to be alerted.
  c) Drag it all the way down to the bottom, this disables UAC entirely.

 Tests:
  Tests directly run servers as a standard program or service bypassing Apache
  Server’s control architecture. This allows you to determine if a problem is
  specific to either Apache or MySQL.

 ----------------
 1_port_check.bat
 ----------------

 Apache Server will not start if one of the following ports is in use
 by another program.

  80   - Apache standard port
  443  - Apache standard SLL port
  3306 - (MySQL standard port

 Run 1_port_check.bat and confirm ports are free to use.

 This batch file is a continuous loop, click in window and press any key to
 refresh. You can close it by clicking on cross top right.

 --------------------
 2_Apache_program.bat
 --------------------
 
 This test allows you to start and stop Apache as a standard program.
 The script contains detailed instructions follow these.   
 
 -------------------------
 3_Start_MySQL_program.bat
 4_Stop_MySQL_program.bat
 -------------------------

 This test allows you to start and stop MySQL as a standard program.
 The scripts contains detailed instructions follow these.

 --------------------
 5_Start_Services.bat
 6_Stop_Services.bat
 --------------------

 These scripts allow you to install/run and stop/uninstall both servers
 as a service. The script contains detailed instructions follow these.

 Note: If the servers failed to run as a standard program there is no
       point in running this service test.

 ----------
 Tips Help
 ----------

 If you cannot resole an issue from the information gathered post on Apache
 Servers’s Tips.

 Please provide constructive inform, comments like “it does not work” reminds
 me of a crystal ball I took back to a shop because it did not function.

 My point we do not have a crystal ball hence we need to know the following
 information:

 1) What is the Windows operating system and version?
 2) What version of Apache Server are you using?
 3) What error messages are produced?
 4) Have you checked the error log: C:\Apache2.4\core\apache2\logs\error.log
 5) Have you checked the error log: C:\Apache2.4\core\mysql\data\mysql.err

 Note: At step 3 you can capture text displayed in a command window (batch files)
       see file  Grab_screen_text.txt for details.
 
 Don’t be put off posting on the Tips just supply as much information as
 possible. It’s a large and friendly community that is willing to help
 and resolve issues.

                               --- End ---





Many thanks..
Back to top


Reply to topic   Topic: internal error http://Example.com/UI View previous topic :: View next topic
Post new topic   Forum Index -> Apache