Quantcast
Channel: WampServer - WampServer English
Viewing all 3234 articles
Browse latest View live

Error when importing database with nine version WAMP SERVER 64 BITS (X64) 3.2.0 (no replies)

$
0
0
Hello,
I had an old version of Wampserver. With that I backed up all databases in this way: I clicked on the database, then on "Export". I left it marked "Fast - displays the minimum of options". I also backed up my www folder.
Then I went to [www.wampserver.com] and downloaded WAMP SERVER 64 BITS (X64) 3.2.0. I noticed the need to install some files at that time indicated in the installation.
With that, I clicked on phpMyAdmin 4.9.2. Then opened the home screen "Welcome to phpMyAdmin" and in "User:" I indicated "root", as I always did. In "Server choice:" it shows "MariaDB" and before I entered MySQL. I couldn't find where to mark it so I can enter it with "MySQL".
As I always used MySQL I left MySQL checked and opened "phpmyadmin" at http: //localhost/phpmyadmin/index.php? Server = 2.
To do the import I clicked on the "import" tab, then went to "Search your computer:" "Brawse" and pointed to my file that I want to import.
It turns out that it only shows error according to this example:
File name in the backup folder: banco_teste.sql
After pointing to the file and clicking "Run" it shows the following result:
1) "Import finished successfully, 18 queries executed. (Banco_teste.sql)";
2) below it shows the following message:
"Mistake
SQL command:
-
- Database: `banco_teste`
-
- ------------------------------------------------ --------
-
- Structure of the `registration` table
-
DROP TABLE IF EXISTS `registration`
MySQL Messages: Documentation
# 1046 - No database was selected "

I clarify that the database is not imported.
I've been trying for two days and I can't solve it.
Please help me.

WAMPSERVER (4 replies)

$
0
0
Hello

I have recently installed on my PC wampserver. All the services are running. however when i click on localhost the iisstart page comes up. i have removed the iis feature and have also blocked the service in services.msc.

but the iisstart page comes up. Any suggestions will be appreciated. Thank you.
Themis

PHP page shows error with the new version of Wampserver64 (no replies)

$
0
0
PHP page shows error with the new version of Wampserver64

Dear,
My problem is no longer importing databases to phpMyAdmin considering the new version of Wampserver64 installed. It has already been resolved.
The problem is that all my PHP pages with a database connection have an error, or better, they don't work.
Example of one of the pages showing an error message.

Notice: Undefined variable: PDO in C: \ wamp64 \ www \ my pages \ versao_03 \ index.php on line 62

Fatal error: Uncaught Error: Call to a member function query () on null in C: \ wamp64 \ www \ my pages \ versao_03 \ index.php on line 62

Error: Call to a member function query () on null in C: \ wamp64 \ www \ my pages \ version_03 \ index.php on line 62


Line 62, in the example code is:
$ result = $ PDO-> query ($ sql);

Please, what do I lose in returning Wampserver to the version it was in? It predates this Wampserver64, but it worked.

This new version touches a lot. Do I have to change the page code in PHP.
The SQL I have in the database that previously worked were tested on phpMyAdmin with the Wampserver64 version and the result was satisfactory. But there is no point working in phpMyAdmin and the pages do not work.
I repeat, I would like to go back to the previous version of Wampserver. Please, what do you think?


Thank you.

Configuring DNS to resolve to WAMP Virtual Host? (1 reply)

$
0
0
I have a website set up on a VM using WAMP. That VM is on a network with an internal domain 123.net. In DNS, I've configured a CNAME (site.123.net) to point to the VM. However, when I try site.123.net, I get a 403 Forbidden error (its a wamp error, so its hitting wamp) What is the next step to configure it so that when I type site.123.net, it goes straight to the website?

Just need to access it internally, not from outside the internal network.

Wamp 3.2.0 si blocca (2 replies)

$
0
0
WampServer si blocca durante l'estrazione del file jpa in locale. Il file è stato prodotto con akeeba e portato in locale con filezilla.

qualcuno sa il motivo?
GRAZIE

Menu item: Online / Offline not visible (1 reply)

$
0
0
WampServer(Right Click)-> Wamp Settings -> Menu item: Online / Offline not visible.

How can I visible this?

Update PHP to 7.4.4 Apache wont start (2 replies)

$
0
0
Hello
when I update my PHP to 7.4.4 Apache won't start. Can someone please point me in the direction to identify the problem?
thank you
Paul

Problem with changing post_max_size (2 replies)

$
0
0
Hello,

I have installed WordPress to my Wamp Server.

I'm trying to change these:
post_max_size from 8M to 64M.
upload_max_filesize from 2M to 64M
max_input_time from 60 to 120.

A while ago they worked normally but today I checked out that they won't work.
I have changed those values in php.ini, WordPress's .htaccess file and wp-config file.
But my WordPress still says that I have old values.

What could I do?

Best Regards
PB

Problems with SSL certificate and WordPress (no replies)

$
0
0
Hello!

I have had WordPress on my Wamp Server.
Now I installed succesfully SSL certificate to my server.

WordPress's frontpage looks normally and I can see that SSL certificate works.
But all another pages says: "404 Page not found".

I can still see my pages when I change https:// --> http:// from beginning of the url.
But on https:// everything else except frontpage says 404.
What could I do?

PB

mysql console not executing (won't launch, cant getpast username input) (1 reply)

$
0
0
1 - Windowsw version - Windows 10 Pro, v1909, 64bit
2 - Version WampServer - 3.2.0, 64 bit
3 - Apache Version - 2.4.39
4 - PHP Version - 7.2.18
5 - MySQL Version - 5.7.26
5a - MariaDB version if applicable - 10.3.14
6 - What color is the WampServer icon GREEN
7 - N/A
8 - Do you have access to localhost? YES
8a - If so, is there an error message at the bottom of the page? NO
9 - Do you have access to phpMyAdmin? YES
10 - If you refer to an error message, please include the EXACT wording of the error in your post. DONE
11 - If you use an Antivirus and / or Firewall, please include the names of these. Avast, Malwarebytes
12 - What is the full path to the installation of WampServer - "C:\wamp64"
13 - If you have one or more Virtual Hosts defined, please show their definition(s). THIS IS WORKING:
# Virtual Hosts
#
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>



<VirtualHost *:80>
ServerName chi-wordpress.local
ServerAlias www.chi-wordpress.local
DocumentRoot "${INSTALL_DIR}/www/chi-wordpress"
<Directory "${INSTALL_DIR}/www/chi-wordpress/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>


---


Hello everyone

When attempting to open MySQL Console either through the system tray or navigating via command line, I am prompted to enter my enter my username (root), however instead of asking for my password i get this error message:


Could not execute run action: %1 is not a valid Win32 application
Action : Run
Filename: c:/wamp64/bin/mysql/mysql5.7.26/bin/mysql.exe
Parameters: -u %MysqlUser% -p


Trying to import a large db, as you all know, phpMyAdmin is very slow in comparison.

I'm not able to find any answers as to why this is occurring specifically with wamp/mysql, but I understand there may be a mix up in regard to a 32bit application on a 64bit pc? Did not quite understand this.

I've tried upgrading to the latest version of wamp to no avail.

MariaDB console works, but I am unfamiliar with it.

Thanks for any help, happy to provide more info or screenshots if that will help clear anything up.

check_virtualhost( ) in the wampserver.lib.php raises errors (1 reply)

$
0
0
Hi Guys,

The issue is presented based on the 13 questions.

1 – Windows version used (Specify version number AND whether 32 or 64 bit)
Windows 10 X64, Single Language (Build 18362)

2 – Version WampServer (Specify version number AND whether 32 or 64 bit)
WampServer 3.2.0 X64

3 – Apache Version
Apache 2.4.41

4 – PHP Version
PHP Version 7.4.4

5 – DBMS
5a - MySQL version if applicable – Not Installed.
5b - MariaDB version if applicable – MariaDB version 10.4.12.

6 - What color is the WampServer icon (in the notification area of the taskbar) When all goes well it should be green, but it may be red or orange.
The icon is green.

The following is not applicable because the icon is green..

If the WampServer icon is NOT GREEN please ensure you have looked at these files :-
a - Apache logs
-- ( wampmanager -> Apache -> Apache error log )
-- ( wampmanager -> Apache -> Apache access log )
b1 - MySQL error log ( wampmanager -> MySQL -> MySQL log )
b2 - MariaDB error log ( wampmanager -> MariaDB -> Mariadb log )
c - PHP error log ( wampmanager -> PHP -> PHP error log )

Depending on the error, one or all of the above may be empty so also look at
d - The windows event viewer
--- Windows Key + R to launch the run dialogue then enter eventvwr.exe and press the OK button
--- - On the left side of the windows click 'Windows Logs -> Applications'
--- - Look for the names 'Apache Service' or 'MySQL' in the Source column which have an error symbol in the first column.

If you find any errors that you cannot fix for yourself please post the COMPLETE EXACT error message in your question.


7 - In the file c:\Windows\System32\drivers\etc\hosts, what are the active lines?
* Active means no # at the beginning of the line.


If the WampServer icon is green:

8 - Do you have access to localhost (Homepage WampServer)?
Yes, I can access localhost homepage.
8a - If so, is there an error message at the bottom of the page?
There is not error at the bottom. However, there are errors before the page is displayed. The following batch of errors are raised twice:
Notice: Undefined index: ServerName in D:\wamp64\scripts\wampserver.lib.php on line 715
Notice: Undefined index: DocumentRoot in D:\wamp64\scripts\wampserver.lib.php on line 716
Notice: Undefined index: Port in D:\wamp64\scripts\wampserver.lib.php on line 717
Notice: Undefined index: Port in D:\wamp64\scripts\wampserver.lib.php on line 718

Note:
According to the call stack the errors were raised in the check_virtualhost( ) function in the wampserver.lib.php after the function was called in index.php on line 156.

9 - Do you have access to phpMyAdmin?
Yes, I can access phpMyAdmin 5.0.2.1
10 - If you refer to an error message, please include the EXACT wording of the error in your post
Please refer to point 8a above.

11 - If you use an Antivirus and / or Firewall, please include the names of these
ESET Internet Security 13.1.16.0

12 - What is the full path to the installation of WampServer (eg D:\wamp\)
d:\wamp64\

13 - If you have one or more Virtual Hosts defined, please show their definition(s)

I included both Vhosts and SSL definitions.

I believe the the errors are raised by the three directory definitions in testsite2.dz


############ Definitions ############

#---------------------------------- localhost ----------------------------------#

ServerName localhost
ServerAlias localhost
DocumentRoot "${INSTALL_DIR}/www"

# Per host logging
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" VirtualHostComonLog
ErrorLog "${SRVROOT}/logs/localhost-error.log"
CustomLog "${SRVROOT}/logs/localhost-access.log" VirtualHostComonLog

# Directory Options
<Directory "${INSTALL_DIR}/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>

#---------------------------------- testsite1.dz ----------------------------------#

<VirtualHost *:80>
ServerName testsite1.dz
ServerAlias www.testsite1.dz
DocumentRoot "d:/wamp64/www/vhosts/testsite1.dz/wwwroot/"

# Per host logging
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" VirtualHostComonLog
ErrorLog "${SRVROOT}/logs/testsite1.dz-error.log"
CustomLog "${SRVROOT}/logs/testsite1.dz-access.log" VirtualHostComonLog

# Directory Options
<Directory "d:/wamp64/www/vhosts/testsite1.dz/wwwroot/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
Require ip 192.168.1.1/28 192.168.0.1/28
</Directory>
</VirtualHost>

#---------------------------------- testsite2.dz ----------------------------------#

<VirtualHost *:80>
ServerName testsite2.dz
ServerAlias www.testsite2.dz
DocumentRoot "d:/wamp64/www/vhosts/testsite2.dz/wwwroot/"

# Per host logging
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" VirtualHostComonLog
ErrorLog "${SRVROOT}/logs/testsite2.dz-error.log"
CustomLog "${SRVROOT}/logs/testsite2.dz-access.log" VirtualHostComonLog

# Directory Options
<Directory "D:/wamp64/www/vhosts/testsite2.dz/wwwroot">
AllowOverride FileInfo
Require all granted
Require ip 192.168.1.1/28 192.168.0.1/28
</Directory>
<Directory "D:/wamp64/www/vhosts/testsite2.dz/wwwroot/sites">
AllowOverride None
</Directory>
<Directory "D:/wamp64/www/vhosts/testsite2.dz/wwwroot/sites/default/documents">
Require all denied
</Directory>
</VirtualHost>

############ SSL Definitions ############

#---------------------------------- testsite1.dz ----------------------------------#

<VirtualHost *:443>
DocumentRoot "d:/wamp64/www/vhosts/testsite1.dz/wwwroot/"
ServerName testsite1.dz:443
ServerAdmin admin@testsite1.dz

# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on

# SSl Setup
SSLCertificateFile "d:/wamp64/bin/apache/apache2.4.41/conf/ssl.crt/testsite1.crt"
SSLCertificateKeyFile "d:/wamp64/bin/apache/apache2.4.41/conf/ssl.key/testsite1.key"

# Logging
ErrorLog "${SRVROOT}/logs/testsite1.dz-error.log"
TransferLog "${SRVROOT}/logs/testsite1.dz-access.log"
CustomLog "${SRVROOT}/logs/testsite1.dz-ssl_request.log" \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

# Directory Options
<Directory "d:/wamp64/www/vhosts/testsite1.dz/wwwroot/">
# SSLOptions +StdEnvVars
Options ExecCGI FollowSymLinks Includes Indexes
AllowOverride All
Require all granted
Require ip 192.168.1.1/28 192.168.0.1/28
</Directory>
</VirtualHost>

#---------------------------------- testsite2.dz ----------------------------------#

<VirtualHost *:443>
DocumentRoot "d:/wamp64/www/vhosts/testsite2.dz/wwwroot/"
ServerName testsite2.dz:443
ServerAdmin admin@testsite2.dz

# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on

# SSl Setup
SSLCertificateFile "d:/wamp64/bin/apache/apache2.4.41/conf/ssl.crt/testsite2.crt"
SSLCertificateKeyFile "d:/wamp64/bin/apache/apache2.4.41/conf/ssl.key/testsite2.key"

# Logging
ErrorLog "${SRVROOT}/logs/testsite2.dz-error.log"
TransferLog "${SRVROOT}/logs/testsite2.dz-access.log"
CustomLog "${SRVROOT}/logs/testsite2.dz-ssl_request.log" \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

# Directory Options
<Directory "D:/wamp64/www/vhosts/testsite2.dz/wwwroot">
AllowOverride FileInfo
Require all granted
Require ip 192.168.1.1/28 192.168.0.1/28
</Directory>
<Directory "D:/wamp64/www/vhosts/testsite2.dz/wwwroot/sites">
AllowOverride None
</Directory>
<Directory "D:/wamp64/www/vhosts/testsite2.dz/wwwroot/sites/default/documents">
Require all denied
</Directory>
</VirtualHost>

Help to resolve the issue will be appreciated.

how to keep the computer from going to sleep when WAMP is active (no replies)

$
0
0
1 - Win7 Pro 64-bit
2 - WampServer 3.20 64-bit
3 - Apache Version 2.4.41
4 - PHP Version 7.3.12
5 - MySQL Version 5.7.28
6 - What color is the WampServer icon- green. no wait, avocado. YAAAAAAaaaa...*thud*
7 - In the file c:\Windows\System32\drivers\etc\hosts, what are the active lines with the name [localhost] in them? * Active means no # at the beginning of the line.
127.0.0.1 localhost
::1 localhost
If the WampServer icon is green:
8 - Do you have access to localhost (Homepage WampServer)? yes
9 - Do you have access to phpMyAdmin? yes
10 - If you refer to an error message, please include the EXACT wording of the error in your post
no error message
11 - If you use an Antivirus and / or Firewall, please include the names of these
no antivirus or firewall
12 - What is the full path to the installation of WampServer (eg D:\wamp\)
e:\wamp64\

like a lot of people, I'm using WAMP as a server at home. as such, clients will connect infrequently and the computer spends most of the time sleeping.

when a client tries to connect, the computer wakes up and WAMP does its thing with no problem.

but, after the set time, the computer goes to sleep again and the client is cut off. has to refresh the connection to wake the computer again.

the only other option I know about is to set the computer to never sleep. but I don't want it running 24/7. I want it to sleep when not in use.

how do I keep the computer from going to sleep when WAMP is active (such as transfering a file or a user is changing pages on a forum) but allow it to sleep after a period of inactivity?

How to activate MySQL/MariaDB (1 reply)

$
0
0
How to activate mariadb and mysql in wampserver menu how to choose real start menu

PHP returns bad HTML (1 reply)

$
0
0
Windows 7 Professional
installed WAMPSERVER x64
WAMPSERVER GREEN
WampServer Version 3.2.0 64bit
Created by Romain Bourdon (2005)
Maintainer / Upgrade to 2.5 by Herve Leclerc
Upgrade to 3 by Otomatic (wampserver@otomatic.net)
Multi styles for homepage by Jojaba
Installer by Inno Setup: [www.jrsoftware.org]
Forum Wampserver: [forum.wampserver.com]
______________________ Versions used ______________________
Apache 2.4.41 Port 80- PHP 7.3.12
MySQL 8.0.18 Port 3308
MariaDB 10.4.10 Port 3306
PHP 5.6.40 for CLI (Command-Line Interface)
-----------------------------------------
**test code: from w3schools.com sample**

<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<body>
<?php
echo "<h2>PHP is Fun!</h2>";
echo "Hello world!<br>";
echo "I'm about to learn PHP!<br>";
echo "This ", "string ", "was ", "made ", "with multiple parameters.";
?>
</body>
</html>
----------------------------------------------
**here is what display in browser**

PHP is Fun!"; echo "Hello world!
"; echo "I'm about to learn PHP!
"; echo "This ", "string ", "was ", "made ", "with multiple parameters."; ?>

**here is the HTML from PHP:**
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<!--?php echo "<h2-->
PHP is Fun!"; echo "Hello world!
<br>
"; echo "I'm about to learn PHP!
<br>
"; echo "This ", "string ", "was ", "made ", "with multiple parameters."; ?>
</body>
</html>

ANY IDEAS???

wampserver 2.4 on win 10 not working on localhost (1 reply)

$
0
0
wampserver 2.4 on win 10
wampserver icon is green but, not working on localhost
gives error in chrome

"This site can’t be reached
localhost took too long to respond"

apache LOG
{[Thu Apr 02 21:08:30.443162 2020] [mpm_winnt:notice] [pid 3716:tid 672] AH00455: Apache/2.4.4 (Win32) PHP/5.4.16 configured -- resuming normal operations
[Thu Apr 02 21:08:30.443162 2020] [mpm_winnt:notice] [pid 3716:tid 672] AH00456: Server built: Feb 23 2013 13:07:34
[Thu Apr 02 21:08:30.443162 2020] [core:notice] [pid 3716:tid 672] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.4\\bin\\httpd.exe -d C:/wamp/bin/apache/Apache2.4.4'
[Thu Apr 02 21:08:30.458790 2020] [mpm_winnt:notice] [pid 3716:tid 672] AH00418: Parent: Created child process 6572
[Thu Apr 02 21:08:31.553758 2020] [mpm_winnt:notice] [pid 6572:tid 556] AH00354: Child: Starting 150 worker threads.
}

Securing MariaDB with SSL certificates (no replies)

$
0
0
Can someone please direct me on how to ensure that the MariaDB server is able to read the ssl certificates, Windows permissions and testing?

Thanks in advance.


Answers to the questions on "read (and answer) before you ask a question":
===============================================================
1. Windows version: Windows 10 X64, Single Language (Build 18362)
2. WampServer version: 3.2.0 64-bit
3. Apache version: 2.4.41 (64-bit according to the Wamp test page)
4. PHP version: 7.4.4
5. DBMS version: Maria DB 10.4.12
6. Icon status: Its green (all services started)
7. Active hosts (Not part of the issue):
127.0.0.1 localhost
::1 localhost

8. Wamp homepage: Yes, I can access localhost homepage.
9. "Do you have access to phpMyAdmin": Yes, I can access phpMyAdmin 5.0.2.1
10. Error message: N/A
11. Antivirus/firewall: ESET Internet Security 13.1.16.0
12. Installation path: d:\wamp64\
13. Virtual hosts: Not part of problem.

localhost connection refused on projects (1 reply)

$
0
0
I installed wampserver 3.2 on windows 10 ,32 bit machine successfully but when I try to open projects developed in a lower version 2.5 I get eror message :connection refused.
However, phpmyadmin connects well . I have five projects that I want access on my local machine.

Please help !

After changing PHP, Menu shows previous version (1 reply)

$
0
0
Good evening,

when i change the PHP-Version from PHP7.1.33 to PHP 7.2.25 via Aestran-Menu then PHP7.2.25 is selected (i could see it, when i run phpinfo on localhost), but the Aestran-Menu shows previous version PHP7.1.33.
The same is happen, if i try to change the php-cli-version. It feels like that the menu doesnt refresh. Restarting the Wamp server does not help.

I use the Aestran Tray Menu 3.2.2.8 on a Wampserver 3.2.0 64bit.

Can anyone understand that? Or knows what's wrong?

Upgrade Apache from 2.4.41 to 2.4.43 (1 reply)

$
0
0
Hello,

I recently installed the Apache 2.4.43 update file (as Administrator). However, upon switching to 2.4.43, the Wampserver icon stays on orange. MariaDb and MySQL are running, Apache is not.

Check State of Services
The service 'wampapache64' is not RUNNING nor STOPPED.
[SC] EnumQueryServicesStatus:OpenService failure(s) 1060 :
The specified service does not exist as an installed service.
********* The service 'wampapache64' does not exist ********

Next, I left click the WAMP icon >> Apache >> Service administration 'wampapache64' >> Install Service.

PHP command module opens with:
Your port 80 is available, Install will proceed.
Press Enter to continue...

I press Enter, command window closes.

Right click WAMP icon >> Tools >> Restart DNS. Icon remains orange.

Test Port 80
===== Tested by command netstat filtered on port 80 =====


Test for TCP
Port 80 is not found associated with TCP protocol
Port 80 is not found associated with TCP protocol

===== Tested by attempting to open a socket on port 80 =====

Your port 80 seems not actually used.
Unable to initiate a socket connection
Error number: 10060 - Error string: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.


Apparently, Apache service is still not installed. I tried installing Apache version 2.4.39 (64-bit). It works out of the box. At the moment, I removed 2.4.39 and 2.4.43. I am running only 2.4.41 as it is the last version that was working for me.

Any help with the upgrade to Apache 2.4.43 is appreciated. Thank you.

Running old PHP/MySQL/Apache versions (4 replies)

$
0
0
Good day,


For some very old software (around 2002) that I need to use, I need to use PHP 4.2.0, Apache 2.0.x and obviously whatever MySQL version was compatible at the time.

I've tried downloading the old PHP version from the old releases page, but it doesn't really seem to include many of the files that I need and I somehow doubt that this will work.

My WampServer version is 3.0.6. Is this even possible what I want to do? Does anyone have any suggestions or guidance for me as to how I can get all three working on my locaclhost?
Viewing all 3234 articles
Browse latest View live


Latest Images