I have used a Startup script on a Web role to install PHP by using Windows Plattform Installer. Everything is ok, PHP is installed and the application works, however when I uppload large files the application generates error. I fixed it by editing the php.ini file manually and chnaged upload_max_filesize. My question is, How do I can modify php.ini file automatically (not manually) by adding som script to be executed AFTER php has been installed. I wrote "AFTER" because this script must wait until my startup script is executed completelly and php has been installed. Thanks for your help appreciate all advices.
UPdated: Following is my install-php.bat file which is located in bin folder of my web role. I am not familiar with powershell. How can I translate it to powershell script?
ECHO "Starting PHP Installation" >> log.txt
md "%~dp0appdata"
cd "%~dp0appdata"
cd..
reg add "hku\.default\software\microsoft\windows\currentversion\explorer\user shell folders" /v "Local AppData" /t REG_EXPAND_SZ /d "%~dp0appdata" /f
"..\MyWebpicmdline\WebPICmdLine" /Products:PHP53 /AcceptEula >>log.txt 2>>err.txt
reg add "hku\.default\software\microsoft\windows\currentversion\explorer\user shell folders" /v "Local AppData" /t REG_EXPAND_SZ /d %%USERPROFILE%%\AppData\Local /f
ECHO "Completed PHP Installation" >> log.txt