include("site.inc"); $template = new Page; $template->initCommon(); $template->displayHeader(); ?>
To test document publishing, first set up a web sandbox on a local Fedora system.
Install the "Web Server" package group:
su -c 'yum groupinstall "Web Server"'
Create a folder for the web server to access the site files.
su -c 'mkdir /var/www/fedora'
Change the permissions on this directory to make it easier to access for your normal user account.
su -c 'chown username
/var/www/fedora'
Link to the new directory from your home directory.
ln -s /var/www/fedora ~/fedora
Retrieve the web module from CVS.
cd ~/fedora
cvs -d :ext:username
@cvs.fedoraproject.org:/cvs/fedora co web
Web CVS Access | |
---|---|
You must have access to the
|
Edit the /etc/hosts
file and add the
following line after all other
lines:
127.0.0.1 docs.localhost.localdomain
Create a file
/etc/httpd/conf.d/fpo.conf
with the
following content:
NameVirtualHost *:80 <VirtualHost *:80> ServerName docs.localhost.localdomain DocumentRoot /var/www/fedora/web/html/docs Alias /images /var/www/fedora/web/html/images Alias /css /var/www/fedora/web/html/css Alias /include /var/www/fedora/web/include Options Indexes FollowSymLinks </Virtualhost>
Create a file /etc/php.d/fpo.ini
with
the following content:
include_path = ".:/var/www/fedora/web/include"
Start the web server using the following command:
su -c '/sbin/service httpd start'
To have the web server start at every boot, use the following command:
su -c '/sbin/chkconfig httpd on'
To test the new sandbox site, open a Web browser and point it
at the URL http://docs.localhost.localdomain
.