Adding PHP to Apache on Linux - page 12
Appendix C: Fixing Red Hat 6.1's apxs Script
The apache-devel RPM included in the original Red Hat 6.1 distribution contains a broken version of the apxs script, which will prevent you from using it with PHP (or any other module). It's possible that a later redistribution of 6.1 (such as CDs made and passed around by a Linux user group) may have this problem fixed�but just in case, check /usr/sbin/apxs. If somewhere near line 81 you see
my $CFG_LIBEXECDIR = 'modules';
then change 'modules' to '/usr/lib/apache'. Next, look for lines that look like this:
my $CFG_LD_SHLIB = 'gcc';
my $CFG_LDFLAGS_SHLIB = q(-shared);
If the lines in your /usr/sbin/apxs script look something like this, and the $CFG_LIBEXECDIR line has been corrected, you should be in good shape to build PHP. You can find more details in the ./php/php3/INSTALL.REDHAT file included in the PHP distribution.
- Skip Ahead
- 1. Supercharging Your Web Pages
- 2. Assumptions in This Article
- 3. How to Get PHP
- 4. PHP Extensions
- 5. Building PHP for CGI Use
- 6. Building PHP as an Apache Module
- 7. Building mod_php as a Dynamically Loaded Object
- 8. Testing Your Installation
- 9. Going Further/In Conclusion
- 10. Appendix A: Building Apache at Lightspeed
- 11. Appendix B: Apache Source Components Provided by Linux Distributions
- 12. Appendix C: Fixing Red Hat 6.1's apxs Script
Solid state disks (SSDs) made a splash in consumer technology, and now the technology has its eyes on the enterprise storage market. Download this eBook to see what SSDs can do for your infrastructure and review the pros and cons of this potentially game-changing storage technology.