Adding PHP to Apache on Linux - page 8
Supercharging Your Web Pages
If you built PHP as a script interpreter, verify that it is working correctly by creating and executing a test script such as the following:
% cat <script-test.php3 > #!/usr/local/bin/php -q > > EOP % chmod 755 script-test.php3 % ./script-test.php3 PHP script interpreter is OK! %
The '-q' switch tells the interpreter to suppress the 'Content-type:�text/html' line it ordinarily prints by default (because it assumes it's being run as a CGI script).
If PHP was built as an Apache module, the simplest way to test it is to create a file in the DocumentRoot that contains this single line:
and then fetch it in a browser. It should display a long and detailed Web page describing the PHP module, the extensions that were included when it was built, and the Apache environment as well.
- Skip Ahead
- 1. Supercharging Your Web Pages
- 2. Supercharging Your Web Pages
- 3. Supercharging Your Web Pages
- 4. Supercharging Your Web Pages
- 5. Supercharging Your Web Pages
- 6. Supercharging Your Web Pages
- 7. Supercharging Your Web Pages
- 8. Supercharging Your Web Pages
- 9. Supercharging Your Web Pages
- 10. Supercharging Your Web Pages
- 11. Supercharging Your Web Pages
- 12. Supercharging Your Web Pages
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.