Internal Server Error - Only some sites
Posted by: farrelldoc (---.dsl.hstntx.sbcglobal.net)
Date: March 11, 2011 01:48PM

I have had my Wamp server configured the same way for a very long time (years), and I never change anything (unless someone tells me to in this forum) because I am a novice about this server.

At any rate, some sites in my c:/wamp/www directory are working just fine, except for a couple of sites. In these sites, the HTML pages render, but the PHP pages do not render. When I try to view the php pages, I get the following error message:

======================
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
=======================

I have turned off port 80 from Skype, I turned off my virus software for the test, and I don't have IIS installed at all (or any other server except for Wamp.) I checked my hosts file, and I had this:

=============
127.0.0.1 localhost
::1 localhost
=============

I removed the second line, but that did not help.

I also tested my port 80, and it is being used by Apache. I looked at my php log, and it is empty. My Apache logs (from today's run) are below:

The sites that do not render are /alvingolf/ and /maidservicetexas/.
The site with the directory /nails/ does render properly.

=================================================
192.168.0.9 - - [11/Mar/2011:05:18:43 -0600] "GET /HNAP1/ HTTP/1.1" 404 204
192.168.0.9 - - [11/Mar/2011:05:18:46 -0600] "GET /TEADevInfo/ HTTP/1.1" 404 209
192.168.0.9 - badcred [11/Mar/2011:05:18:49 -0600] "GET / HTTP/1.0" 200 6594
192.168.0.6 - - [11/Mar/2011:05:19:48 -0600] "GET /HNAP1/ HTTP/1.1" 404 204
192.168.0.6 - badcred [11/Mar/2011:05:23:25 -0600] "GET / HTTP/1.0" 200 6594
127.0.0.1 - - [11/Mar/2011:05:27:56 -0600] "GET /alvingolf/TMPxh1nl6.php HTTP/1.1" 500 535
127.0.0.1 - - [11/Mar/2011:05:28:18 -0600] "GET /nails/TMP1kkex6q.php HTTP/1.1" 200 6454
127.0.0.1 - - [11/Mar/2011:05:36:49 -0600] "GET /alvingolf/TMP13m8jzk.php HTTP/1.1" 500 535
127.0.0.1 - - [11/Mar/2011:05:36:57 -0600] "GET /alvingolf/TMP1n6kpm4.php HTTP/1.1" 500 535
127.0.0.1 - - [11/Mar/2011:05:38:40 -0600] "GET /alvingolf/TMP1e1eec3.php HTTP/1.1" 500 535
192.168.0.9 - - [11/Mar/2011:05:38:48 -0600] "GET /HNAP1/ HTTP/1.1" 404 204
192.168.0.9 - - [11/Mar/2011:05:38:51 -0600] "GET /TEADevInfo/ HTTP/1.1" 404 209
192.168.0.6 - - [11/Mar/2011:05:39:54 -0600] "GET /HNAP1/ HTTP/1.1" 404 204
192.168.0.6 - - [11/Mar/2011:05:39:57 -0600] "GET /TEADevInfo/ HTTP/1.1" 404 209
192.168.0.6 - badcred [11/Mar/2011:05:40:02 -0600] "GET / HTTP/1.0" 200 6594
127.0.0.1 - - [11/Mar/2011:05:40:49 -0600] "GET / HTTP/1.1" 200 6594
127.0.0.1 - - [11/Mar/2011:05:50:06 -0600] "GET /alvingolf/TMP1i46k2i.php HTTP/1.1" 500 535
127.0.0.1 - - [11/Mar/2011:05:50:15 -0600] "GET /alvingolf/TMPcuw0ny.php HTTP/1.1" 500 535
127.0.0.1 - - [11/Mar/2011:05:51:27 -0600] "GET /maidservicetexas/TMPuzua2v.php HTTP/1.1" 500 535
192.168.0.9 - - [11/Mar/2011:05:58:52 -0600] "GET /HNAP1/ HTTP/1.1" 404 204
192.168.0.9 - - [11/Mar/2011:05:58:55 -0600] "GET /TEADevInfo/ HTTP/1.1" 404 209
192.168.0.9 - badcred [11/Mar/2011:05:58:58 -0600] "GET / HTTP/1.0" 200 6594
127.0.0.1 - - [11/Mar/2011:06:00:34 -0600] "GET /alvingolf/TMPi4eiyo.php HTTP/1.1" 500 535
==========================================

I noticed that the IP address is different for alvingolf and maidservicetexas (both of which I can't access). I did look at my alias file, and I saw this code. I don't know if it is correct or in the right place. I don't have an .htaccess file, and I don't know if or where I should change the IP of these sites. I know I never set it for the ones that are working. I just set up the sites in Dreamweaver and it started working.

===================================
<Directory "c:/wamp/apps/phpmyadmin3.2.0.1/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>
==================================

I did also try changing the IP address in my hosts file to

192.168.0.9 localhost

but that did nothing, so I changed it back to

127.0.0.1 localhost

which, as I stated above, is what it was set to.

I then noticed that the authn_alias_module was not checked, so I checked it and tried again. (I still got the same errors.)

It was after this test that I tried loading maidservicetexas (and I had all the log files open--that was the only thing that was different--don't know if it matters), and then I got an actual error message from Wamp, not just in the browser.

The error message window was titled "Aestan Tray Menu" and the text reads as follows:

==================
Could not execute menu item (internal error) [EAccessViolation] Access violation at address 004F1AE0 in module 'wampmanager.exe'. Read of address 0317AF64
==================

I looked around the Wamp menus for a "wampmanager" module but I could not find it. Hopefully this is enough information for someone to go by. I do also have an Apache error log, but it is very long. I'll save it for a reply in case you don't need it. This message is long enough for now. smiling smiley

Thanks so much for your help!
Karen

Karen Farrell
Farrell Documentation & Web Design

Nothing is impossible. Some things just require more steps. -KF

Options: ReplyQuote
Re: Internal Server Error - Only some sites
Posted by: stevenmartin99 (---.b-ras1.srl.dublin.eircom.net)
Date: March 11, 2011 02:08PM

sounds like a .htaccess file has a n error in them...

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Internal Server Error - Only some sites
Posted by: farrelldoc (---.dsl.hstntx.sbcglobal.net)
Date: March 11, 2011 02:41PM

Thanks for your quick reply!

The .htaccess file in the site itself? What kind of an error should I look for? Here is the .htaccess file for maidservicetexas:

=====================
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.maidservicetexas.com$
RewriteRule ^(.*)$ [www.maidservicetexas.com] [R=301]
=====================


and here is the one for alvingolf

====================
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} ^alvingolf\.com$ [NC]
RewriteRule ^(.*)$ [www.alvingolf.com] [R=301,L]

<FilesMatch "\.(ini|conf|inc)$">
deny from all
</FilesMatch>



#################################################################
# parsing html as php
AddHandler application/x-httpd-php5 .html .htm

#################################################################
# To only change certain files from http to https, the rest from
# https to http. Absolute links are set up throughout the site,
# but if a visitor for some reason edits the URL in the address
# bar, the URL will change back to the proper format.

RewriteCond %{HTTP_HOST} ^alvingolf.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.alvingolf.com$
RewriteRule ^aga\.html$ "https\:\/\/www\.alvingolf\.com\/aga\.php" [R=301,L]

RewriteCond %{HTTP_HOST} ^alvingolf.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.alvingolf.com$
RewriteRule ^contact\-us\.html$ "https\:\/\/www\.alvingolf\.com\/contact\-us\.php" [R=301,L]

RewriteCond %{HTTP_HOST} ^alvingolf.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.alvingolf.com$
RewriteRule ^membership\-application\.html$ "https\:\/\/www\.alvingolf\.com\/membership\-application\.php" [R=301,L]

RewriteCond %{HTTP_HOST} ^alvingolf.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.alvingolf.com$
RewriteRule ^pay\-online\.html$ "https\:\/\/www\.alvingolf\.com\/pay\-online\.php" [R=301,L]

RewriteCond %{HTTP_HOST} ^alvingolf.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.alvingolf.com$
RewriteRule ^register\-for\-tournaments\.html$ "https\:\/\/www\.alvingolf\.com\/register\-for\-tournaments\.php" [R=301,L]

RewriteCond %{HTTP_HOST} ^alvingolf.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.alvingolf.com$
RewriteRule ^set\-up\-autopay\.html$ "https\:\/\/www\.alvingolf\.com\/set\-up\-autopay\.php" [R=301,L]

AddType application/xml rss

Karen Farrell
Farrell Documentation & Web Design

Nothing is impossible. Some things just require more steps. -KF

Options: ReplyQuote
Re: Internal Server Error - Only some sites
Posted by: farrelldoc (---.dsl.hstntx.sbcglobal.net)
Date: March 11, 2011 02:58PM

OK, I went and looked at another post I had about this same topic a year ago (I changed my view settings in my profile), and the instruction was to activate my Apache rewrite module. I did that, and it worked! At least it worked for my nonsecure pages.

For my pages that are set to render in SSL, it does not work. I get an error in IE that IE cannot display the webpage. In Chrome, it is a little more descriptive:

SSL connection error
Unable to make a secure connection to the server. This may be a problem with the server, or it may be requiring a client authentication certificate that you don't have.
Error 107 (net::ERR_SSL_PROTOCOL_ERROR): SSL protocol error.

Does anyone know what I can do to enable this? I tried the Apache SSL Module, but that didn't help. In fact, I only got yellow. Then I unchecked it, and the lock icon is still there, although it went back to white.

Thanks again for your help!
Karen

Karen Farrell
Farrell Documentation & Web Design

Nothing is impossible. Some things just require more steps. -KF

Options: ReplyQuote
Re: Internal Server Error - Only some sites
Posted by: yfastud (Moderator)
Date: March 11, 2011 04:21PM


Options: ReplyQuote
Re: Internal Server Error - Only some sites
Posted by: farrelldoc (---.dsl.hstntx.sbcglobal.net)
Date: March 16, 2011 12:44AM

Thank you yfastud,

I went through all the steps, but when I got to Step 43, "enable SSL on WAMP," my server turned yellow. I tried restarting everything, stopping and restarting, exiting, etc., etc.

Then I just went to the next steps, but Step 45, " enabling php_openssl," would not work at all. It just won't enable. When I try, I get this error message, "Could not execute menu item (internal error) [Exception] Could not perform service action: The service has not been started".

I'm not sure what to do next. I should note that I'm using apache2.2.11, but I did use that replace apache2.2.8 with apache2.2.11 where you had that in the directions. Other than that, I followed everything.

Thanks so much for your help,
Karen

Karen Farrell
Farrell Documentation & Web Design

Nothing is impossible. Some things just require more steps. -KF

Options: ReplyQuote
Re: Internal Server Error - Only some sites
Posted by: yfastud (Moderator)
Date: March 16, 2011 02:02AM

Did you check the last comment on my blog about the fix for the error?

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Internal Server Error - Only some sites
Posted by: farrelldoc (---.dsl.hstntx.sbcglobal.net)
Date: March 16, 2011 02:33AM

Yes, I changed the line beginning with CustomLog to

CustomLog "C:/wamp/logs/ssl_request.log% t% h% {} x%
{SSL_PROTOCOL SSL_CIPHER} x \"%r\"%b"

Then restarted all the services, and there was no change. I tried to run the recommended command from C:\wamp\bin\apache\Apache2.2.11\bin, but the result was that httpd-t is not recognized as an internal or external command, operable program or batch file.

Thanks,
Karen

Karen Farrell
Farrell Documentation & Web Design

Nothing is impossible. Some things just require more steps. -KF

Options: ReplyQuote
Re: Internal Server Error - Only some sites
Posted by: yfastud (Moderator)
Date: March 16, 2011 03:48AM


Options: ReplyQuote
Re: Internal Server Error - Only some sites
Posted by: farrelldoc (---.dsl.hstntx.sbcglobal.net)
Date: March 16, 2011 04:37AM

No, it is exactly as posted.

Karen Farrell
Farrell Documentation & Web Design

Nothing is impossible. Some things just require more steps. -KF

Options: ReplyQuote
Re: Internal Server Error - Only some sites
Posted by: yfastud (Moderator)
Date: March 16, 2011 05:23PM

It must be only 1 line, and just not that line but all the edit lines

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Internal Server Error - Only some sites
Posted by: farrelldoc (---.dsl.hstntx.sbcglobal.net)
Date: March 17, 2011 02:55PM

I changed it to one line, and I get the same result. (I had it on two lines because that it how you show it in your screen shot--lines 232 and 233: [guides.jlbn.net].)

I went back and checked every edit line, and I have all of them on one line except for the lines under Virtual Host, which you show on separate lines in your screen shot.

Could it be that other steps are required for 2.2.11? I'm at a loss.

I appreciate your help. Thanks!

Karen Farrell
Farrell Documentation & Web Design

Nothing is impossible. Some things just require more steps. -KF

Options: ReplyQuote


Sorry, only registered users may post in this forum.