Changes between Version 16 and Version 17 of MaiaInstall


Ignore:
Timestamp:
Oct 7, 2004, 5:05:10 AM (16 years ago)
Author:
dnauck
Comment:
  1. Install the PHP scripts

Legend:

Unmodified
Added
Removed
Modified
  • MaiaInstall

    v16 v17  
    337337== 9. Install the PHP scripts ==
    338338
     339Decide where you want to install the PHP scripts. This should be a subdirectory somewhere within your web tree or a new webuser.
     340For this example we'll assume a directory called mail, just off the document root of the web server (i.e. the relative path to the folder would then be /mail, accessible to the outside world as http://www.example.com/mail). Copy the contents of the /php subdirectory of the Maia Mailguard distribution to this folder.
     341
     342'''Note:''' Your webserver needs writeaccess on the '''maia_html/themes/*/compiled''' subdirectorys. (a secure way is to use [http://www.suphp.org suPHP] instead of mod_php)
     343
     344
     345'''Please consult your webserver documentation.'''
     346
     347Example for the [http://httpd.apache.org Apache Webserver] on [http://www.debian.org Debian]:
     348{{{
     349[root]# adduser --shell /bin/false web001
     350[root]# mkdir /home/web001/maia_html
     351[root]# cp -r /var/amavisd/download/maia/php/* /home/web001/maia_html/
     352[root]# chown -R web001:www-data /home/web001
     353[root]# chmod 770 /home/web001/
     354[root]# chmod 770 /home/web001/maia_html/
     355[root]# chmod 770 /home/web001/maia_html/themes/*/compiled/
     356}}}
     357This add a new webuser to the system, set write permission to the [http://httpd.apache.org Apache] systemuser '''www-data''' on '''maia_html/themes/*/compiled''' subdirectorys.
     358
     359Now you've to edit your httpd.conf, e.g.:
     360{{{
     361...
     362<VirtualHost *>
     363DocumentRoot /home/web001/maia_html
     364ServerName maia.example.com
     365ServerAdmin webmaster@example.com
     366ErrorLog /home/web001/logs/error.log
     367CustomLog /home/web001/logs/access.log "combined"
     368</VirtualHost>
     369...
     370}}}
     371
     372
    339373----
    340374