Help ....WAMP64 - Internal Server Error, no way to start localhost
Posted by: giovannino (151.71.62.---)
Date: October 26, 2023 06:25PM

I'm using Wamp Server W10 from many years. Today it stopped to work with the Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

When I try to write on browser : localhost then the error comes out.
The wamp icon is green

I read and tried to make the apache modules - rewrite-module but the issue is still present and localhost don't work.
This is the apache log
[Thu Oct 26 13:50:33.036452 2023] [mpm_winnt:notice] [pid 8736:tid 688] AH00455: Apache/2.4.27 (Win64) PHP/7.0.23 configured -- resuming normal operations
[Thu Oct 26 13:50:33.036452 2023] [mpm_winnt:notice] [pid 8736:tid 688] AH00456: Apache Lounge VC15 Server built: Jul 7 2017 12:46:00
[Thu Oct 26 13:50:33.036452 2023] [core:notice] [pid 8736:tid 688] AH00094: Command line: 'c:\\wamp64\\bin\\apache\\apache2.4.27\\bin\\httpd.exe -d C:/wamp64/bin/apache/apache2.4.27'
[Thu Oct 26 13:50:33.052087 2023] [mpm_winnt:notice] [pid 8736:tid 688] AH00418: Parent: Created child process 12972
[Thu Oct 26 13:50:33.489930 2023] [mpm_winnt:notice] [pid 12972:tid 616] AH00354: Child: Starting 64 worker threads.
[Thu Oct 26 13:50:50.922659 2023] [core:alert] [pid 12972:tid 1192] [client ::1:50544] C:/.htaccess: RewriteBase takes one argument, the base URL of the per-directory context
[Thu Oct 26 13:50:51.022640 2023] [core:alert] [pid 12972:tid 1192] [client ::1:50545] C:/.htaccess: RewriteBase takes one argument, the base URL of the per-directory context, referer: [localhost]
[Thu Oct 26 13:51:01.157066 2023] [core:alert] [pid 12972:tid 1192] [client 127.0.0.1:50546] C:/.htaccess: RewriteBase takes one argument, the base URL of the per-directory context

I also don't find the .htaccess under c:\wamp directory but probably it's correct

I'm not a programmer and I don't understand the issue. I'm very worry because I got lot lot of things inside.

Have you got gently hints to fix it ?
Thanks

Options: ReplyQuote
Re: Help ....WAMP64 - Internal Server Error, no way to start localhost
Posted by: Otomatic (Moderator)
Date: October 26, 2023 06:47PM

> Apache/2.4.27
> Server built: Jul 7 2017

As Windows 10 evolves over the years, so must Wampserver and Apache.

> I also don't find the .htaccess under c:\wamp
There is no .htaccess file with Wampserver. Look carefully, it says: C:/.htaccess, so it's in the root of C: and this .htaccess file does not come from Wampserver.

> Internal Server Error
Most often caused by a database access problem. Localhost is not accessing a database. This is a problem with one of your local sites.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Help ....WAMP64 - Internal Server Error, no way to start localhost
Posted by: giovannino (151.71.62.---)
Date: October 29, 2023 03:35PM

Thanks for reply,

need I to reinstall everything from scratch or is it possible to fix the localhost connection to db ?

I did a almost (not all) quite successful dump of all previous database using
C:\wamp64\bin\mysql\mysql5.7.19\bin\mysqldump.exe -u root -p dbnane > D:\BACKUP\WAMP_MYSQL_291023\dbname.sql

Now I got about 40 directory under C:\wamp64\www directory . I copied all to a temp directory.

Now I'm going to reinstall the new version of WAMP SERVER.
May I then copy all the directory back to C:\wamp64\www directory or it make a mess ?
I can't lose the work of years ....

Options: ReplyQuote
Re: Help ....WAMP64 - Internal Server Error, no way to start localhost
Posted by: Otomatic (Moderator)
Date: October 29, 2023 04:34PM

Hi,

> or is it possible to fix the localhost connection to db ?
You'll have to look in the mysql log file to see what the errors are!

If PhpMyAdmin is available, export your databases there.

> copy all the directory back to C:\wamp64\www directory or it make a mess ?
In principle, this won't be a problem.
But with VirtualHost, there's no obligation to have your local sites in the Wampserver tree.
Reread The need for Virtual Host

I can't lose the work of years ....
There are three commandments in computing:
- Make backups
- Make reliable backups
- Make reliable backups often.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Help ....WAMP64 - Internal Server Error, no way to start localhost
Posted by: giovannino (151.71.32.---)
Date: November 02, 2023 04:02PM

Hello,

I checked everything and also the Apache modules flag --> rewite_module is on.


The apache error log file after clean is this one
--- File cleaned up by Wampserver ---
--- on 2023-11-02 14:39
[Thu Nov 02 15:42:39.389491 2023] [core:alert] [pid 11764:tid 1228] [client ::1:50186] C:/wamp64/www/cerealcorner/public_html/.htaccess: Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration, referer: [localhost]
[Thu Nov 02 15:42:39.497057 2023] [core:alert] [pid 11764:tid 1228] [client ::1:50188] C:/wamp64/www/cerealcorner/public_html/.htaccess: Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration, referer: [cerealcorner]

No error on php and mysql log

But using older version of wampserver I didn't have any issue in many years . What is changed ? Also the issue about to create virtual host there was not present.
I got all my application under www directory and I don't understand why I have to create many virtual host now.
I'm not a programmer and this is not easy to manage for me.

Options: ReplyQuote
Re: Help ....WAMP64 - Internal Server Error, no way to start localhost
Posted by: Otomatic (Moderator)
Date: November 02, 2023 04:16PM

Hi,

Your .htaccess file problem is not due to Wampserver.

Perhaps you need to enable loading of the Apache module headers_module

> I don't understand why I have to create many virtual host now.
Because that's how Apache works, and that's how all hosting providers work.

What was possible ten years ago with Apache and PHP is no longer possible, and so much the better.
This corrects many security flaws and standardizes the way things are done. There are rules to follow, and if you don't follow them, it won't work.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.