557Chapter 30Configurationthe default choice. (Web site developers) If you forget this
557Chapter 30Configurationthe default choice. If you forget this (or the –with-apxs) flag when trying to make a staticApache module, you will end up with the CGI version. You almost certainly want to set the Apache base directory parameter because makemaydefault to some unexpected location. Remember that Apache installs in different defaultdirectories in the source versus RPM builds so if you ve previously installed an httpdviaRPM (perhaps as part of a Red Hat Linux installation), you should uninstall the package andleave a clean background for the source build you need now. A static Apache build will have to be recompiled every time you change PHP versions. Apache server, at this point, changes rather slowly, whereas PHP adds new extensions andreleases patches rather frequently, so this may be a significant factor in choosing the apxsbuild instead. –with-apxs[=DIR] or –with-apxs2[=DIR] This flag specifies that the PHP module be built as a dynamic Apache module. This saves diskspace for Apache, and some people claim the build is easier. The main value of the apxs buildis that you will be able to swap PHP modules (while upgrading, for instance) without recom- piling Apache. If you upgrade frequently, or if you enjoy trying out experimental builds, this isthe best option. Remember that you can build PHP with eitherthe –with-apacheor –with-apxsflags, not both. –with-[database][=DIR] All the databases supported by PHP use a similar compile-time flag. The directory need onlybe specified if it is not the default installation directory. For more information on choosing adatabase for use with PHP, see Chapter 12. The specific flags and default directories are listedin Table 30-1. Table 30-1: Database Compile-Time InformationDatabase NameDefault DirectoryFlag SyntaxAdabas D*/usr/local–with-adabas[=DIR] DBasebundled–enable-dbaseFileprobundled–enable-fileproIBM DB2/home/db2inst1/sqllib–with-ibm-db2[=DIR] Informixno default–with-informix[=DIR] iODBC*/usr/local–with-iodbc[=DIR] mSql/usr/local/Hughes–with-msql[=DIR] MySQL < 4.1/usr/local/mysql--with-mysql[=DIR] MySQL 4.1 and above/usr/local/mysql--with-mysqli[=DIR] OracleORACLE_HOME--with-oci8[=DIR] ContinuedCaution34
Note: In case you are looking for affordable webhost to host and run your servlet application check Vision servlet hosting services