yCodeTech / valet-windows

Laravel Valet for Windows.
https://packagist.org/packages/ycodetech/valet-windows
MIT License
31 stars 5 forks source link

Feat: add "how to change and set php.ini and additional .ini file" to readme.md #13

Closed dansvel closed 2 months ago

dansvel commented 3 months ago

Is your feature request related to a problem?

just me strungle to set php.ini and additional .ini files

What's the solution you would like?

the how to is

go to C:\Users\dell\.config\valet\Services and find the .xml file for your phpcgi version

php8.3.8cgiservice.xml to something like

<service>
  <id>valet_php8.3.8cgi-9001</id>
  <name>valet_php8.3.8cgi-9001</name>
  <description>Valet PHP-CGI</description>
  <env name="PHP_FCGI_CHILDREN" value="4"/>
  <env name="PHP_INI_SCAN_DIR" value="C:\Users\dell\scoop\apps\php\current\cli\conf.d"/>
  <executable>C:\Users\dell\scoop\apps\php\current\php-cgi.exe</executable>
  <arguments>-b 127.0.0.1:9001 -c C:\Users\dell\scoop\apps\php\current\cli\php.ini</arguments>
  <logpath>C:\Users\dell\.config\valet\Log\</logpath>
  <log mode="reset"></log>
  <onfailure action="restart" delay="5 sec"/>
  <onfailure action="restart" delay="10 sec"/>
</service>

notice i add one line <env name="PHP_INI_SCAN_DIR" value="C:\Users\dell\scoop\apps\php\current\cli\conf.d"/> and edit this line -c C:\Users\dell\scoop\apps\php\current\cli\php.ini inside <arguments>-b 127.0.0.1:9001</arguments>

replace the path to your path

Extra details

sorry if i post it in here, i dont know where should i share this,,

hope it will help somebody that just learn like me,,

thank you for this great project,,

yCodeTech commented 3 months ago

I'm not sure I understand the purpose of this.

yCodeTech commented 3 months ago

@dansvel Can you explain why this would be needed? Elaborate with some examples.

yCodeTech commented 2 months ago

Closing due to inactivity.

More information is required on why this would be needed, and subsequent tests would need to be conducted.

If you have more information to provide, please reopen this issue.