logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: silent install of apache and php
Author
cwhite



Joined: 20 Dec 2007
Posts: 1

PostPosted: Thu 20 Dec '07 7:43    Post subject: silent install of apache and php Reply with quote

Hi! I'd like to install apache and php silently. I thought for apache I would just do this:
Code:
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.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Thu 24 Jan '08 15:02    Post subject: Reply with quote

Silent Install
The installer also supports a silent mode, which is helpful for Systems Administrators to deploy PHP easily. To use silent mode:
Code:

msiexec.exe /i php-VERSION-win32-install.msi /q


You can control the install directory by passing it as a parameter to the install. For example, to install to e:\php:
Code:

msiexec.exe /i php-VERSION-win32-install.msi /q INSTALLDIR=e:\php

You can also use the same syntax to specify the Apache Configuration Directory (APACHEDIR), the Sambar Server directory (SAMBARDIR), and the Xitami Server directory (XITAMIDIR).

You can also specify what features to install. For example, to install the mysqli extension and the CGI executable:
Code:

msiexec.exe /i php-VERSION-win32-install.msi /q ADDLOCAL=cgi,ext_php_mysqli


For more details see the docs http://de.php.net/manual/en/install.windows.php
Back to top


Reply to topic   Topic: silent install of apache and php View previous topic :: View next topic
Post new topic   Forum Index -> Apache