Editing php.ini on a wandering field

Does anyone know how to change the mail setting in php.ini file using Vagrant.

so I would do ssh in the terminal as follows:

cd myapp

tramp ssh

then what>?

+4
source share
3 answers

Depending on your field, this may be

sudo nano /etc/php5/apache2/php.ini

then make changes and restart using

sudo service apache2 restart
+15
source

Without knowing what specific parameter you want and what you want to change, you can try adding a shell script to the end of your Vagrantfile (in the "Local Scripts" area) to search and replace with ini.

#!/usr/bin/env bash

sed -i.bak s/STRING_TO_REPLACE/STRING_TO_REPLACE_IT_WITH/g /etc/php5/apache2/php.ini

ini_set ( ) .

+3

In my case, when I use scotchbox for strollers, changing the file php.iniwill not reflect the changes in the output of the function phpinfo(), so I changed the file /etc/php5/apache2/conf.d/user.ini, which can be a bare file or a file with several lines declaring the php error display, here I add my configurations upload_max_filesize = 64MSave the changes and enter sudo service apache2 restart. Looked at the phpinfo page and I see the updated file.

+1
source

Source: https://habr.com/ru/post/1535997/


All Articles