
Chapter 3 Managing Websites 53
To enable PHP:
1 In Server Admin, click Web for the server you want.
2 Click Settings in the button bar.
3 In the Modules pane, scroll to php4_module in the module list and click Enabled for
the module, if necessary.
4 Click Save.
User Content on Websites
Mac OS X client has a Personal Web Sharing feature, where a user may place content in
the Sites folder of his or her home directory and have it visible on the web. Mac OS X
Server has much broader web service capability, which can include a form of personal
web sharing, but there are important differences between Mac OS X client and
Mac OS X Server.
Web Service Configuration
By default, on Mac OS X Server:
• Web service ignores any files in the /etc/httpd/users/ folder.
• Workgroup Manager does not make any web service configuration changes.
• Folder listings are not enabled for users.
All folder listings in web service use Apache’s FancyIndexing directive, which makes
folder listings more readable. In Server Admin, the Sites/Options pane for each site has
a Folder Listing checkbox. This setting enables folder listings for a specific virtual host
by adding a “+Indexes” flag to Apache’s Options directive for that virtual host. If folder
listings are not explicitly enabled for each site (virtual host), file indexes are not shown.
The site-specific settings do not apply outside the site; therefore site-specific settings
do not apply to users’ home directories. If you want users to have folder-indexing
capability on their home directories, you need to add suitable directives to Apache’s
configuration files. For a specific user, you add the following directives inside the
<IfModule mod_userdir.c> block in the httpd.conf file:
<Directory "/Users/refuser/Sites">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Comentarios a estos manuales