The book says to modify the httpd.config file in a few places. First, it says to enable the LoadModule php5_module by removing the # symbol. Ignoring the fact that the httpd.config file isn't in the location that the book says it should be, there is no such line for php5 in the file - just #LoadModule php_4, which I enabled, along with the later #AddModule php_4 line.
Also, the book says to copy the php.ini.default file to a new php.ini file, and modify the mysql.default_socket line to be mysql.default_socket = /tmp/mysql.sock, which I did. It also says to modify the mysqli.default_socket line in the same way; however, there's no such line in my php.ini file.
After all this configuration stuff is done, the book says to save the following script:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Today’s Date</title>
<meta http-equiv="content-type"
content="text/html; charset=utf-8"/>
</head>
<body>
<p>Today’s date (according to this web server) is
<?php
echo date('l, F dS Y.');
?>
</p>
</body>
</html>So, on OS 10.4.11, should I be looking for a different version of PHP, or do I just need help configuring what I have already? Thanks.
Oh, and p.s., Personal Web Sharing is turned on.