Following are the steps to configure PHP on IHS already installed. For this example I have used IHS v8.5.0.0, PHP v5.4.28 and CentOS 6.5 1. Download PHP sources... from http://php.net/ 2. Extract source to /tmp tar -zxvf php-5.4.28.tar.gz 3. Compile PHP source cd /tmp ./configure --with-apxs2=/opt/IBM/HTTPServer/bin/apxs make make install *Chage IHS apxs directory path to whatever your install path is 4. Set php.ini cp php.ini-development /usr/local/lib/php.ini Add this line in php.ini include_path="/usr/local/lib/php" 5. Edit httpd.conf This line should be already in your httpd.conf if not, add it. LoadModule php5_module modules/libphp5.so Add following lines AddType application/x-httpd-php .php .php3 .phtml AddType application/x-httpd-php-source .phps 6. Create php page Create index.php with the following code and save it to /opt/IBM/HTTPServer/htdocs or whatever your directory is. <?php p...
These notes are intended mainly for me but feel free to use them if you find them useful. I have many notes from way different topics, there is no specific one or correlation between them.