|
|
MindTouch OpenGarden > Deki Wiki > インストールとアップグレード > 1.8 Hayes Official Install and Upgrade Guide > Ubuntu 7.10
Ubuntu 7.10From $1目次Fresh Install:Prerequisites
Install the prerequisites using apt-get apt-get install apache2 php5 php5-cli php5-mysql libapache2-mod-php5 php5-mcrypt \ php5-mhash php5-gd php5-curl imagemagick wv pdftohtml html2text html2ps htmldoc aspell \ links php-pear curl mysql-server-5.0 Install mono apt-get install mono-gmcs mono-mcs libmono-sqlite2.0-cil libmono-sqlite2.0-cil libmono-system-web2.0-cil set your mysql root password (if this is the first time you've installed mysql) mysql -e "set password=PASSWORD('your_root_password')"
install pear libraries pear install XML_RPC Cache_Lite Download Hayes BitsDownload Hayes build from one of the following sources. * RECOMMENDED: http://sourceforge.net/projects/dekiwiki (tarballs) Extract the archive to your home directory: cd ~/ tar xfvz Deki_Wiki_1.8.1a_Hayes_source.tar.gz cd Deki_Wiki_1.8.1a_Hayes_source Copy web files to your apache directory mkdir /var/www/deki-hayes cp -r web/* /var/www/deki-hayes chown -R www-data /var/www/deki-hayes Configure Apachecd ~/ Deki_Wiki_1.8.1a_Hayes_source Edit the ./config/deki-apache.conf file Change the following values according to your setup: ServerName deki-hayes DocumentRoot "/var/www/deki-hayes" Copy the apache config file (Ensure that your default configruation isn´t set as default otherwise this will bypass Deki Wiki and you will not be able to access Deki Wiki at the end of install to do so edit the default file /etc/apache2/sites-available/default) cp config/deki-apache.conf /etc/apache2/sites-available/deki rm /etc/apache2/sites-enabled/000-default ln -s /etc/apache2/sites-available/deki /etc/apache2/sites-enabled/001-deki Enable the mod_rewrite module a2enmod rewrite Configure Apache for deki-apiThe deki-api is a .NET application which runs under the mono runtime. deki-api runs as a standalone mono application which uses MindTouch Dream's built-in webserver. mod_proxy proxy is used to proxy requests from apache to deki-api. Enable mod_proxy_http module a2enmod proxy_http Edit the mod_proxy config file (/etc/apache2/mods-available/proxy.conf ) and make sure you have the following: <Proxy *>
AddDefaultCharset off
Order deny,allow
Deny from all
Allow from all
</Proxy> Edit your deki apache config file /etc/apache2/sites-available/deki and make sure the following lines are uncommented # mod_proxy rules ProxyPass /@api http://localhost:8081 retry=1 ProxyPassReverse /@api http://localhost:8081 SetEnv force-proxy-request-1.0 1 SetEnv proxy-nokeepalive 1 Restart apache to enable the module and apply the new settings /etc/init.d/apache2 restart Configure deki-apiCreate the deki-api logfile touch /var/log/deki-api.log chown www-data /var/log/deki-api.log Create the mono .wapi directory (Note: the mono .wapi directory needs to exist in the home directory for your apache user. In debian the www-data user's home dir is: /var/www/ but this location may be different for different linux distros.) mkdir /var/www/.wapi chown www-data /var/www/.wapi Edit the config/dekihost init script. This script can be used to test the status of deki-api or start/stop the mindtouch.host.sh (deki-api) process. Change the following values to match your configuration: # path to your wiki DEKI_PATH=/var/www/deki-hayes # this should match your Apache ServerName directive DEKI_SERVERNAME=deki-hayes Copy the init script cp config/dekihost /etc/init.d/ Create a symlink to the dekihost init script in the appropriate runlevel ln -s /etc/init.d/dekihost /etc/rc2.d/S92dekihost Install using the web-installerLaunch a browser and go to the installer: http://deki-hayes/config/index.php Fill in the required information and click "Install Deki Wiki" Complete the installation by running the additional commands as instructed by the installer.
タグ:
|
root@myhost:/etc/apache2/mods-available # cat php5.conf
<IfModule mod_php5.c>
AddType application/x-httpd-php .php .phtml .php3
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .php4 .php5
</IfModule>
I just added the third line, and voila!