httpd.conf configuration question

Problems with the Linux version of XAMPP, questions, comments, and anything related.

httpd.conf configuration question

Postby texican » 07. May 2007 20:40

If anyone can help I'd be very grateful.

I am trying to set up a web server for an internal company website. Here's the pertinent facts.

-- XAMPP is installed and starts fine
-- I can ping the server from my laptop, and vice-versa
-- I cannot access the website, instead I get a "HTTP 500 Internal Server Error" message.

Here are some lines from the log file:

Mon May 07 11:39:27 2007] [error] [client 127.0.0.1] File does not exist: /opt/lampp/htdocs/favicon.ico
[Mon May 07 11:50:58 2007] [notice] caught SIGTERM, shutting down
[Mon May 07 11:51:08 2007] [notice] suEXEC mechanism enabled (wrapper: /opt/lampp/bin/suexec)
[Mon May 07 11:51:08 2007] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon May 07 11:51:08 2007] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Mon May 07 11:51:09 2007] [notice] Digest: generating secret for digest authentication ...
[Mon May 07 11:51:09 2007] [notice] Digest: done
[Mon May 07 11:51:10 2007] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon May 07 11:51:10 2007] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Mon May 07 11:51:10 2007] [notice] Apache/2.2.4 (Unix) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8e PHP/5.2.1 mod_apreq2-20051231/2.5.7 mod_perl/2.0.2 Perl/v5.8.7 configured -- resuming normal operations

Any thoughts?

T.
texican
 
Posts: 8
Joined: 07. May 2007 20:32

Postby Wiedmann » 07. May 2007 22:30

Here are some lines from the log file:

Where is the line for this error message:
texican wrote:I get a "HTTP 500 Internal Server Error" message.

?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby texican » 07. May 2007 22:37

The error appears in the title bar of Internet Explorer on the laptop which is attempting to access the server.

This is what makes me think it is a problem with httpd.conf -- the connectivity is there, but something is not letting the laptop get in.

Thank you!

(Entschuldigen Sie mir bitte -- mein Deutsch is sehr mal.)
texican
 
Posts: 8
Joined: 07. May 2007 20:32

Postby Wiedmann » 07. May 2007 23:46

An error 500 is written under each circumstance into the error log.

So, if you have an error 500 and no log entry, is this an error from your XAMPP Apache?

(And can you see this request in the access log?)
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby texican » 08. May 2007 15:06

OK, I understand.

What do you understand the meaning of this error message to be?

[Mon May 07 11:51:10 2007] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon May 07 11:51:10 2007] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?


Would this be a problem causing the issue described above?
texican
 
Posts: 8
Joined: 07. May 2007 20:32

Postby Wiedmann » 08. May 2007 15:14

Would this be a problem causing the issue described above?

No.

and:
Wiedmann wrote:(And can you see this request in the access log?)

?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby texican » 08. May 2007 15:43

Wiedmann wrote:
(And can you see this request in the access log?)


I'm not sure exactly what log this is, but I found this:

/var/log/apache2/access.log2

This file contained only this:

127.0.0.1 - - [12/Mar/2007:10:51:45 -0500] "GET /cosis/style_images/bg.gif HTTP/1.1" 404 298 "http://www.picrun.com/style.css" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.2) Gecko/20060601 Firefox/2.0.0.2 (Ubuntu-edgy)"


There was also an access.log.1, which was empty.

Also on /var/log/apache2 I found a recent file called error.log.6.gz. When I gunzipped it, it contained this:
[Tue Mar 06 13:27:49 2007] [notice] Apache/2.0.55 (Ubuntu) configured -- resuming normal operations
[Tue Mar 06 13:27:50 2007] [notice] caught SIGTERM, shutting down
PHP Warning: mime_magic: type regex\t\tBEGIN[[:space:]]*[{]\tapplication/x-awk invalid in Unknown on line 0
[Tue Mar 06 13:27:51 2007] [notice] Apache/2.0.55 (Ubuntu) PHP/4.4.2-1.1 configured -- resuming normal operations
[Tue Mar 06 15:19:40 2007] [notice] caught SIGTERM, shutting down
[Tue Mar 06 15:19:51 2007] [notice] Apache/2.0.55 (Ubuntu) configured -- resuming normal operations
[Wed Mar 07 13:22:07 2007] [notice] caught SIGTERM, shutting down
[Wed Mar 07 13:22:57 2007] [notice] Apache/2.0.55 (Ubuntu) configured -- resuming normal operations
[Thu Mar 08 14:22:45 2007] [notice] caught SIGTERM, shutting down
[Thu Mar 08 14:29:41 2007] [notice] Apache/2.0.55 (Ubuntu) configured -- resuming normal operations
[Thu Mar 08 14:42:15 2007] [notice] caught SIGTERM, shutting down
[Fri Mar 09 09:35:42 2007] [notice] Apache/2.0.55 (Ubuntu) configured -- resuming normal operations
[Fri Mar 09 10:38:44 2007] [notice] caught SIGTERM, shutting down
[Fri Mar 09 10:39:20 2007] [notice] Apache/2.0.55 (Ubuntu) configured -- resuming normal operations
[Fri Mar 09 12:03:04 2007] [notice] caught SIGTERM, shutting down
[Mon Mar 12 10:28:00 2007] [notice] Apache/2.0.55 (Ubuntu) configured -- resuming normal operations
[Mon Mar 12 10:33:12 2007] [notice] caught SIGTERM, shutting down


I appreciate your help more than you know.

T.
texican
 
Posts: 8
Joined: 07. May 2007 20:32

Postby Wiedmann » 08. May 2007 15:49

I'm not sure exactly what log this is, but I found this:
/var/log/apache2/access.log2

The XAMPP logfiles are somewhere in:
/opt/lampp/...
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby texican » 08. May 2007 15:59

OK...I think I got it: /opt/lampp/logs/access_log.

Here is the entries for the last two days:

127.0.0.1 - - [04/May/2007:14:27:48 -0500] "GET / HTTP/1.1" 200 8975
127.0.0.1 - - [04/May/2007:14:27:48 -0500] "GET /main_files/image002.gif HTTP/1.1" 404 391
127.0.0.1 - - [04/May/2007:14:27:48 -0500] "GET /favicon.ico HTTP/1.1" 404 379
127.0.0.1 - - [04/May/2007:14:29:10 -0500] "GET /xampp/ HTTP/1.1" 200 8975
127.0.0.1 - - [04/May/2007:14:29:10 -0500] "GET /xampp/main_files/image002.gif HTTP/1.1" 404 397
127.0.0.1 - - [04/May/2007:14:29:15 -0500] "GET /xampp/ HTTP/1.1" 200 8975
127.0.0.1 - - [04/May/2007:14:29:15 -0500] "GET /xampp/main_files/image002.gif HTTP/1.1" 404 397
127.0.0.1 - - [04/May/2007:15:09:25 -0500] "GET /favicon.ico HTTP/1.1" 404 379
127.0.0.1 - - [04/May/2007:15:09:27 -0500] "GET / HTTP/1.1" 200 8975
127.0.0.1 - - [04/May/2007:15:09:27 -0500] "GET /main_files/image002.gif HTTP/1.1" 404 391
127.0.0.1 - - [04/May/2007:15:09:28 -0500] "GET / HTTP/1.1" 200 8975
127.0.0.1 - - [04/May/2007:15:09:28 -0500] "GET /main_files/image002.gif HTTP/1.1" 404 391
127.0.0.1 - - [04/May/2007:15:52:37 -0500] "GET /xampp/ HTTP/1.1" 200 8975
127.0.0.1 - - [04/May/2007:15:52:37 -0500] "GET /xampp/main_files/image002.gif HTTP/1.1" 404 397
127.0.0.1 - - [04/May/2007:15:52:47 -0500] "GET /xampp/main_files/image002.gif HTTP/1.1" 404 397
127.0.0.1 - - [07/May/2007:09:55:06 -0500] "GET / HTTP/1.1" 200 8975
127.0.0.1 - - [07/May/2007:09:55:07 -0500] "GET /main_files/image002.gif HTTP/1.1" 404 391
10.192.29.81 - - [07/May/2007:10:34:00 -0500] "ll" 501 387
10.192.29.81 - - [07/May/2007:10:34:11 -0500] "ls" 501 387
127.0.0.1 - - [07/May/2007:11:13:05 -0500] "GET / HTTP/1.1" 200 8975
127.0.0.1 - - [07/May/2007:11:13:05 -0500] "GET /main_files/image002.gif HTTP/1.1" 404 391
127.0.0.1 - - [07/May/2007:11:39:17 -0500] "GET / HTTP/1.1" 200 8975
127.0.0.1 - - [07/May/2007:11:39:17 -0500] "GET /main_files/image002.gif HTTP/1.1" 404 391
127.0.0.1 - - [07/May/2007:11:39:18 -0500] "GET / HTTP/1.1" 200 8975
127.0.0.1 - - [07/May/2007:11:39:18 -0500] "GET /main_files/image002.gif HTTP/1.1" 404 391
127.0.0.1 - - [07/May/2007:11:39:26 -0500] "GET / HTTP/1.1" 200 8975
127.0.0.1 - - [07/May/2007:11:39:26 -0500] "GET /main_files/image002.gif HTTP/1.1" 404 391
127.0.0.1 - - [07/May/2007:11:39:27 -0500] "GET /favicon.ico HTTP/1.1" 404 379
127.0.0.1 - - [07/May/2007:11:42:41 -0500] "GET /xampp/phpinfo.php HTTP/1.1" 200 65694
127.0.0.1 - - [07/May/2007:11:42:41 -0500] "GET /xampp/phpinfo.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 2524
127.0.0.1 - - [07/May/2007:11:42:41 -0500] "GET /xampp/phpinfo.php?=PHPE9568F35-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 2146
127.0.0.1 - - [07/May/2007:14:29:04 -0500] "GET /xampp/ HTTP/1.1" 200 8975
127.0.0.1 - - [07/May/2007:14:29:05 -0500] "GET /xampp/main_files/image002.gif HTTP/1.1" 404 397
texican
 
Posts: 8
Joined: 07. May 2007 20:32

Postby Wiedmann » 08. May 2007 16:29

OK.

1st:
The error appears in the title bar of Internet Explorer on the laptop which is attempting to access the server.

Try now to access your server from your laptop.

2nd:
I got it: /opt/lampp/logs/access_log.

Then open this log and search for the line from this access and post this line.
(ip must be from your laptop and timestamp must be now)
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby texican » 08. May 2007 16:50

OK. done.

I tried several times and none of these attempts is registered in the file /opt/lampp/logs/access_log.

In fact what I see is that the only attempts that have been registered at allare from the IP 127.0.0.1 (loopback?).

I am not sure how to interpret this...any thoughts?
texican
 
Posts: 8
Joined: 07. May 2007 20:32

Postby Wiedmann » 08. May 2007 16:52

I tried several times and none of these attempts is registered in the file /opt/lampp/logs/access_log.

Then you access another server from your laptop an not your XAMPP server.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby texican » 08. May 2007 17:06

Then you access another server from your laptop an not your XAMPP server.


I can do that, no problem.

So if I try to get some conclusions it seems that:

a) the problem cannot be reduced to a problem with the configuration file (at least not yet) since it seems I'm not even registering an access attempt.

b) The problem is not with physical connectivity (I can ping each box from the other)

You agree? If so, it does narrow it down, but I'm not sure where to go from here.
texican
 
Posts: 8
Joined: 07. May 2007 20:32

Postby texican » 08. May 2007 20:52

OK folks, I figured it out. This discussion really helped me focus on the right issues, and it ended up being a problem with the fact that we use a proxy server for all web traffic -- that is what screwed me up.

My adding an exception into my Internet Explorer, I got it to work. I'm going to work with my IT to get a permanent domain name assigned which will be a permanent solution.

Thanks Wiedmann.
texican
 
Posts: 8
Joined: 07. May 2007 20:32


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 15 guests