In a commercial Web-hosting environment, it is common to make a special default virtual
host that contains an error message indicating that no site by that name has been configured.
User Content and the userdir Setting
In situations in which you do not have the ability to set up a virtual host for every user that you
want to provide Web space for, you can easily make use of the mod_userdir module in Apache.
With this module enabled (which it is by default), the public_html directory under every user??™s
home directory is available to the Web at http://servername/~username/. For example, a user
named wtucker on www.example.com stores Web content in /home/wtucker/public_html.
That content would be available from http://www.example.com/~wtucker.
Installing a Web Application:
Coppermine Photo Gallery
Once your LAMP server is operational, you can begin installing or creating applications to run on
it. One such application is Coppermine Photo Gallery (CPG), the installation of which is demonstrated
in this section. CPG is a Web-based photo gallery management system written in PHP.
Through its Web interface, you can upload pictures to your own photo galleries, which will be
available on the Web through your LAMP server.
You can install CPG under a virtual host or under a user??™s home directory on your main host.
Pages:
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218