05.01.2013 Views

Mac OS X Leopard - ARCAism

Mac OS X Leopard - ARCAism

Mac OS X Leopard - ARCAism

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

all that stuff is now handled automatically by the included php5.conf file. Just restart Apache<br />

and, as the saying goes, there is no step 3. The PHP Info screen should now display properly, as<br />

shown in Figure 22-6.<br />

Figure 22-6. PHP Info page in Safari<br />

Examining the PHP Info page will tell you a lot about how your server is set up. It’s a good<br />

idea to run it on both your local machine and your remote host, so you can be aware of any differences<br />

between versions, features, or configuration options that might affect you.<br />

To learn more about PHP, including an extensive manual with installation and integration<br />

guides, visit PHP’s official web site at www.php.net/.<br />

Database<br />

Traditionally, a web server consists of four components. There’s the operating system, the web<br />

server daemon, the scripting engine, and the database server. <strong>Mac</strong> <strong>OS</strong> X, Apache, and PHP cover<br />

three of those four out of the box. Whether the database requires any additional work depends<br />

on your needs.<br />

SQLite<br />

CHAPTER 22 LEOPARD AS A WEB SERVER 393<br />

<strong>Mac</strong> <strong>OS</strong> X <strong>Leopard</strong> comes with SQLite installed and running. SQLite is a fast, simple, lightweight<br />

database that is quickly gaining popularity with web developers. It’s compatible with the<br />

same Structured Query Language (SQL) used by nearly every other database in the world. More<br />

importantly, it’s directly addressable from PHP.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!