Giter Site home page Giter Site logo

x64architecture / wnmp Goto Github PK

View Code? Open in Web Editor NEW
504.0 504.0 111.0 7.16 MB

An easy Nginx, MariaDB and PHP environment for Windows.

Home Page: https://wnmp.x64architecture.com

License: GNU General Public License v3.0

C# 63.05% HTML 5.45% Inno Setup 27.80% PHP 3.69%

wnmp's Introduction

Top Langs
x64architecture's GitHub stats

wnmp's People

Contributors

nicolasliu avatar sleavely avatar x64architecture avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wnmp's Issues

Phpmyadmin issue when WNMP is installed in location other than C:\Wnmp

When i install it to any other location other than C:\Wnmp (like i install it in D:\WEBSERVER MICHAEL\Wnmp) the Phpmyadmin says "phpMyAdmin - Error
The mbstring extension is missing. Please check your PHP configuration."

One other thing i noticed that in phpinfo(); it shows "Loaded Configuration File : (none)" in case of D drive installation.

While in C drive installation, phpinfo(); shows "Loaded Configuration File : C:\Wnmp\php\php.ini" - This installation works smooth.

I'm attaching the some of the files that could be of help ,
Great software btw. Thanks a lot.


PHP Process fail - implement a process revival

Issue Description:
PHP process will crash under stress on windows machine, and possible with out apparent reason.
Nginx will try to fulfill the request utill timeout.
and will log the following error:

"upstream timed out (10060: 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) while connecting to upstream"

Suggestion for fix:
An event handler should be added to process close of PHP CGI as well keeping track of the status of the php service internally( user started , user stopped )

declare flag: "PHPServiceStatus"
when user start service set PHPServiceStatus = "STARTED"
when user stop service set PHPServiceStatus = "STOPPED"

Handle PHP process Exit/End {

IF PHPServiceStatus = STARTED

Restart PHP process //assume crash

ELSE IF PHPServiceStatus = STOPPED

Do nothing

}


cUrl does not work in windows

In windows, you need to add a separate php-cgi through RunHiddenConsole.exe process when using cUrl, can be dealt with separately. Whether in wnmp startup php, direct start two processes?

phpmyadmin launch problem

From wnmp panel click on 'localhost' menu.
Than 'Click here to go to phpMyAdmin', link is : https:/localhost/phpmyadmin
in firefox is impossibile to go on for a trust problem of the x.509 certificate
in chrome is possibile to go on accepting the security risk.
Maybe is better to change the above link from https to http or put both in the home page.

Suggestion: Minimize wnmp on start up

It'd be great if we could have wnmp automatically minimize to systray on launch. With the option "Start all programs on launch" enabled, there is no need to use the GUI anyway.

Thanks!

Xdebug / php port conflict

By default xdebug uses :9000. This happens to also be the default ports that nginx spawns php processes on (/conf/php_processes.conf). Is is possible to change the default php ports, as I can see this issue cropping up for other users...

Exception not caught when www.getwnmp.org cannot be resolved

Using WNMP 2.1.7 in an isolated environment (no Internet access).

After I start it, the systray icon loads, however it doesn't show the control panel right away, and after a couple seconds I get an unhandled System.Net.WebException: The remote name could not be resolved: 'www.getwnmp.org'

I added www.getwnmp.com to my hosts file (resolving to 127.0.0.1), then run WNMP again, and .NET Framework throws another System.Net.WebException again: The remote server returned an error: (404) Not Found.

It should be trivial to catch these exceptions.

Default installation throws errors for Cloudflare

I'm still trying to resolve this with CF, but the latest updated seems to cause CouldFlare to throw 520 errors.
22/04/2014 12:28:55 [Wnmp Main] - Your version: 2.0.13.0 is up to date.
22/04/2014 12:28:55 [Wnmp Main] - Your control panel version: 2.2.6 is up to date.

Option not to minimize to tray

Would it be possible to add an option that disables minimize-to-tray?

I modify configurations quite frequently and I need to start/stop servers because of that. I use Wnmp more in terms of a regular program than a background application, so it'd be neat to minimize it to the taskbar in the same manner as other "active" programs I have running.

I realize it might be an edge case, but if it's not too complicated I'd love a lil' checkbox/toggle button for this :)


Suggestion:Can you set debug default

First of all thank you very much.
I think if a slight modification will be better.

display_errors = On
display_startup_errors =On
extension=php_xdebug.dll

at last,Thank you !

Menu improvement

I suggest you change the menu to something as below. Most menu items should go under a Help menu to follow Windows best practices and the options will be easier to reach directly from a settings menu

  • Settings
  • Help
  • * WNMP Home
  • * WNMP Project Page
  • * WNMP Support Group
  • * Donate
  • * -----------
  • * Update WNMP
  • * -----------
  • * About WNMP

Mysqldump

Not an issue per-say, but it would be great if you could bundle mysqldump.exe with MariaDB in future releases - it's really useful!

MariaDB never starts

MariaDB doesn't start and when I try to open the MariaDB shell I get the following error.

ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061 "Unknown
error")

My port 3306 is open and I tried disabling all firewalls.

Nginx config button

On click Nginx config button showing Nginx logs menu.
I found bug in code Forms/Main.cs

#!c#

private void ngxconfig_Click(object sender, EventArgs e) { WnmpFunctions.nginxlogs_Click(sender,  e); } // ngxconfig_Click

2.1.8 seems to break php through nginx (504)

I'm still trying to debug what's going on but I upgraded from 2.1.7 to the current release
with my usual process of replace php.ini and nginx.conf with my custom versions

after upgrade everything returns a 504, it seems php is unresponsive when accessed through nginx, I can invoke it normally via the command line (php)

I co-worker said his version has said his version at home has broken too, so he's holding off on upgrading

the php script I'm testing against is just

<?php 
    die('test');

Suggestion : remove the tray icon white backgound, as a circle icon.

Eexcellent stack server!*

Your WNMP build make my self-hosted wordpress blog run lightning fast!
significantly faster than my previous nginx-MySQLbased server fm. other developer.

I just want the tray icon of Wnmp.exe look more charming, and suggest developer trim off the icon white square backgound, namely looks like your site logo.


For other wordpress users reference :
I encountered a minor issue, that "php_mysqli.dll" required by Wordpress is disabled by default in WNMP v.2.0.3. (actually since php5.5, this component is disabled by default.)

Wordpress show the msg. like this :
"Your PHP installation appears to be missing the MySQL extension which is required by WordPress"

Soln. : remove the ";" of ";extension=php_mysql.dll" ( ./php/php.ini, on line 900) to enable the extension, restart WNMP, and Bingo!



Faulty MariaDB configuration file

Problem:

I was trying to figure out why C:\Wnmp\mariadb\data\my.ini had no effect on the server, and ran mysqld --help --verbose and got the following:

#!text

Default options are read from the following files in the given order:
C:\Windows\my.ini C:\Windows\my.cnf C:\my.ini C:\my.cnf C:\Wnmp\mariadb\my.ini C:\Wnmp\mariadb\my.cnf

Once I had moved my.ini into a folder where it was found, it complained about one of the parameters:

#!text

18:44:43 [ERROR] C:\Wnmp/mariadb\bin\mysqld.exe: unknown variable 'set-variable=lower_case_table_names=0'
18:44:43 [ERROR] Aborting

Solution(s):

  • Move my.ini out of \mariadb\data\ to \mariadb\
  • Remove set-variable = so that the line becomes lower_case_table_names=0

PHP Processes crash

Since upgrading from 2.1.3 to 2.1.6 a few days ago I've had the PHP processes constantly drop on me. There's nothing in the PHP log, but the standard error log is littered with phpmyadmin trying to connect:

2015/02/27 18:49:17 [error] 8036#3716: *9642 no live upstreams while connecting to upstream, client: 127.0.0.1, server: local.development.com, request: "POST /index.php HTTP/1.1", upstream: "fastcgi://php_processes", host: "local.development.com", referrer: "https://local.development.com/phpmyadmin"
2015/02/27 18:49:18 [error] 8036#3716: *9866 upstream timed out (10060: 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) while connecting to upstream, client: 127.0.0.1, server: local.development.com, request: "POST /index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "local.development.com", referrer: "https://local.development.com/phpmyadmin"

Restarting the PHP processes fixes the issue for a few hours, but it happens regularly. Any ideas as to what could be causing this?

Multiple PHP versions?

Hey,

it would be nice to be able to switch between php versions.

I was able to make it work with PHP7 rc1 just by extracting binaries to the php folder but a list in the GUI would be nice.

PHP Crashes

Exactly what the title says, PHP crashes after a few hundred requests, All the error logs are clear, all the processes are running, the website seems to freeze and return an error.


Additional modules request

Heya, awesome project!

Quick question, would it be possible to get the following modules compiled in?

Also, I'm going to stretch it a bit and it might not even be feasible but if you can get the phurple module (https://github.com/weltling/phurple) compiled, I'd be a very happy man :P. In fact, with some documentation, I would be more than happy to get the modules compiled myself and contribute them back.

Single PHP-CGI process stops local cURL from PHP

It isn't currently possible to cURL local domains from other local URLs due to the single PHP CGI process.

This is pretty easy to fix manually, but it would be much better if it was "built in"...

The temp fix:

Spawn another PHP CGI process from a .bat file using the free RunHiddenConsole program:

@ECHO OFF
ECHO Starting PHP FastCGI...
set PATH=X:\Path\To\Wnmp\php;%PATH%
X:\Path\To\Program\RunHiddenConsole.exe X:\Path\To\Wnmp\php\php-cgi.exe -b 127.0.0.1:9001 -c X:\Path\To\Wnmp\php\php.ini

Define an upstream group in the http block:

upstream php_processes {
    server 127.0.0.1:9000 weight=1;
    server 127.0.0.1:9001 weight=1;
}

Make the FastCGI handler use it:

fastcgi_pass php_processes;

It would possibly be easiest if the upstream block was defined in its own file to be included in the main nginx.conf file and that way the GUI could have a drop down asking how many PHP CGI processes you wanted when you start it up (defaulting to 2) and automatically update (regenerate) this tiny file each time it's changed (reloading the NginX config).

Not up to date

In the log area it looks like wnmp is up to date "Your version: 2.0.6.0 is up to date." But it's not.

notuptodatescreenshot

calling session_destroy results in 502 gateway error

This is an odd error I can start a session, change the session path and see the session on the file system I can read from the session in my application but when I go to log out and as soon as session_destroy is called the application crashes with a 502 gateway error.

I cannot see any response in any of the error logs, I spoke to some people in #php and they said "that would indicate PHP segfaulting" they suggested asking the maintainer(s) of this project to try and get debugging information out of fastCGI

Regression issues with 2.0.13?

I just installed 2.0.13 on a new computer and the tooltip modification of issue #25 and the modules added in #24 (specifically http and redis) are not in the release.

Is this normal?

Taskbar tooltip when minimized

Would it be possible to modify the "minimize to taskbar" feature so it only shows the "Wnmp has been minimized to the taskbar" tooltip the first time it gets minimized? I'm not certain it's really necessary to show it every time :)

Thanks!

configuring www.conf

I'm trying to raise
request_terminate_timeout
all tutorials on the web say to modify this value inside www.conf but in the wnmp distro of nginx
this file doesn't appear to be present

Where can we find www.conf?

wnmp

is there a new version contain window+nginx+mysql+php?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.