Sharif Islam wrote:
Make sure you have Apache configured to run the module, and serve up PHP> Sorry if this was discussed earlier. I couldn't find any relevant
> answers from the archive.
> I am currently testing RH Enterprise WS with the following:
> I uninstalled the php rpm, because I couldn't get freetds(database
> connection to mssql server) part working. Then, I got php-4.3.4 and
> installed it from scratch with following options:
> ./configure --with-apxs2=/usr/sbin/apxs --enable-trans-sid
> --with-sybase-ct=/usr/local/freetds --with-ldap --with-gd
> --with-freetype-dir --with-zlib-dir
> I think I made the necessary changes in php.ini(//usr/local/lib/php.ini)
> and httpd.conf. However, apache seems to not parsing the php pages. My
> test pages work fine in the command prompt, but it spits out the code
> as text when I access the pages from a browser.
> One other option I can look into is to remove the httpd rpms and build
> apache from scratch. However, I would like to avoid that, if I can make
> the above work. I would appreciate any pointers. Thanks.
pages. This is from memory, so you had better check Apache docs:
This was _probably_ done by the apxs2 mod installer:
LoadModule php4_module [path to mods]/libphp4.so
This was probably not done by any install script:
DirectoryIndex index.html index.php
AddType application/x-httpd-php .php .html
You need to put these in the appropriate place in the http.conf, and/or
an .htaccess file (if allowable). Removing the RPM probably removed
these entries, as well.