do i have to use the php configure command?
when installing php from source, do i have to add all th开发者_如何学JAVAe ./configure options? or can i just use ./configure and then edit the php.ini?
Some modules won't get built if you don't specify them explicitly at the ./configure
stage. No amount of php.ini changes later on will magically make the modules' .so files appear, meaning you'd have to recompile to activate them.
If you are installing PHP with Apache2 the bare minimum is:
./configure --with-apxs2=/usr/local/apache2/bin/apx
Adding additional options will add additional modules to PHP. For instance, if you want MySQL support you need to add --with-mysql
.
You can checkout the other available options by typing ./configure --help
More information about installing PHP here: http://ca2.php.net/install
Hope this helps!
- Christian
Just carefully read the README file. Try to avoid modifications to the php.ini as usually this is allowed to the system admins only.
精彩评论