cretueusebiu / valet-windows Goto Github PK
View Code? Open in Web Editor NEWThis project forked from laravel/valet
Laravel Valet for Windows.
License: MIT License
This project forked from laravel/valet
Laravel Valet for Windows.
License: MIT License
valet-windows helping my dev life...
But I have a problem valet-windows not updating the host file... I have to update manually.
I know that I don't have to edit my host file, I just need have to connect to the at least to a network to make this work, but sometimes
I don't have any connection so I have to edit the host file...
I really need help...
Thank you....
'valet' is not recognized as an internal or external command, operable program or batch file.
I have successfully downloaded valet using composer after running composer global require cretueusebiu/valet-windows
command. But when I tried to follow 3rd command which is "Run the valet install
command" it didn't work for me. I got the issue mentioned above every time, even after I relaunched the terminal.
NB: Composer path is set to my machine's Environment Variable manually.
I keep getting the 504 Gateway Time-out error on my installation of valet-windows. I checked the port, I manually configured the acrylic dns and parked the valet on the right folder. Anyone know any possible reason for this happen?
I have composer and PHP installed in my PC. I am running windows 10 and followed the instructions. When I run the valet install
I get this error 'valet' is not recognized as an internal or external command,
I know it's not added to environment path, But the doc didn't say anything about that. How can solve this problem?
Thanks :)
I know this is an issue because port 80 is being used. I am unable able to find the config file for ngnix where I can change the port for Nginx server. Can anybody help me with this query?
When using Valet Share it assumes that the current directory should be routed to:
dir_name.domain
This results in 404 errors for directories that have been linked to other names for example running valet link test
in a directory called test2
would result in a 404 with Valet Share.
Expected:
Instead, I would expect that Valet would lookup the current directory in the link manifest and calculate the correct domain name to pass to ngrok.
Example:
The docs directory is linked to nslp. This means that the application is available at nslp.dev as expected. Running Valet Share in the docs folder causes a 404 error while running Valet Share in the nslp folder works as expected even though it is not technically accessible at all or should be in valet. It just so happens that it works because my parent directory name is the same as the link.
This should not be assumed since it won't always be the case.
nginx: [emerg] CreateFile() "C:\Users aisang/.valet/Log/nginx-error.log" failed (123: The filename, directory name, or volume label syntax is incorrect)
my username is taisang
C:\Users\taisang\
C:\Users\taisang\AppData\Roaming\Composer\vendor\cretueusebiu\valet-windows\bin\nginx\conf\nginx.conf
# user taisang staff;
worker_processes auto;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server_names_hash_bucket_size 64;
gzip on;
gzip_comp_level 5;
gzip_min_length 256;
gzip_proxied any;
gzip_vary on;
gzip_types
application/atom+xml
application/javascript
application/json
application/rss+xml
application/vnd.ms-fontobject
application/x-font-ttf
application/x-web-app-manifest+json
application/xhtml+xml
application/xml
font/opentype
image/svg+xml
image/x-icon
text/css
text/plain
text/x-component;
include C:\Users\taisang/.valet/Nginx/*.conf;
include servers/*;
include ../valet/valet.conf;
}
can
Hello, thanks for this product. I'd really like to get it working.
I've installed on a windows 10 box as administrator. Seems to be functionally working fine, e.g., stop, start, restart working as expected. However, I cd in to my laravel project root location and do:
$> valet park
it comes back with this:
This directory has been added to Valet's paths.
which is still cool.
Now if I ping one of my projects...
$ ping customapp.dev
Pinging customapp.dev [127.0.53.53] with 32 bytes of data:
Reply from 127.0.53.53: bytes=32 time<1ms TTL=128
(and of course trying to hit http://customapp.dev fails.)
and I've performed the Network dns configuration as mentioned with using AcrylicHosts. but still have this default redirect. Not sure where to go with this. Google isn't providing much more then what
Could you please provide a hint on what else I should be looking at?
Could not install the nginxservice service. Check ~/.valet/Log for errors.
2017-03-02 13:32:39,983 INFO - Starting ServiceWrapper in the CLI mode
2017-03-02 13:32:40,126 FATAL - WMI Operation failure: NoSuchService
WMI.WmiException: NoSuchService
at winsw.WrapperService.ThrowNoSuchService()
at winsw.WrapperService.Run(String[] _args, ServiceDescriptor descriptor)
at winsw.WrapperService.Main(String[] args)
2017-03-02 13:32:42,722 INFO - Starting ServiceWrapper in the CLI mode
2017-03-02 13:32:42,867 FATAL - WMI Operation failure: NoSuchService
WMI.WmiException: NoSuchService
at winsw.WrapperService.ThrowNoSuchService()
at winsw.WrapperService.Run(String[] _args, ServiceDescriptor descriptor)
at winsw.WrapperService.Main(String[] args)
2017-03-02 13:32:43,104 INFO - Starting ServiceWrapper in the CLI mode
2017-03-02 13:32:43,239 INFO - Uninstalling the service with id 'valet_nginx'
2017-03-02 13:32:43,242 WARN - The service with id 'valet_nginx' does not exist. Nothing to uninstall
2017-03-02 13:32:43,252 INFO - Completed. Exit code is 0
2017-03-02 13:32:43,537 INFO - Starting ServiceWrapper in the CLI mode
2017-03-02 13:32:43,684 FATAL - WMI Operation failure: AccessDenied
WMI.WmiException: AccessDenied
at WMI.WmiRoot.BaseHandler.CheckError(ManagementBaseObject result)
at WMI.WmiRoot.ClassHandler.Invoke(Object proxy, MethodInfo method, Object[] args)
at winsw.WrapperService.Run(String[] _args, ServiceDescriptor descriptor)
at winsw.WrapperService.Main(String[] args)
Chrome 58+ issue here.
See laravel#369
Same thing, cannot secure the sites, certificate is not "safe" as of Chrome 58
Hello,
When I install Valet and follow the 'Acrylic DNS proxy' installation, my internet doesn't work anymore.
Could you help me with this?
Thanks.
After some googling and reading through the PHP-FPM documentation, I've added PHP_FCGI_MAX_REQUESTS=0
to the global environment variables, issued a valet restart
and haven't experienced this issue since then.
Maybe you could set this before starting the PHP-FPM process, or refer this solution in the README.
My user directory has a space in it, it is C:\User\Jack SecondName... I believe this is just a problem when trying to execute a file inside my home directory without putting "" around it
When running a globally installed composer application, e.g Envoy in the Windows Subsystem for Linux/bash for windows environment the valet compatibility check:
if (PHP_OS !== 'WINNT' && !$inTestingEnvironment) {
echo 'Valet for Windows only supports the Windows operating system.'.PHP_EOL;
exit(1);
}
Causes the execution to halt even if valet wasn't called. E.e if "Envoy" was being called this check is still run and execution will exit.
Could the compatibility check be moved to only be called if a valet function is called or make the check result in a warning rather than exit.
I installed valet in my PC on Windows 10 pro without any issue but when I try to install on my Laptop with same Windows 10 pro I get error 504.
This is what I'm getting from nginxservice.wrapper.log
2017-02-05 18:13:17,832 INFO - Starting ServiceWrapper in the CLI mode 2017-02-05 18:13:18,036 FATAL - WMI Operation failure: ServiceCannotAcceptControl WMI.WmiException: ServiceCannotAcceptControl at WMI.WmiRoot.BaseHandler.CheckError(ManagementBaseObject result) at WMI.WmiRoot.InstanceHandler.Invoke(Object proxy, MethodInfo method, Object[] args) at winsw.WrapperService.Run(String[] _args, ServiceDescriptor descriptor) at winsw.WrapperService.Main(String[] args) 2017-02-05 18:13:18,442 INFO - Starting ServiceWrapper in the CLI mode 2017-02-05 18:13:18,645 FATAL - WMI Operation failure: ServiceCannotAcceptControl
phpfpmservice.wrapper.log
2017-02-05 18:13:03,033 INFO - Starting ServiceWrapper in the CLI mode 2017-02-05 18:13:03,221 INFO - Completed. Exit code is 0 2017-02-05 18:13:03,596 INFO - Starting ServiceWrapper in the CLI mode 2017-02-05 18:13:03,799 FATAL - WMI Operation failure: ServiceCannotAcceptControl WMI.WmiException: ServiceCannotAcceptControl at WMI.WmiRoot.BaseHandler.CheckError(ManagementBaseObject result) at WMI.WmiRoot.InstanceHandler.Invoke(Object proxy, MethodInfo method, Object[] args) at winsw.WrapperService.Run(String[] _args, ServiceDescriptor descriptor) at winsw.WrapperService.Main(String[] args) 2017-02-05 18:13:04,002 INFO - Starting ServiceWrapper in the CLI mode 2017-02-05 18:13:04,314 INFO - Starting ServiceWrapper in the service mode 2017-02-05 18:13:04,330 INFO - Completed. Exit code is 0 2017-02-05 18:13:04,346 INFO - Starting C:\php\php-cgi.exe -b 127.0.0.1:9000 2017-02-05 18:13:04,346 INFO - Starting C:\php\php-cgi.exe -b 127.0.0.1:9000
Hi, I'm using valet since a year ago. I was always happy with it and had no problems.
But after the update to 2.0.13 and stop, uninstall and install again I can't reach any of my local dev sites.
The request runs endless untill the nginx proxy timeout is exceeded...
What I tried:
What I also noticed:
BUT:
When I configure the port back to 9000 in the following files it's working again.
I have no plan why this behaves like that... Any suggestions / tips ?
Whenever I run valet stop
in cmd or PowerShell my internet connection stops working completely, until I run valet start
again.
What could be causing this, and is there a way to fix it?
I'm guessing this is something I have configured wrong on my system, but I can't seem to find what.
Thanks for a great application!
Do I need to install Acrylic DNS manually?
I've used Valet on Mac for over a year now but cant launch the site/domain on Windows. Any help is greatly appreciated.
$ composer global update
Changed current directory to C:/Users/prabhat/AppData/Roaming/Composer
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 4 updates, 0 removals
- Updating cretueusebiu/valet-windows (2.0.4 => 2.0.5) Loading from cache
[ErrorException]
copy(C:\Users\prabhat\AppData\Roaming\Composer\vendor/cretueusebiu/valet-windows/bin\acrylic\AcrylicService.exe): failed to open stream: Resource
temporarily unavailable
update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...
I don't know for sure if this is a problem with valet-windows or that the fault lays somewhere else, but I have two projects: mydomain.dev and api.mydomain.dev and I'm trying to request a resource on api.mydomain.dev (eg: api.mydomain.dev/user/1), but it's not working. I have the same two projects running on a mac with valet and it is working there.
The curl request just keeps loading and finally ends in a timeout. Curl is working in cmd and PowerShell though.
Is this a know problem with valet-windows or should it be possible to request an url from another valet-project?
Hi,
When I'm using a local driver(https://laravel.com/docs/5.4/valet#local-drivers) the following error appers:
Fatal error: Uncaught Error: Class 'LocalValetDriver' not found in C:\Users\John\AppData\Roaming\Composer\vendor\cretueusebiu\valet-windows\cli\drivers\ValetDriver.php on line 78
Error: Class 'LocalValetDriver' not found in C:\Users\John\AppData\Roaming\Composer\vendor\cretueusebiu\valet-windows\cli\drivers\ValetDriver.php on line 78
Any Ideas?
Hey,
after using the DNS settings described in the linked Acrylic DNS guide some websites do either not work โ or some assets are not loaded correctly (css/images/...).
Is there anything to fix this issue?
Or is there any way to not use Acrylic DNS for Valet on Windows?
My valet on windows has stopped working after an windows update
Jessey@DESKTOP-ATMMBDH MINGW64 /c
$ valet start
Could not start the phpfpmservice service. Check ~/.valet/Log for errors.
When I cat the phpfpmservice wrapper I get the following
2017-11-01 14:38:47,443 INFO - Starting ServiceWrapper in the CLI mode
2017-11-01 14:38:47,578 FATAL - WMI Operation failure: NoSuchService
WMI.WmiException: NoSuchService
at winsw.WrapperService.ThrowNoSuchService()
at winsw.WrapperService.Run(String[] _args, ServiceDescriptor descriptor)
at winsw.WrapperService.Main(String[] args)
Now I wonder if theres something obvious I can try to do?
Steps:
Set-ExecutionPolicy RemoteSigned; Invoke-WebRequest -Uri "https://github.com/cretueusebiu/valet-windows/raw/master/bin/php-installer.ps1" -OutFile $env:temp\php-installer.ps1; ."$env:temp\php-installer.ps1"
PS C:\WINDOWS\system32> Invoke-WebRequest -Uri "https://github.com/cretueusebiu/valet-windows/raw/master/bin/php-installer.ps1" -OutFile $env:temp\php-
installer.ps1; ."$env:temp\php-installer.ps1"
Start-BitsTransfer : HTTP status 404: The requested URL does not exist on the server.
At C:\Users\ryan\AppData\Local\Temp\php-installer.ps1:16 char:1
+ Start-BitsTransfer -Source $phpUrl -Destination $zipfile -Description ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Start-BitsTransfer], Exception
+ FullyQualifiedErrorId : StartBitsTransferCOMException,Microsoft.BackgroundIntelligentTransfer.Management.NewBitsTransferCommand
Installing PHP...
Exception calling "ExtractToDirectory" with "2" argument(s): "Could not find file 'C:\Users\ryan\AppData\Local\Temp\php.zip'."
At C:\Users\ryan\AppData\Local\Temp\php-installer.ps1:20 char:1
+ [System.IO.Compression.ZipFile]::ExtractToDirectory($zipfile, $outpat ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : FileNotFoundException
Remove-Item : Cannot find path 'C:\Users\ryan\AppData\Local\Temp\php.zip' because it does not exist.
At C:\Users\ryan\AppData\Local\Temp\php-installer.ps1:21 char:1
+ Remove-Item $zipfile
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Users\ryan\AppData\Local\Temp\php.zip:String) [Remove-Item], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand
Start-BitsTransfer : Cannot find path 'C:\php' because it does not exist.
At C:\Users\ryan\AppData\Local\Temp\php-installer.ps1:24 char:1
+ Start-BitsTransfer -Source $phpIniUrl -Destination $outpath\php.ini - ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\php:String) [Start-BitsTransfer], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.BackgroundIntelligentTransfer.Management.NewBitsTransferCommand
Start-BitsTransfer : Cannot find path 'C:\php' because it does not exist.
At C:\Users\ryan\AppData\Local\Temp\php-installer.ps1:27 char:1
+ Start-BitsTransfer -Source $caCertUrl -Destination $outpath\cacert.pe ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\php:String) [Start-BitsTransfer], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.BackgroundIntelligentTransfer.Management.NewBitsTransferCommand
PHP installed successfully!
php : The term 'php' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a
path was included, verify that the path is correct and try again.
At C:\Users\ryan\AppData\Local\Temp\php-installer.ps1:35 char:1
+ php -v
+ ~~~
+ CategoryInfo : ObjectNotFound: (php:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\WINDOWS\system32>
i like to use valet for all my project instead of installing xampp which has features i don't really need..
I've tried to use Phalcon framework but i got this error.
Mod-Rewrite is not enabled
Please enable rewrite module on your web server to continue
When i run composer global require cretueusebiu/valet-windows
i get the following error
Changed current directory to C:/Users/felik/AppData/Roaming/Composer
Using version ^2.0 for cretueusebiu/valet-windows
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 10 installs, 0 updates, 0 removals
- Installing tightenco/collect (v5.5.20): Loading from cache
- Installing phpseclib/phpseclib (2.0.7): Loading from cache
- Installing nategood/httpful (0.2.20): Loading from cache
- Installing psr/container (1.0.0): Loading from cache
- Installing php-di/invoker (2.0.0): Loading from cache
- Installing mnapoli/silly (1.6.0): Loading from cache
- Installing psr/simple-cache (1.0.0): Loading from cache
- Installing illuminate/contracts (v5.5.17): Loading from cache
- Installing illuminate/container (v5.5.17): Loading from cache
- Installing cretueusebiu/valet-windows (2.0.12): Loading from cache
Installation failed, reverting ./composer.json to its original content.
[ErrorException]
copy(C:\Users\xxx\AppData\Roaming\Composer\vendor/cretueusebiu/valet-windows/bin\acrylic\AcrylicService.exe): fai
led to open stream: Resource temporarily unavailable
Could I change port for valet to other than 80?
I installed valet-windows via PowerShell runnin as admin. I got these warnings, but it seemed to install
PHP Warning: copy(C:/Users/array/.valet/Services/nginxservice.exe): failed to open stream: Resource temporarily unavail
able in C:\Users\array\AppData\Roaming\Composer\vendor\cretueusebiu\valet-windows\cli\Valet\Filesystem.php on line 193
PHP Warning: copy(C:/Users/array/.valet/Services/phpfpmservice.exe): failed to open stream: Resource temporarily unavai
lable in C:\Users\array\AppData\Roaming\Composer\vendor\cretueusebiu\valet-windows\cli\Valet\Filesystem.php on line 193
I then did the usual valet park
, and when i browsed to my site jpe.dev
, I got a ERR_ICANN_NAME_COLLISION
error in the browser
So I tried adding 127.0.0.1 jpe.dev
to my hosts file, and now im seeing this:
Not Found
HTTP Error 404. The requested resource is not found.
I installed valet-windows via composer, but I already had my own copy of php 7.1 installed, when I type php -v
in PowerShell I see
PHP 7.1.8 (cli) (built: Aug 1 2017 21:10:46) ( ZTS MSVC14 (Visual C++ 2015) x86 )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
$siteName = basename(
// Filter host to support xip.io feature
valet_support_xip_io($_SERVER['HTTP_HOST']),
'.'.$valetConfig['domain'] // This line is spitting that error
);
this is the config.json
{
"paths": [
"C:/Users/Dev/.valet/Sites",
"C:\\Users\\Dev\\sites\\www"
]
}
No Domain Index is being Said here....
But i do manage to Load the Site by adding the the domain name to windows etc/hosts file
but i thought valet wouldnt need to configure this right?
i just installed valet in Windows 10 Pro Version 1709 Build 16299.125
Installed Composer and php using Choco app and they both working
but when i try to open a project in browser it says blog.app refused to connect.
tried with test domain didn't work tried changing the domain to app also didn't work the same error
i used valet park on the projects directory
also when opening localhost in browser it says Valet - Not Found
even the same error when linking a directory using valet link.
Please provide a documentation which lines have been changed in the php.ini
file so everybody can understand what the PHP installer will automatically configure.
I am not able to install valet again as composer is showing "folder already exists", i also tried removing valet from composer.json file , not able to delete the folder manually as nginx and other services are running, tried manually stopping them with no luck deleting the old valet folder in composer.Please help
Did any step I miss from the installation or maybe by default this will not work if no internet ?
If I am not connected to internet, then none of the local site *.test is working, instead browser shows you are not connected internet (offline) page. Is there any way i can still keep nginx running if there is no internet connection, when there is no internet connection other nginx confs (sites) are also not working. everything gets stopped if I am not connected to internet connection.
also installing latest version gives error about symfony/process component. check below
I'm using the following batch script to automatically set the Acrylic DNS Proxy. Also included below is a script for uninstall.
Let me know if you have any interest in including this as part of the repo and I can submit a PR.
net-install.bat
:: Set primary and alternate DNS for IPv4 on Windows Server 2000/2003/2008,2012,2016 &
:: Windows XP/Vista/7/8/10
@ECHO OFF
SETLOCAL EnableDelayedExpansion
:ETHERNET
SET adapterName=
FOR /F "tokens=* delims=:" %%a IN ('IPCONFIG ^| FIND /I "ETHERNET ADAPTER"') DO (
SET adapterName=%%a
REM Removes "Ethernet adapter" from the front of the adapter name
SET adapterName=!adapterName:~17!
REM Removes the colon from the end of the adapter name
SET adapterName=!adapterName:~0,-1!
rem ECHO !adapterName!
netsh interface ipv4 set dns name="!adapterName!" static 127.0.0.1 primary
netsh interface ipv6 set dns name="!adapterName!" static ::1 primary
timeout /t 2
netsh interface set interface "!adapterName!" DISABLED
timeout /t 2
netsh interface set interface "!adapterName!" ENABLED
rem netsh interface ipv4 add dns name="!adapterName!" 192.168.0.3 index=2
)
:WIRELESS
FOR /F "tokens=* delims=:" %%a IN ('IPCONFIG ^| FIND /I "WIRELESS LAN ADAPTER"') DO (
SET adapterName=%%a
REM Removes "Wireless LAN adapter" from the front of the adapter name
SET adapterName=!adapterName:~21!
REM Removes the colon from the end of the adapter name
SET adapterName=!adapterName:~0,-1!
rem ECHO !adapterName!
netsh interface ipv4 set dns name="!adapterName!" static 127.0.0.1 primary
netsh interface ipv6 set dns name="!adapterName!" static ::1 primary
timeout /t 2
netsh interface set interface "!adapterName!" DISABLED
timeout /t 2
netsh interface set interface "!adapterName!" ENABLED
)
ipconfig /flushdns
:EOF
net-uninstall.bat
:: Set primary and alternate DNS for IPv4 on Windows Server 2000/2003/2008,2012,2016 &
:: Windows XP/Vista/7/8/10
@ECHO OFF
SETLOCAL EnableDelayedExpansion
:ETHERNET
SET adapterName=
FOR /F "tokens=* delims=:" %%a IN ('IPCONFIG ^| FIND /I "ETHERNET ADAPTER"') DO (
SET adapterName=%%a
REM Removes "Ethernet adapter" from the front of the adapter name
SET adapterName=!adapterName:~17!
REM Removes the colon from the end of the adapter name
SET adapterName=!adapterName:~0,-1!
rem ECHO !adapterName!
netsh interface ipv4 set dns name="!adapterName!" dhcp
netsh interface ipv6 set dns name="!adapterName!" dhcp
timeout /t 2
netsh interface set interface "!adapterName!" DISABLED
timeout /t 2
netsh interface set interface "!adapterName!" ENABLED
rem netsh interface ipv4 add dns name="!adapterName!" 192.168.0.3 index=2
)
:WIRELESS
FOR /F "tokens=* delims=:" %%a IN ('IPCONFIG ^| FIND /I "WIRELESS LAN ADAPTER"') DO (
SET adapterName=%%a
REM Removes "Wireless LAN adapter" from the front of the adapter name
SET adapterName=!adapterName:~21!
REM Removes the colon from the end of the adapter name
SET adapterName=!adapterName:~0,-1!
rem ECHO !adapterName!
netsh interface ipv4 set dns name="!adapterName!" dhcp
netsh interface ipv6 set dns name="!adapterName!" dhcp
timeout /t 2
netsh interface set interface "!adapterName!" DISABLED
timeout /t 2
netsh interface set interface "!adapterName!" ENABLED
)
ipconfig /flushdns
:EOF
I can't get valet share
working because the path is invalid.
The correct path is C:\Users\Wesley Hendriks\AppData\Roaming\Composer\vendor\cretueusebiu\valet-windows\cli\..\bin\ngrok
but I receive the following error: The system cannot find the file C:\Users\Wesley
.
Probably because I have a space in my Windows User folder name.
I tried several escape methods but it does not seem to work.
going to test.dev or other sites IIS pops up
Hi. I have just found out that because of the backslash before the user name in the paths the nginx config fails .. My name start with 't'.. and I get this
nginx: the configuration file C:\Users\tudor\AppData\Roaming\Composer\vendor\cretueusebiu\valet-windows\bin\nginx/conf/nginx.conf syntax is ok
nginx: [emerg] CreateFile() "C:\Users udor/.valet/Log/nginx-error.log" failed (123: The filename, directory name, or volume label syntax is incorrect)
nginx: configuration file C:\Users\tudor\AppData\Roaming\Composer\vendor\cretueusebiu\valet-windows\bin\nginx/conf/nginx.conf test failed
I have changed all the backslashes to slashes in front of the user name and the config passed
Hello, I really appreciate your effort to bring Valet for Windows machines. I want to clarify something not only for myself, but for everyone who is new in multiple server solutions on one machine.Let's say that I need to have XAMPP installed on my Windows machine for other projects that require PHP 5.6
.
port 80
to other one on either Apache or Valet? Can I have them both running?I would like to hear your opinion on this topic and any possible solutions, or maybe I should keep using XAMPP for now (with respect for your work)
Regards
@cretueusebiu im using laravel and i cannot load any resources like css,images,js must be problem with nginx path. Here's nginx error log.
2017/01/14 15:36:13 [error] 12156#14272: *58 "C:\Laravel\valet\billing/public/css/app.css/index.html" is not found (3: The system cannot find the path specified), client: 127.0.0.1, server: , request: "GET /css/app.css HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "billing.dev", referrer: "http://billing.dev/"
2017/01/14 15:36:13 [error] 12156#14272: *59 "C:\Laravel\valet\billing/public/img/googlelogo.png/index.html" is not found (3: The system cannot find the path specified), client: 127.0.0.1, server: , request: "GET /img/googlelogo.png HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "billing.dev", referrer: "http://billing.dev/"
2017/01/14 15:36:13 [error] 12156#14272: *59 "C:\Laravel\valet\billing/public/js/app.js/index.html" is not found (3: The system cannot find the path specified), client: 127.0.0.1, server: , request: "GET /js/app.js HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "billing.dev", referrer: "http://billing.dev/"
2017/01/14 15:36:14 [error] 12156#14272: *59 "C:\Laravel\valet\billing/public/js/app.js/index.html" is not found (3: The system cannot find the path specified), client: 127.0.0.1, server: , request: "GET /js/app.js HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "billing.dev", referrer: "http://billing.dev/"
here's my page source
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Laravel</title>
<script>
var Laravel = {
csrfToken: "luwVZLJuKka4JiPbVhUagaRi2Or5uia0tQKgP6j3",
stripeKey: "pk_test_L9bWUWBBLdf19cbMYnVlwYLs"
};
</script>
<style href="/css/app.css"></style>
<link rel="stylesheet" href="/css/app.css">
</head>
<body>
<div id="app">
<img src="img/googlelogo.png">
<checkout-form></checkout-form>
</div>
<script src="https://checkout.stripe.com/checkout.js"></script>
<script src="http://billing.dev/js/app.js"></script>
</body>
</html>
I uninstalled valet and installed it once again but this time it shows something like this :
$ valet install
Stopping nginx...
Installing nginx configuration...
Installing nginx directory...
PHP Warning: copy(C:/Users/Samsung/.valet/Services/nginxservice.exe): failed to open stream: Resource temporarily unavailable in C:\Users\Samsung\AppData\Roaming\Composer\vendor\cretueusebiu\valet-windows\cli\Valet\Filesystem.php on line 193
Warning: copy(C:/Users/Samsung/.valet/Services/nginxservice.exe): failed to open stream: Resource temporarily unavailable in C:\Users\Samsung\AppData\Roaming\Composer\vendor\cretueusebiu\valet-windows\cli\Valet\Filesystem.php on line 193
Could not install the nginxservice service. Check ~/.valet/Log for errors.
Hello,
I am pretty sure that this issue doesn't occur cause your Valet project but this error also occurs when I try to use the laravel new
command. But I have actually no freaking idea how this is coming, and it this error comes back when I try to use the valet install
command.
As you can see it says:
Line 17: /valet: No such file or directory
If I browse to that actual file, this is the content:
http://pastebin.com/raw/bXDPCEJe
Could you maybe help me with this? Thank you.
I ran "valet secure test1" and then tried to browse out to https://test1.dev, and got Chrome's "Privacy error" page. When I clicked "Advanced", it said "This server could not prove that it is test1.dev; its security certificate is supposedly from 0 days in the future. This may be caused by a misconfiguration or an attacker intercepting your connection."
When I went into Chrome's browser tools > Security tab > View certificate > Details page, it showed that the certificate's "Valid from" date/time was one hour into the future. I had run "valet secure test1" at 12:04 AM; the certificate's "Valid from" date was today at 1:04 AM.
I'm in US Central standard time (UTC-06:00) if it makes a difference.
Hi,
Today I decided to install Valet on Windows 10. I got this error:
Could not start the phpfpmservice service. Check ~/.valet/Log for errors.
~/.valet/Log has file nginx-error which is empty. I tried to run valet start
with admin privilages but I get same error.
It doesn't seem to start automatically when my computer starts, I have to open CMD as administrator and type valet start.
For all purposes of installation, I'm told everything is installed. However, when I tried to browse a test site I got the "This page cannot be found" error. Checked the services and noticed that there were 2 new services, valet_nginx and valet_phpfpm. Both are set to automatic but only valet_phpfpm is started. When manually trying to start valet_nginx I get the error ``Error 1067: The process terminated unexpectedly."
I checked the event logs which list Child process [6364 - C:\Users\jschaffer\AppData\Roaming\Composer\vendor\cretueusebiu\valet-windows\bin\nginx\nginx.exe -p C:\Users\jschaffer\AppData\Roaming\Composer\vendor\cretueusebiu\valet-windows\bin\nginx ] finished with 1
I checked ~/.valet/Logs but they are mostly empty with the exception of nginxservice-err.log nginx: [emerg] bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)
and ngnxservice.wrapper.log
2017-03-28 15:02:09,634 INFO - Starting ServiceWrapper in the CLI mode
2017-03-28 15:02:09,829 FATAL - WMI Operation failure: ServiceCannotAcceptControl
WMI.WmiException: ServiceCannotAcceptControl
at WMI.WmiRoot.BaseHandler.CheckError(ManagementBaseObject result)
at WMI.WmiRoot.InstanceHandler.Invoke(Object proxy, MethodInfo method, Object[] args)
at winsw.WrapperService.Run(String[] _args, ServiceDescriptor descriptor)
at winsw.WrapperService.Main(String[] args)
2017-03-28 15:02:10,267 INFO - Starting ServiceWrapper in the CLI mode
2017-03-28 15:02:10,464 FATAL - WMI Operation failure: ServiceCannotAcceptControl
WMI.WmiException: ServiceCannotAcceptControl
at WMI.WmiRoot.BaseHandler.CheckError(ManagementBaseObject result)
at WMI.WmiRoot.InstanceHandler.Invoke(Object proxy, MethodInfo method, Object[] args)
at winsw.WrapperService.Run(String[] _args, ServiceDescriptor descriptor)
at winsw.WrapperService.Main(String[] args)
2017-03-28 15:02:10,652 INFO - Starting ServiceWrapper in the CLI mode
2017-03-28 15:02:10,933 INFO - Starting ServiceWrapper in the service mode
2017-03-28 15:02:10,944 INFO - Completed. Exit code is 0
2017-03-28 15:02:10,951 INFO - Starting C:\Users\jschaffer\AppData\Roaming\Composer\vendor\cretueusebiu\valet-windows\bin\nginx\nginx.exe -p C:\Users\jschaffer\AppData\Roaming\Composer\vendor\cretueusebiu\valet-windows\bin\nginx
2017-03-28 15:02:10,954 INFO - Starting C:\Users\jschaffer\AppData\Roaming\Composer\vendor\cretueusebiu\valet-windows\bin\nginx\nginx.exe -p C:\Users\jschaffer\AppData\Roaming\Composer\vendor\cretueusebiu\valet-windows\bin\nginx
2017-03-28 15:02:10,958 INFO - Started 12364
I am running in an administrator shell and I am a local administrator to this system. I am running Windows 10.
in valet foder valet install it working
http://prntscr.com/f1at5u
but another foder it not work.
http://prntscr.com/f1atvj
aslo install enviroment variable.
http://prntscr.com/f1au8p
Please help!
Thanks
Hi,
I'm using Valet on several Windows Workstations. All works fine except the one joined in an Active Directory.
The Problem is the User Profile Path, there is a Local one (C:\Users\MyUsername) and the AD-Profile Path points to an Network Share (like U:) where Valet should always use the local one.
Is there a Way to set the "Config-Dir" explicit for such situations?
PHP Warning: file_get_contents(U://.valet/config.json): failed to open stream: No such file or directory in C:\Users\MyUsername\AppData\Roaming\Composer\vendor\cretueusebiu\valet-windows\cli\Valet\Filesystem.php on line 118
Warning: file_get_contents(U://.valet/config.json): failed to open stream: No such file or directory in C:\Users\MyUsername\AppData\Roaming\Composer\vendor\cretueusebiu\valet-windows\cli\Valet\Filesystem.php on line 118
Hey,
Everytime I try to run a valet command from my D drive in git bash, it says:
Could not start the phpfpmservice service. Check ~/.valet/Log for errors.
Only problem is that there is nothing in the logs..
I am running it as administrator, even in the default windows command prompt as administrator it doesn't work for some reason. When I try to run a command from my C drive it works, the problem is that I have a small boot drive (120GB SSD) so I can't really store much on there.
Is there any way to fix this issue?
Greetings,
Luuk Hoeben
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.