PHP installation and configuration
Use this procedure to set up PHP for use with the Management Console.
Before you begin
- Version: PHP must be 5.2.4 or later
- Database drivers: PHP modules for the Build Forge database installed
About this task
- Download PHP
- Install PHP
- Configure PHP
- Edit the Apache configuration file
- (optional) Identify proxy server to use to access the database (needed only if the Management Console host accesses the database through a proxy server)
Install PHP
About this task
- DB2:
ibm_db2driver - MySQL:
mysqlidriver - Oracle Instant Client:
oci8driver
Note: Currently, the full Oracle client is not compatible with
PHP oci8. Use Oracle Instant Client only.
Procedure
Configure PHP
Procedure
Edit Apache Configuration File
Procedure
Edit Apache configuration file. Add information about PHP
in
httpd.conf.cd <apache-dir>
vi httpd.conf
Add the following lines:LoadModule php5_module modules/libphp5.so
AddHandler php5-script .php
AddType text/html .php
DirectoryIndex index.php
Identify Proxy Server
About this task
Procedure
Edit the PHP configuration file
php.ini.
It is located in
<php-install>/lib, for
example /usr/local/php-5.2.4. Add the following entries:
bf_proxyHost=<your_proxy_server_hostname>
bf_proxyPath=<your_proxy_path>
bf_symlinkPath=<symlink_to_proxy_path>