silent install of apache and php

Discussion in 'Apache' started by cwhite, Dec 19, 2007.

  1. #1
    Hi! I'd like to install apache and php silently. I thought for apache I would just do this:

    msiexec /i apache_2.2.6-win32-x86-no_ssl.msi /passive ALLUSERS=1 SERVERADMIN=admin@localhost SERVERNAME=localhost SERVERDOMAIN=localhost SERVERPORT=80

    and something similar for php, which I think needs no parameters.

    However I was told that I would have to specify PHPIniDir in apache's httpd.conf. How would I do that? Also when I install Apache normally (not silent), when I looked at the httpd.conf, there's no "Section 1: Global Environment" part where I'm supposed to put the PHPIniDir.

    Please help me. Thanks.

    Edit:
    It seems that installing PHP will automatically add PHPIniDir to httpd.conf. Does anyone know how to silent install PHP so it does that? I don't know what the parameter name for that would be.
     
    cwhite, Dec 19, 2007 IP