Andrey Kurnikovs
Andrey Kurnikovs

Reputation: 427

Laravel Homestead - configure php.ini file

I'm on Windows10

So Laravel Homestead uses its own php installation, right. So what's the path to the php.ini file then? Can I access it via the file explorer or?

Upvotes: 2

Views: 4361

Answers (3)

HenryW
HenryW

Reputation: 3761

It is a little off-topic and not really what you were asking for, but you can overwrite your PHP files via ini_set. Just think of it, in the end, your live (clients) server might require a php.ini override. And you cannot change the server configuration file.

Upvotes: 0

Andrey Kurnikovs
Andrey Kurnikovs

Reputation: 427

Yes, you are right. So inside gitBash:

  1. vagrant ssh
  2. cd /etc/php/7.2/fpm
  3. vi php.ini

Upvotes: 4

Ryan Kozak
Ryan Kozak

Reputation: 1131

Homestead uses Vagrant to create a virtual machine of Ubuntu 18, Nginx, etc. The php configuration is within the virtual machine, not the Windows 10 file system. You'll wanna ssh into your virtual machine, php settings can be found in /etc/php/7.*

Upvotes: 0

Related Questions