Was this page helpful?

Configuring MindTouch to run under Plesk

    Table of contents
    No headers

    The standard installation routine doesn't seem to work correct for installing MindTouch on a system that is managed by using the Plesk interface. Here are some information that could help you as it was asked in the forum. Please edit this page as you see something wrong on it. I tried to explain the way I did but I'm not an informatician at all.

         

    1. Install the wiki as it is described in the user guide according to your server.

    2. Copy dekiwiki web files to a domain or subdomain httpdocs or httpsdocs, for example in CentOS:

      Domain

      cp -r /var/www/dekiwiki/* /var/www/vhosts/<domainname>/httpdocs/

      Subdomain

      cp -r /var/www/dekiwiki/* /var/www/vhosts/<domainname>/subdomains/httpdocs/
    3. Rename the apache configuration file, adding ".disable" at the end. For example in CentOS:

      mv /etc/httpd/conf.d/deki-apache.conf /etc/httpd/conf.d/deki-apache.conf.disabled
    4. Copy content of apache configuration file vhost.conf or vhost_ssl.conf, for example in CentOS:

      /var/www/vhosts/<domainname>/conf/vhost.conf

      or

      /var/www/vhosts/<domainname>/subdomains/<subdomainname>/conf/vhost.conf

      cat /etc/httpd/conf.d/deki-apache.conf.disabled > /var/www/vhosts<domainname>/subdomains/<subdomainname>/conf/vhost.conf
    5. Comment out the <VirtualHost> tags and server setup, leaving only the apache URL rules of the url and proxy with services. For example in CentOS:

      #<VirtualHost *>
      #        ServerName dekiwiki
      #        ServerAlias dekiwiki
      #
      #       ErrorLog /var/log/httpd/error-dekiwiki.log
      #       CustomLog /var/log/httpd/access-dekiwiki.log common
      #
      #       DocumentRoot "/var/www/dekiwiki"
      #
              RewriteEngine On
              RewriteCond %{REQUEST_URI} ^/$
              RewriteRule ^/$ /index.php?title= [L,NE]
      
              RewriteCond %{REQUEST_URI} ^/@gui/[^.]+$
              RewriteRule ^/@gui/(.*)$ /proxy.php?path=$1 [L,QSA,NE]
      
              RewriteCond %{REQUEST_URI} !^/(@api|editor|skins|config|@gui)/
              RewriteCond %{REQUEST_URI} !^/index\.php
              RewriteCond %{REQUEST_URI} !^/favicon\.ico$
              RewriteCond %{REQUEST_URI} !^/robots\.txt$
              RewriteCond %{QUERY_STRING} ^$ [OR] %{REQUEST_URI} ^/Special:Search
              RewriteRule ^/(.*)$ /index.php?title=$1 [L,QSA,NE]
      
              # deki-api uses encoded slashes in query parameters so AllowEncodedSlashes must be On
              AllowEncodedSlashes On
      
              # FIXME:
              # Some php flags we need. These are only needed until all
              # the short php open tags are changed to long in the source code.
              php_flag short_open_tag on
              # Allow short open tags and turn off E_NOTICE messages
              php_value error_reporting "E_ALL & ~E_NOTICE"
              # Setting php memory parameters
              # php_value memory_limit "128M"
              # php_value post_max_size "64M"
              # php_value upload_max_filesize "64M"
      
              # 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
      
             <Proxy *>
                AddDefaultCharset off
                Order deny,allow
                Deny from all
                Allow from all
              </Proxy>
      #</VirtualHost>
    6. Other configurations has in order file, http.include. Control domain and subdomains in same file. Edit file, for example in CentOS:

      /var/www/vhosts/<domainname>/conf/httpd.include
    7. If not exists reference of vhost.conf or vhost_ssl.conf file to domain ou subdomain, include on end line of tag <Virtualhost>, for example in CentOS:

      ...
      </VirtualHost>
      ...
              ErrorDocument 415 /error_docs/unsupported_media_type.html
              ErrorDocument 501 /error_docs/not_implemented.html
              ErrorDocument 502 /error_docs/bad_gateway.html
              Include /var/www/vhosts/<domainname>/subdomains/<subdomainname>/conf/vhost.conf
      </VirtualHost>
      ...
      
      
    8. Now, change references of your VirtualHost "php_admin_value open_basedir" to "none", for example in CentOS:

      php_admin_value open_basedir "/var/www/vhosts/<domainname>/subdomains/<subdomain>/httpdocs:/tmp"
      

      to

      php_admin_value open_basedir none
    9. Chance reference of your VirtualHost "php_admin_flag safe_mode" to  "off", for example in CentOS:

      php_admin_flag safe_mode on

      to

      php_admin_flag safe_mode off
    10. Restart apache and continue your installation in your browser. http://<subdomainname>.<domainname>.

    11. Use the wiki!

    Technical information: This worked for Plesk 8 on a 1&1 root server CentOS.

    If your are unsure where to find your PHP.INI on a Plesk system the best way is to run a phpinfo() in that webspace and find it out by looking in the output.

    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by