Servers-Apache

This section contains notes and hints specific to Apache installs of PHP , both for Unix and Windows versions .

Details of installing PHP with Apache on Unix

You can select arguments to add to the configure on line 8 below from the Complete list of configure options .

דוגמה 2-5 .













 
11

 
.

 
cp

 
php.ini-dist

 
/

 
usr

 
/

 
local

 
/

 
lib

 
/

 
php.ini

 
You

 
can

 
edit

 
your

 
.ini

 
file

 
to

 
set

 
PHP

 
options

 
.




 
If

 
you

 
prefer

 
this

 
file

 
in

 
another

 
location

 
,

 
use

 
--with-config-file-path=

 
/

 
path

 
in

 
step

 
8

 
.




 
12

 
.
























 
13

 
.







The locations of the apachectl and http(s)dctl binaries often vary. If your system has locate or whereis or which commands, these can assist you in finding your server control programs.









הערה : User nobody Group " #-1 " Unless you change that to "Group nogroup " or something like that ("Group daemon " is also very common ) PHP will not be able to open files .

Installing PHP on Windows with Apache 1.3.x

Note that the second line in the list above can be found in the actual versions of httpd.conf , but it is commented out. Remember also to substitute the c:/php/ for your actual path to PHP.

אזהרה



הערה :

הערה :