Securing and Optimizing Linux: RedHat Edition -A Hands on Guide | ||
---|---|---|
Prev | Chapter 29. Software -Network Server, web/Apache | Next |
Now, move into the new php4 directory cd ../php-4.0 and type the following commands on your terminal:
Edit the php_pgsql.h file, vi ext/pgsql/php_pgsql.h and change the lines:
#include libpq-fe.h #include libpq/libpq-fs.h |
#include /usr/include/pgsql/libpq-fe.h #include /usr/include/pgsql/libpq/libpq-fs.h |
Now, we must configure and install PHP4 in the Linux server:
Compile without debugging symbols.
Enable safe mode by default.
Include IMAP & POP support.
Include LDAP directory support.
Include PostgresSQL database support.
Include mm support to improve performance of Memory Library.
Enable inline-optimization for better performance.
Compile with memory limit support.
Assume the C compiler uses GNU ld.
[root@deep ]/php-4.0# make [root@deep ]/php-4.0# make install |