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

Can , the Php errors, be connect to switch off the pc ? (1 reply)

$
0
0
Hi all,

I got some logs errors and I'm not able to understand what happens on stand alone PC with Wamp and PHP application running all day long 7 x 7.
Unfortunately I'm not a technician and it's hard to me understand what the issue is.
For me php errors are connected to anomalous switch off from users. Maybe data time it's very close to that event.
Can you please have a look to logs and tell me if the error is on application or due to anomalous switch off ?
Many thanks

[01-Jan-2020 12:29:00 UTC] PHP Notice: Undefined variable: _SERVER in C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php on line 19

[01-Jan-2020 12:29:00 UTC] PHP Stack trace:

[01-Jan-2020 12:29:00 UTC] PHP 1. {main}() C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php:0

[01-Jan-2020 12:29:00 UTC] PHP Notice: Undefined variable: _SERVER in C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php on line 22

[01-Jan-2020 12:29:00 UTC] PHP Stack trace:

[01-Jan-2020 12:29:00 UTC] PHP 1. {main}() C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php:0

[01-Jan-2020 12:29:00 UTC] PHP Notice: Undefined variable: _SERVER in C:\wamp64\www\Eos_Tat_Meter\_lib\lib\php\nm_ctrl_app_name.php on line 13

[01-Jan-2020 12:29:00 UTC] PHP Stack trace:

[01-Jan-2020 12:29:00 UTC] PHP 1. {main}() C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php:0

[01-Jan-2020 12:29:00 UTC] PHP 2. SC_dir_app_ini() C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php:1861

[01-Jan-2020 12:29:00 UTC] PHP Notice: Undefined variable: _SERVER in C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php on line 1930

[01-Jan-2020 12:29:00 UTC] PHP Stack trace:

[01-Jan-2020 12:29:00 UTC] PHP 1. {main}() C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php:0

[01-Jan-2020 12:29:00 UTC] PHP Notice: Undefined variable: _SERVER in C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php on line 1933

[01-Jan-2020 12:29:00 UTC] PHP Stack trace:

[01-Jan-2020 12:29:00 UTC] PHP 1. {main}() C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php:0

[01-Jan-2020 12:29:01 UTC] PHP Notice: Undefined variable: _SERVER in C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php on line 19

[01-Jan-2020 12:29:01 UTC] PHP Stack trace:

[01-Jan-2020 12:29:01 UTC] PHP 1. {main}() C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php:0

[01-Jan-2020 12:29:01 UTC] PHP Notice: Undefined variable: _SERVER in C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php on line 22

[01-Jan-2020 12:29:01 UTC] PHP Stack trace:

[01-Jan-2020 12:29:01 UTC] PHP 1. {main}() C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php:0

[01-Jan-2020 12:29:01 UTC] PHP Notice: Undefined variable: _SERVER in C:\wamp64\www\Eos_Tat_Meter\_lib\lib\php\nm_ctrl_app_name.php on line 13

[01-Jan-2020 12:29:01 UTC] PHP Stack trace:

[01-Jan-2020 12:29:01 UTC] PHP 1. {main}() C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php:0

[01-Jan-2020 12:29:01 UTC] PHP 2. SC_dir_app_ini() C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php:1861

[01-Jan-2020 12:29:01 UTC] PHP Notice: Undefined variable: _SERVER in C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php on line 1930

[01-Jan-2020 12:29:01 UTC] PHP Stack trace:

[01-Jan-2020 12:29:01 UTC] PHP 1. {main}() C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php:0

[01-Jan-2020 12:29:01 UTC] PHP Notice: Undefined variable: _SERVER in C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php on line 1933

[01-Jan-2020 12:29:01 UTC] PHP Stack trace:

[01-Jan-2020 12:29:01 UTC] PHP 1. {main}() C:\wamp64\www\Eos_Tat_Meter\checkRecordsGreen\trigger_check_timestamp_tubes_green.php:0

[01-Jan-2020 12:29:01 UTC] PHP Notice: Undefined variable: _SERVER in C:\wamp64\www\Eos_Tat_Meter\checkRecords\trigger_check_timestamp_tubes.php on line 19

[01-Jan-2020 12:29:01 UTC] PHP Stack trace:

[01-Jan-2020 12:29:01 UTC] PHP 1. {main}() C:\wamp64\www\Eos_Tat_Meter\checkRecords\trigger_check_timestamp_tubes.php:0

[01-Jan-2020 12:29:01 UTC] PHP Notice: Undefined variable: _SERVER in C:\wamp64\www\Eos_Tat_Meter\checkRecords\trigger_check_timestamp_tubes.php on line 22

[01-Jan-2020 12:29:01 UTC] PHP Stack trace:

[01-Jan-2020 12:29:01 UTC] PHP 1. {main}() C:\wamp64\www\Eos_Tat_Meter\checkRecords\trigger_check_timestamp_tubes.php:0

[01-Jan-2020 12:29:01 UTC] PHP Notice: Undefined variable: _SERVER in C:\wamp64\www\Eos_Tat_Meter\_lib\lib\php\nm_ctrl_app_name.php on line 13

[01-Jan-2020 12:29:01 UTC] PHP Stack trace:

[01-Jan-2020 12:29:01 UTC] PHP 1. {main}() C:\wamp64\www\Eos_Tat_Meter\checkRecords\trigger_check_timestamp_tubes.php:0

[01-Jan-2020 12:29:01 UTC] PHP 2. SC_dir_app_ini() C:\wamp64\www\Eos_Tat_Meter\checkRecords\trigger_check_timestamp_tubes.php:1893

[01-Jan-2020 12:29:01 UTC] PHP Notice: Undefined variable: _SERVER in C:\wamp64\www\Eos_Tat_Meter\checkRecords\trigger_check_timestamp_tubes.php on line 1962

[01-Jan-2020 12:29:01 UTC] PHP Stack trace:

[01-Jan-2020 12:29:01 UTC] PHP 1. {main}() C:\wamp64\www\Eos_Tat_Meter\checkRecords\trigger_check_timestamp_tubes.php:0

[01-Jan-2020 12:29:01 UTC] PHP Notice: Undefined variable: _SERVER in C:\wamp64\www\Eos_Tat_Meter\checkRecords\trigger_check_timestamp_tubes.php on line 1965

[01-Jan-2020 12:29:01 UTC] PHP Stack trace:

[01-Jan-2020 12:29:01 UTC] PHP 1. {main}() C:\wamp64\www\Eos_Tat_Meter\checkRecords\trigger_check_timestamp_tubes.php:0


APACHE LOG ERROR

[Tue Dec 31 13:35:21.214559 2019] [mpm_winnt:notice] [pid 2528:tid 260] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Tue Dec 31 13:35:23.242598 2019] [mpm_winnt:notice] [pid 3484:tid 312] AH00364: Child: All worker threads have exited.
[Tue Dec 31 13:35:23.289399 2019] [mpm_winnt:notice] [pid 2528:tid 260] AH00430: Parent: Child process 3484 exited successfully.
[Tue Dec 31 13:35:24.287818 2019] [mpm_winnt:notice] [pid 3800:tid 396] AH00455: Apache/2.4.33 (Win64) PHP/7.0.29 configured -- resuming normal operations
[Tue Dec 31 13:35:24.287818 2019] [mpm_winnt:notice] [pid 3800:tid 396] AH00456: Apache Lounge VC15 Server built: Mar 18 2018 12:58:47
[Tue Dec 31 13:35:24.287818 2019] [core:notice] [pid 3800:tid 396] AH00094: Command line: 'c:\\wamp64\\bin\\apache\\apache2.4.33\\bin\\httpd.exe -d C:/wamp64/bin/apache/apache2.4.33'
[Tue Dec 31 13:35:24.287818 2019] [mpm_winnt:notice] [pid 3800:tid 396] AH00418: Parent: Created child process 6040
[Tue Dec 31 13:35:24.584223 2019] [mpm_winnt:notice] [pid 6040:tid 312] AH00354: Child: Starting 64 worker threads.

[Wed Jan 01 13:29:38.022070 2020] [mpm_winnt:notice] [pid 3800:tid 396] AH00428: Parent: child process 6040 exited with status 255 -- Restarting.
[Wed Jan 01 13:29:40.705339 2020] [mpm_winnt:notice] [pid 3800:tid 396] AH00455: Apache/2.4.33 (Win64) PHP/7.0.29 configured -- resuming normal operations
[Wed Jan 01 13:29:40.705339 2020] [mpm_winnt:notice] [pid 3800:tid 396] AH00456: Apache Lounge VC15 Server built: Mar 18 2018 12:58:47
[Wed Jan 01 13:29:40.705339 2020] [core:notice] [pid 3800:tid 396] AH00094: Command line: 'c:\\wamp64\\bin\\apache\\apache2.4.33\\bin\\httpd.exe -d C:/wamp64/bin/apache/apache2.4.33'
[Wed Jan 01 13:29:40.720939 2020] [mpm_winnt:notice] [pid 3800:tid 396] AH00418: Parent: Created child process 5028
[Wed Jan 01 13:29:41.547761 2020] [mpm_winnt:notice] [pid 5028:tid 316] AH00354: Child: Starting 64 worker threads.


ACCESS LOG APACHE

[Tue Dec 31 13:35:21.214559 2019] [mpm_winnt:notice] [pid 2528:tid 260] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Tue Dec 31 13:35:23.242598 2019] [mpm_winnt:notice] [pid 3484:tid 312] AH00364: Child: All worker threads have exited.
[Tue Dec 31 13:35:23.289399 2019] [mpm_winnt:notice] [pid 2528:tid 260] AH00430: Parent: Child process 3484 exited successfully.
[Tue Dec 31 13:35:24.287818 2019] [mpm_winnt:notice] [pid 3800:tid 396] AH00455: Apache/2.4.33 (Win64) PHP/7.0.29 configured -- resuming normal operations
[Tue Dec 31 13:35:24.287818 2019] [mpm_winnt:notice] [pid 3800:tid 396] AH00456: Apache Lounge VC15 Server built: Mar 18 2018 12:58:47
[Tue Dec 31 13:35:24.287818 2019] [core:notice] [pid 3800:tid 396] AH00094: Command line: 'c:\\wamp64\\bin\\apache\\apache2.4.33\\bin\\httpd.exe -d C:/wamp64/bin/apache/apache2.4.33'
[Tue Dec 31 13:35:24.287818 2019] [mpm_winnt:notice] [pid 3800:tid 396] AH00418: Parent: Created child process 6040
[Tue Dec 31 13:35:24.584223 2019] [mpm_winnt:notice] [pid 6040:tid 312] AH00354: Child: Starting 64 worker threads.

[Wed Jan 01 13:29:38.022070 2020] [mpm_winnt:notice] [pid 3800:tid 396] AH00428: Parent: child process 6040 exited with status 255 -- Restarting.
[Wed Jan 01 13:29:40.705339 2020] [mpm_winnt:notice] [pid 3800:tid 396] AH00455: Apache/2.4.33 (Win64) PHP/7.0.29 configured -- resuming normal operations
[Wed Jan 01 13:29:40.705339 2020] [mpm_winnt:notice] [pid 3800:tid 396] AH00456: Apache Lounge VC15 Server built: Mar 18 2018 12:58:47
[Wed Jan 01 13:29:40.705339 2020] [core:notice] [pid 3800:tid 396] AH00094: Command line: 'c:\\wamp64\\bin\\apache\\apache2.4.33\\bin\\httpd.exe -d C:/wamp64/bin/apache/apache2.4.33'
[Wed Jan 01 13:29:40.720939 2020] [mpm_winnt:notice] [pid 3800:tid 396] AH00418: Parent: Created child process 5028
[Wed Jan 01 13:29:41.547761 2020] [mpm_winnt:notice] [pid 5028:tid 316] AH00354: Child: Starting 64 worker threads.

memchached is not showing on phpinfo (1 reply)

$
0
0
Hi , I use wamp64 3.2.2.4 on windows 10 machine, I installed the memcache and running on phpinfo but meemcached doesn't.
memcahced service is running...
On wamp when I choose php 7.2.18>php extensions I see php-7.2memcache with an exclamation mark..
Any suggestion?

wampserver3.1.9_x64 doesn't start (2 replies)

$
0
0
when I start wampserver the tray icon is red, and it's not clickable neither left or right click. when I double click the httpd.exe in "C:\wamp64\bin\apache\apache2.4.39\bin" I get this ```[prntscr.com]```
Is there maybe some conflicting .conf or .ini file somewhere in C:\\?

I can't publish/post my website online (7 replies)

$
0
0
Hello , users of WAMP , i just want to publish a site and I cant quite succeed to do so , i follow many tutorials along the way and still cant sort it out , I believe those are old and dont work anymore.
My concern is , that , I have added a virtual hosts , it appers right after i click on the wamp (left mouse click) , and it shows the server , as is working with a internet shortcut icon , but when i check it on other devices , it gaves me the error that it cannnot find the IP of the server, I have also inserted in my /drivers/etc/hosts/ file the ip 127.0.0.1 and the domain , ( with the localhost as main site of the file ) , and secondly my site right before localhost , but doenst work out , the error that appers on the server when i connect is : ERR_NAME_NOT_RESOLVED , and also I inserted into /conf/extra the file :


ServerAdmin mail@www.sportgoods.com
DocumentRoot "c:\wamp64\www"
ServerName mysite.local
ErrorLog "logs/www.sportgoods.com.log"
CustomLog "logs/www.sportgoods.com-access.log" common

(yourdomain is my site)
Do you guys have any tips, new tips of how i can solve this and help me to publish my server on-line?
It will be greatly appreciated your answers , Thanks.
My windows is 64bit,same for WAMP,my apache is 2.4.39,mysql is 5.7.26,mariaDB is 10.3.14,the color of the wamp is green when it works properly



the httpd.vhosts.conf file(including the default localhost and the other host which is the server itself)


# 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 www.sportgoods.com
DocumentRoot "c:/wamp64/www/sport"
<Directory "c:/wamp64/www/sport/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>

Best setup for wampserver (2 replies)

$
0
0
I have a Xeon based server at home for years running windows server 2008. I've been running a iis webserver there, first with classic asp and asp.net /sql server based pages. Later I h ave added php and wordpress to the server. Now 2008 is removed from Microsofts updates list, and I'm tired of problems adding new web project to the server. At work I just runs a windows pc with wampserver, and it just works. So heres what I want to do:

Format the whole damn ting, install a Linux operating system(server?) Use Wampserver for web development, and something else for ftp?

I have from time to time tried to play with Linux Mint, and Ubuntu, but really, I have little experience with these systems, that's the truth. That's why I ask if there are someone with knowledge to can advise me about what is the best setup? I need it to be in a graphic user interface as i easily get lost in commands.

Trond

Can't Access WAMP Server (no replies)

$
0
0
I installed WAMP on Windows 10 and have been building a website for about a week using WordPress. When I try to access WAMP, I am now getting this message:

The configuration file contains a syntax error on line 107. Could not load the file barimage.bmp specified in the directory BarPicturePicture

Can someone please advise or help. I am a complete beginner using WAMP and WordPress. I have just learned by watching videos online. Any help would be appreciated. Thank You.

Virtualhosts Menu stays empty (no replies)

$
0
0
Although virtual host are setup they don't appear in the menu. From the Tools / Show VirtualHosts examend by Apache:

VirtualHost configuration:

Default server: localhost
Virtual Host: localhost
Virtual Host: dwh.localhost
Virtual Host: dwh2.localhost


Your Virtualhosts only contain localhost and and VirtualHosts management

How to use htaccess (1 reply)

$
0
0
I have done a lot of searching for htaccess information. Searched the web, saw a few youtube videos and read a few posts on Reddit.

To the basics. I have a local computer working as a development server. I use wampserver on a standard pc. I have setup a development domain for its use like dev.webdomain.com. Each web then get a subfolder name under the main domain. Like dev.webdomain.com/customer/

During time I have had strange errors and struggeled with htaccess file, but never took the time to understand it. Thats something I'm currently doing something with, but have not yet found all the answers.

My dev server is "silent" meaning I dont tell anyone except from those I do work for. Still, and I knew it would happen some time, I've been noticing unwanted visits and I want it to stop.

First of all I want to block out visits to the root directory dev.webdomain.com as it contains a list of projects and a way to edit and create projects and virtual hosts.

I have done this in htaccess(deny from all and allow from my ip's), but it also blocks out the customer sites I'm working on. I found that I could edit the htaccess file in each customer site to open them again to outsite access(allow from all).

Is there a way to make the htaccess file in my root folder only apply to that folder?

Is there a smarter way to do this?

I'm including my two versions of htaccess here:

Root htaccess:

# BEGIN WordPress

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteRule ^index\.php$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]

</IfModule>



# END WordPress



AuthUserFile /dev/null

AuthGroupFile /dev/null

AuthName "WordPress Admin Access Control"

AuthType Basic

<LIMIT GET>

order deny,allow

deny from all

# whitelist tROND HJEMME IP address

#allow from xxx.xxx.xxx.xxx

# whitelist Kontorets IP address

allow from xxx.xxx.xxx.xxx

##whitelisted local ip's as I access the webserver by modifying my host file.

allow from 192.168.2.

allow from 192.168.1.

</LIMIT>

Opened customer project:

# BEGIN WordPress

# The directives (lines) between \BEGIN WordPress` and `END WordPress` are`

# dynamically generated, and should only be modified via WordPress filters.

# Any changes to the directives between these markers will be overwritten.

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /customer/

RewriteRule ^index\.php$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /customer/index.php [L]

</IfModule>



# END WordPress

allow from all

php_value upload_max_filesize 64M

php_value post_max_size 64M

php_value max_execution_time 300

php_value max_input_time 300

No PHP 7.4 after upgrade (1 reply)

$
0
0
I just upgraded from 3.1.9 to 3.2.0 using the upgrade posted to SourceForge. The file was wampserver3_x86_x64_update3.2.0.exe. The upgrade went fine but PHP 7.4 was not installed.

Wordpress login page not accesible (2 replies)

$
0
0
Hi,

I am aware that this is not the best forum to aks this question but if anybody could help me out in this issue I would appreciate a lot. I installed wampserver and after that I installed Wordpress. Everything went fine until next time I wanted to log in on my new site. After typing on the URL localhost/mysite/wp-admin, the login page didn't show up,

I checked my database, phpmyadmin and everything seems ok. I have installed skype but It was never set up so, it doesn't run. Does anybody think this could be the problem? If so why, if it's not running?

Any idea what should I do?

Thanks

How to setup Mysql GTID replication in WINAMP? (5 replies)

$
0
0
Here's my system info.
1 - Windows Microsoft Windows 10 Home
Version 10.0.18362 Build 18362, System Type x64-based PC
2 - Version WampServer Version 3.2.0 - 32bit
3 - Apache Version Apache/2.4.41 (Win64)
4 - PHP Version PHP/7.3.12 - Port defined for Apache: 80
5 - MySQL Version - 5.7.28
5a - MariaDB n/a
6 - What color is the WampServer icon:Green
7 - In the file c:\Windows\System32\drivers\etc\hosts, what are the active lines?
#
127.0.0.1 localhost
::1 localhost
If the WampServer icon is green:
8 - Do you have access to localhost (Homepage WampServer) - Yes
8a - If so, is there an error message at the bottom of the page? - No
9 - Do you have access to phpMyAdmin? - Yes
11 - If you use an Antivirus and / or Firewall, please include the names of these: Trend Micro
12 - What is the full path to the installation of WampServer (eg D:\wamp\) - C:\wamp

Hi
I would like to setup replication between my local Mysql database, the master, and a slave Mysql installation on a web server. Does anyone know how this can be done using Winamp MySQL 5.7.
I've seen a few tutorials on the Web but they all seem to Linux based Mysql installations.
Thanks
Elliot
5.

Wamp or Xampp - LocalHost new to me (no replies)

$
0
0
Hi.
I'm new to the thought of making a local development environment.

The web-server info:
System Linux 3.2.0-4-amd64
PHP 5.6.6
Apache 2.2.22 (Debian)
Mysqlnd 5.0.11-dev
CMS Prestashop 1.6


The workstation:
Home: Win7 64bit /16gb Ram
Work: Win10 64bit /?

I am a novice-Intermediate developer and a total newbie Prestashop'er, why I want an environment that doesn't screw up the online site.
It is preferable if I can install the LocalHost (Wamp, Xampp or...) on a portable drive, so I can use it both on work and work at home.

What do you suggest for me as a startup?

Thank you kindly.

there is no Menu Item: Online/Offline (put Online/put Offline not visible) (no replies)

$
0
0
Hello all. Please help.

I have just installed latest version of Wampserver. New version from official site.

But I don't see Menu Item: Online/Offline in "Right click-> Wamp Settings"
(There is no such item in the new version of settings.)

Accordingly, I cannot activate the appearance of the Put Online / Put Offline icon in the main menu.

Where in the latest version is the specified interface located?

This is necessary for me to access the server from the Internet. I have a static ip address. In previous versions of the wampserver, the above interface existed. And there were no problems with setting up access from the Internet.

Put Online (1 reply)

$
0
0
Does anyone actually know how to put wampserver 3.2.0 online? Apparently, in earlier versions there was a menu option for online/offline which made life simple so they decided to do away with it. I have tried all suggestions I have found but nothing works!!!!!!!!!!!! Help!

Worthwhile moving from 32bit to 64bit? (no replies)

$
0
0
I've been running the 32bit WAMP for some time now. My desktop, Win10, is an i7 3.6GHZ NMVe/SSD drives w/32 gigs of RAM.

I'm not concerned about keeping any of my local sites. So, two questions:

1.) Will the 64bit version provide any meaningful increase in speed. That is, will my localhost sites load faster to make it worthwhile uninstalling and re-installing?

2.) If the answer to 1. is YES, do I need to do anything more than uninstall the 32bit version via Windows > Apps > Uninstall?

TIA

Getting Started - WampServer Red Icon (no replies)

$
0
0
I just installed WampServer and have a Red Icon. It looks like there are two errors:
- host files not writeable
- Error Apache Variables

I restarted all services and still receive this error. Any idea what I can do to get to the green icon?

Many thanks in advance for your help.

Error on Windows8 (1 reply)

$
0
0
Resurfacing after 5 years. I have the same issue. May it's related to firewall. Digging it. It was working fine sometime back. Only apache has stopped. I installed Tiny firewall. May be that has something to do with this.Uninstalled it and still same.

Source code for WampServer itself? (no replies)

$
0
0
Hi there! The front page of wampserver.com suggests that WampServer is released under the GPL (it says "GPML", but perhaps that's a typo?) Anyway, I've been looking for the source code of WampServer itself; the code that you use to build the WampServer installer, so that I can make some customisations to it (install in text-mode only; use some of my configurations by default). But I can't find that code. I'm sure I'm just looking in the wrong place; is the source of WampServer itself available somewhere?

Warning: mysqli::__construct(): (HY000/1045) (1 reply)

$
0
0
I have (had) a working program. The configuration was Windows Server 2008 and WAMP Server 2.2. The server was upgraded to Windows Server 2016. I removed the old WAMP Server completely, including deleting the c:\wamp directory (well I renamed it). I loaded new version (3.2) of 64-bit WAMP Server. I created my databse and then loaded it from exported previously db.sql file. I changed the RootDirectory to c:\www and loaded my application to c:\www\app_name\. I set up a root password from phpMyAdmin. The phpMyAdmin has no problems. I tested the password by connecting using the root credentials from command line, it worked. But an attempt to connect in PHP code gives me an error.
The offfending line is:
$mysqli = new mysqli($GLOBALS['mysql_host_name'], $GLOBALS['mysql_user_id'], $GLOBALS['mysql_user_password'], $GLOBALS['mysql_db_name']);
I verified the contents of the $GLOBAL variables and I also tried plugging in the actual values directly.
The error is:
Warning: mysqli::__construct(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES)
Any ideas?
Richard

Cannot access website folder (no replies)

$
0
0
Dear Experts,

I had setup a WAMP server in my PC with Win 8 and Virtual Host was setup as below -

# Virtual Hosts
#
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/angliadesign/clients2/jhm/site/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride None
# Require local
Require all granted
</Directory>
</VirtualHost>

Our required website is under a sub-folder "Web_Application" as below -

C:\wamp64\www\angliadesign\clients2\jhm\site\Web_Application

When accessing the website by accessing the above sub-folder in Google Chrome, i.e.

[test.jkbrothers.net]

I could NOT access the website and found msg as below -

Not Found
The requested URL /angliadesign/clients2/jhm/site/Web_Application/en/ was not found on this server.

Apache/2.4.39 (Win64) PHP/7.2.18 Server at test.jkbrothers.net Port 80

Don't know why the above msg was found as there is no the above path (....../en/) setup in my PC.

Could you advise how to solve the above problem so that I can access the above website / sub-folder "Web_ Application" ?

Below is the content of "index.php" under the above sub-folder "Web_Application" -

C:\wamp64\www\angliadesign\clients2\jhm\site\Web_Application

<?php
include('core/framework.php');
$framework = new framework();
$framework->call('common', 'func');
$framework->init();
?>

Below is also the content of "framework.php" under the following sub-folder -

C:\wamp64\www\angliadesign\clients2\jhm\site\Web_Application\core

<?php

/**
* Framework
* This php included all core functions to be used
*
* Function List
* ==========================================================================================
* - System Function
* @function lib($class, $object) Function to load library
* @function func($function) Function to load function
* @function call($name, $type) Function to load apps's php ('func' or 'class' or 'other')
* @function load($page, $func) Function to load page (default load '$page->main()')
* @function init($defaultPage, $defaultFunc) Function to initial the core (default load 'index->main()')
* @function url($fullPath) Function to get current url path (default 'false')
* @function path() Function to get core path
* @function now($format) Function to get current time (default 'Y-m-d H:i:s')
* @function isCMS() Function to check current path whether is cms or not
* @function render($bag, $view, $template_bag, $template) Function to render view (default 'html')
* @function cacheLog($cache_path) Function to add log and clear expired cache file
*/

class framework {

private $_time = false;

public function __construct($runtime = false) {
if(!session_id()){
session_start();
}
require_once(self::path().'/core/function/common.func.php');
if(self::lib('config', 'sys')->get('debug') == true) {
error_reporting(E_ERROR | E_WARNING | E_PARSE);
}else{
error_reporting(0);
}
$protocol = toLower(self::lib('config', 'sys')->get('forceProtocol'));
if($protocol && getip()) {
$is_https = isset($_SERVER['HTTPS']) && toLower($_SERVER['HTTPS']) != 'off';
if(($is_https && $protocol == 'http') ||
(! $is_https && $protocol == 'https'))
{
redirect($protocol . '://' . $_SERVER['HTTP_HOST'] . geturl(true, true, true));
}
}
$tmp = get_global('_page');
set_global('_page', $tmp ? $tmp : 'index');
$customize_link = self::lib('config', 'sys')->get('customizeLink');
if(! self::isCMS() &&
($customize_link === true || (is_array($customize_link) && in_array(get_global('_page'), $customize_link))))
{
set_global('_func', 'main');
}
else
{
$tmp = get_global('_func');
set_global('_func', $tmp ? $tmp : 'main');
}
if($runtime){
self::runtime();
}
}

public function __destruct() {
if($this->_time){
$time = microtime();
$time = explode(' ', $time);
$time = $time[1] + $time[0];
$endtime = $time;
$totaltime = ($endtime - $this->_time);
echo '<br />This page loaded in '.$totaltime.' seconds.';
}
}

/**
* Function to load library
* @param string $class Class name to load.
* @param array $arr Extra param pass to the library.
* @return object Class object
*/
public static function lib($class, $arr = array()) {
$class = toLower($class);
if(!class_exists($class)) {
$path = self::path() . "/core/class/{$class}.class.php";
if(file_exists($path)){
require_once($path);
}
}
if(class_exists($class)) {
if(!is_array($arr)){
$arr = array($arr);
}
$class = new ReflectionClass($class);
return $class->newInstanceArgs($arr);
}else{
return false;
}
}

/**
* Function to load core function
* @param string $func Function name to load.
* @return object self
*/
public static function func($function) {
$function = toLower($function);
$path = self::path() . "/core/function/{$function}.func.php";
if(file_exists($path)){
require_once($path);
}
return new framework();
}

/**
* Function to load apps's php
* @param string $name, array $name PHP name to load.
* @param string $type PHP type to load.
* @return object self
*/
public static function call($name, $type = '') {
if(is_array($name)){
foreach($name as $value){
self::call($value, $type);
}
}else{
switch($type){
case 'func':
$folders = array('function');
break;
case 'class':
$folders = array('class');
break;
case 'other':
$folders = array('3rdparty');
break;
default:
$folders = array('function', 'class', '3rdparty');
}
$base_path = self::path() . (self::isCMS() ? '/cms' : '');
foreach($folders as $folder){
$path = "{$base_path}/apps/{$folder}/{$name}.php";
if(file_exists($path)){
require_once($path);
break;
}
}
}
return new framework();
}

/**
* Function to load page
* @param string $page Page name to load.
* @param string $func Function to call.
* @param array $para Parameter to pass to the function.
* @return object self
*/
public static function load($page, $func, $para = array()) {
if($page != 'html')
{
$cache_folder = false;
if(! self::isCMS() && ! do_post() && ! do_file())
{
$cache = self::lib('config', 'cache')->get();
if($cache['view']['enable'] && ! in_array($page, $cache['view']['no_cache']))
{
$cache_folder = self::path() . '/' . $cache['path'];
if(! is_dir($cache_folder))
{
mkdir($cache_folder, 0777);
}
$cache_folder .= '/view';
if(! is_dir($cache_folder))
{
mkdir($cache_folder, 0777);
}
self::cacheLog($cache_folder);
$cache_name = geturl(true, true, true);
if($cache['view']['session'])
{
$cache_name .= json_encode($_SESSION);
}
$cache_folder .= '/' . md5($cache_name);
if(file_exists($cache_folder) && (! $cache['view']['lifetime'] || (time() - filemtime($cache_folder)) < $cache['view']['lifetime']))
{
read_file($cache_folder);
return new framework();
}
}
}
$path = self::path() . (self::isCMS() ? '/cms' : '') . "/apps/controller/{$page}.php";
if(file_exists($path)) {
require_once($path);
}
if(class_exists('_' . $page))
{
$page = '_' . $page;
$pageClass = new $page();
}
elseif(class_exists($page))
{
$pageClass = new $page();
}
if($pageClass)
{
$hv_func = true;
if(method_exists($pageClass, '_' . $func))
{
$func = '_' . $func;
}
elseif(! method_exists($pageClass, $func))
{
$hv_func = false;
}
if($hv_func)
{
$tmp = new ReflectionMethod($pageClass, $func);
if($tmp->isPublic())
{
$para = xssfilter($para);
ob_start();
call_user_func_array(array($pageClass, $func), $para);
$html = ob_get_clean();
echo $html;
del_session('_redirect');
if($cache_folder)
{
file_put_contents($cache_folder, $html);
}
return new framework();
}
}
}
}
self::redirect(geturl());
}

/**
* Function to initial the core
* @param string $defaultPage Default home page to load
* @param string $defaultFunc Default home page function to call
*/
public function init($defaultPage = '', $defaultFunc = '') {
if($defaultPage){
set_global('_page', $defaultPage);
}
if($defaultFunc){
set_global('_func', $defaultFunc);
}
$url = self::url(true);
if(! xssfilter($url))
{
self::redirect(geturl());
}
$para = explode('/', $url);
if($path = get_global('_path'))
{
if($path == 'img/')
{
include(self::path() . '/img.php');
exit;
}
else
{
if(strpos($path, 'upload/') === false)
{
$ext = toLower(pathinfo($path, PATHINFO_EXTENSION));
$dangerous_ext = array('htaccess', 'php', 'asp', 'aspx');
if(! in_array($ext, $dangerous_ext))
{
if(is_file($path) && file_exists($path))
{
$name = basename($path);
if(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') || strpos($_SERVER['HTTP_USER_AGENT'], 'Trident/7.0'))
{
$name = mb_convert_encoding($name, 'big5', 'auto');
}
header('Content-Description: File Transfer');
header('Content-Type: ' . file_type($path));
header('Content-Disposition: inline; filename="' . $name . '"');
header('Content-Transfer-Encoding: binary');
header('Cache-Control: private, max-age=604800');
header('Pragma: public');
header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 604800) . ' GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s', filemtime($path)) . ' GMT');
flush();
read_file($path);
exit;
}
elseif(strpos($path, 'css/') !== false)
{
$path = preg_replace('/^css\/([a-zA-Z0-9\/]+)(\.css)?$/i', '$1', $path);
include(self::path() . '/css.php');
exit;
}
elseif($path == 'js/lang.js')
{
header('content-type: text/javascript');
header('Cache-Control: private, max-age=604800');
header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 604800) . ' GMT');
include('lang.php');
exit;
}
}
header('HTTP/1.0 404 Not Found');
}
else
{
$file = $path;
include(self::path() . '/file.php');
}
exit;
}
}
$customize_link = self::lib('config', 'sys')->get('customizeLink');
if(! self::isCMS() && $customize_link)
{
$full_customize_link = self::lib('config', 'sys')->get('fullCustomizeLink');
if($full_customize_link)
{
$pageName = get_global('_page');
}
else
{
$pageName = array_shift($para);
}
if($full_customize_link || ! is_array($customize_link) || (is_array($customize_link) &&
in_array($pageName, $customize_link)))
{
$funcName = 'main';
}
else
{
$funcName = array_shift($para);
}
}
else
{
$pageName = array_shift($para);
$funcName = array_shift($para);
}
$_config = self::lib('config', 'sys');
header('Content-Type: text/html; charset=utf-8');
header('X-XSS-Protection: 1; mode=block');
if($_config->get('iframe'))
{
header('P3P: CP="CAO PSA OUR"');
}
else
{
header('X-Content-Type-Options: nosniff');
header('X-Frame-Options: SAMEORIGIN');
}
if(! $_config->get('jsAccessCookie'))
{
@ini_set('session.cookie_httponly', true);
@ini_set('session.cookie_secure', true);
}
$title = $_config->get('title');
$meta = $_config->get('meta');
$database = $_config->get('database');
if($_config->get('lang')){
$lang = self::lib('language')->get();
if(is_array($title)){
$title = $title[$lang];
}
if(isset($meta[$lang])){
$meta = $meta[$lang];
}
}
if($database && ! self::isCMS())
{
$_setting = self::lib('setting');
$language = self::lib('language')->getLang();
foreach($language as $key => $value)
{
if($value['code'] == $lang)
{
$lang = $key;
break;
}
}
$meta['keywords'] = $_setting->get('keywords_' . $lang);
$meta['description'] = $_setting->get('description_' . $lang);
}
if($meta){
foreach($meta as $key => $value){
if(!self::lib('meta')->get($key)){
self::lib('meta')->set($key, $value);
}
}
}
self::lib('title')->set($title);
self::load($pageName, $funcName, $para);
return $this;
}

/**
* Function to get current url path
* @param boolean $fullPath Whether to get full url path or not
* @return string url path
*/
public static function url($fullPath = false) {
if(! $para = get_global('_para'))
{
$is_cms = self::isCMS();
$cms_lang = self::lib('config')->get('cmsLang', 'sys');
$cms_def_lang = self::lib('config')->get('cmsDefLang', 'sys');
$customize_link = self::lib('config', 'sys')->get('customizeLink');
$script_name = $_SERVER['SCRIPT_NAME'];
if(self::lib('config')->get('htaccess', 'sys'))
{
$script_name = dirname($_SERVER['SCRIPT_NAME']);
}
$path = str_replace($script_name . '/', '', $_SERVER['REQUEST_URI']);
$path = preg_replace('/^\//', '', $path);
$path = preg_replace('/\?.*$/', '', $path);
$para = array_filter(explode('/', $path), function($value) {
return $value !== '';
});
if((! preg_match('/^(.*\/)?(?P<path>(css|js|img|upload)\/.*)$/', $path, $match) || preg_match('/(css\/[^\.]*|lang\.js)$/', $path)) && ($is_cms || self::lib('config')->get('lang', 'sys'))){
$lang = array_shift($para);
$_lang = self::lib('language', $lang);
$url = '/' . (sizeof($para) ? implode('/', $para) . '/' : '') . (do_get() ? '?' . http_build_query(do_get()) : '');
if(! $is_cms && $lang != $_lang->get())
{
self::redirect(geturl() . $_lang->get() . $url);
}
else if($is_cms && $lang != $cms_def_lang && ! in_array($lang, array_keys($cms_lang)))
{
self::redirect(geturl() . $cms_def_lang . $url);
}
}
if(array_key_exists('path', $match))
{
set_global('_path', $match['path']);
}
$para[0] = $para[0] ? $para[0] : get_global('_page');
$para[1] = $para[1] ? $para[1] : get_global('_func');
set_global('_para', $para);
}
if($fullPath)
{
return implode('/', $para);
}
else
{
return $para[0] . '/' . $para[1];
}
}

/**
* Function to get core path
* @return string core path
*/
public static function path() {
return dirname(dirname(__FILE__));
}

/**
* Function to get current time
* @param string $format Datetime format
* @return string datetime (Y-m-d H:i:s)
*/
public static function now($format = 'Y-m-d H:i:s') {
return to_date($format, ((int) self::lib('setting')->get('time')).' hour');
}

/**
* Function to check current path whether is cms or not
* @return boolean true or false
*/
public static function isCMS() {
if(self::lib('config')->get('htaccess', 'sys'))
{
return preg_match('/\/cms\/$/', geturl());
}
else
{
return preg_match('/\/cms\/' . basename($_SERVER['SCRIPT_NAME']) . '\/$/', geturl());
}
}

/**
* Function to render view
* @param array $bag Variable to be used in the view
* @param string $view View name
* @param array $template_bag Variable to be used in the template view (html)
* @param string $template Template view name (html)
*/
public static function render($bag = array(), $view = '', $template_bag = array(), $template = 'html') {
if($template)
{
$path = self::path() . (self::isCMS() ? '/cms' : '') . "/apps/controller/html.php";
if(file_exists($path))
{
require_once($path);
$template_func = $template == 'html' ? 'main' : $template;
if(method_exists('html', $template_func))
{
$tmp = new ReflectionMethod('html', $template_func);
if($tmp->isPublic())
{
$template_bag = extend(call_user_func(array('html', $template_func)), $template_bag);
}
}
}
}
if(is_array($bag))
{
ob_start();
include_view($bag, $view);
$body = ob_get_clean();
}
else
{
$body = $bag;
}
if($template)
{
if($protocol = toLower(self::lib('config', 'sys')->get('forceProtocol')))
{
$body = '<script type="text/javascript">
if(window.location.protocol.toLowerCase().indexOf(\'' . $protocol . ':\') == -1)
{
window.location.href = \'' . $protocol . '://\'+ window.location.host + window.location.pathname;
}
</script>' . $body;
}
if(! self::lib('config', 'sys')->get('allowHighlight', 'sys'))
{
$body = '<script type="text/javascript">
document.addEventListener(\'dragstart\', function(e) {
e.preventDefault();
}, false);
document.addEventListener(\'selectstart\', function(e) {
e.preventDefault();
}, false);
function noHightlight(node) {
if (node.nodeType == 1) {
node.setAttribute(\'unselectable\', \'on\');
}
var child = node.firstChild;
while (child) {
noHightlight(child);
child = child.nextSibling;
}
}
noHightlight(document.body);
</script>' . $body;
}
if(! self::lib('config', 'sys')->get('allowRightClick', 'sys'))
{
$body = '<script type="text/javascript">
document.addEventListener(\'contextmenu\', function(e) {
e.preventDefault();
}, false);
</script>' . $body;
}
ob_start();
include_view(extend($template_bag, array(
'body' => $body
)), $template);
$body = ob_get_clean();
}
if(! self::isCMS())
{
$url = geturl();
if(! self::lib('config')->get('htaccess', 'sys'))
{
$url = dirname($url) . '/';
}
$body = preg_replace('/(\<(link|script|img|a|source)[^>]*\s+(src|href)\=(\"|\'))((?!((https?|tel|sms|mailto|whatsapp|callto|facetime|skype|wtai|dc)\:|\.{0,2}\/|\#))[^>]*(\"|\'))/i', '$1' . $url . '$5', $body);
}
echo $body;
}

/**
* Function to add log and clear expired cache file
* @param string $cache_path Cache path
*/
public static function cacheLog($cache_path)
{
$log_path = $cache_path . '/log';
$now = time();
if(! file_exists($log_path))
{
file_put_contents($log_path, $now);
}
else
{
$last_clean = file_get_contents($log_path);
$diff = $now - $last_clean;
if($diff > 86400)
{
file_put_contents($log_path, $now);
$files = filelist($cache_path);
if($files)
{
foreach($files as $value)
{
if(file_exists($value) && ($now - filemtime($value)) > 86400)
{
@unlink($value);
}
}
}
}
}
}

private function runtime(){
$time = microtime();
$time = explode(' ', $time);
$time = $time[1] + $time[0];
$this->_time = $time;
}

private function redirect($url)
{
$_redirect = (int) get_session('_redirect');
if($_redirect >= 3)
{
del_session('_redirect');
die("'" . self::url(true) . "' not exists.");
}
else
{
header('HTTP/1.1 301 Moved Permanently');
set_session('_redirect', $_redirect + 1);
redirect($url);
}
}

}
?>


Pls also let me know if you need more info. on this.


Many Thanks,
KH Fong
Viewing all 3213 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>