Оглавление
- Apache - DNS settings
- Apache - SSL certificates
- Apache - Configuration files
- Apache - Virtual host template
- Apache - Authorization
- Apache - Localized error pages
- Apache - Single sign-on
- Apache - Automatic proxy configuration
- Apache - Installing SSL certificate in browsers
- Apache - Web applications
- Apache - User wiki
- Apache - Intrusion protection
- Apache - External resources
- Apache - Optimization
- Squid setup
Apache - Wiki
| apache | php | mysql | web |
1. Install packages
Installation (described in Installation guide): Install packages:
yum -y install php yum -y install php-xml
2. Install PHP5 in RHEL4
Download php5-rhel4-x86_64-rpms.tar.gz
tar xzf php5-rhel4-x86_64-rpms.tar.gz cd php5-rhel4-x86_64-rpms rpm -ivh mysqlclient15-5.0.45-1.el4.remi.x86_64.rpm rpm -ivh --nodeps php-*.rpm /etc/init.d/httpd restart
3. Install database
Run MySQL:
chkconfig --add mysqld chkconfig mysqld on service mysqld restart mysqladmin -uroot password pass123
Create database
mysql -uroot -ppass123
create database wikidb;
grant create, select, insert, update, delete, alter, lock tables on wikidb.*
to wikiuser@localhost identified by 'pass123';
flush privileges;
\q4. Install files
- Download mediawiki-1.12.0.tar.gz from the MediaWiki site.
- Create directory
cd /var/www tar xzf /root/mediawiki-1.12.0.tar.gz mv mediawiki-1.12.0 wiki chown -R root:root wiki chown -R apache:apache wiki/config
- Configure Apache:
vi /etc/httpd/conf.d/ssl-main.conf
<VirtualHost *:443> ServerName wiki.ourdom.com:443 DocumentRoot "/var/www/wiki" SSLEngine on SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP SSLCertificateFile /etc/pki/web/ourdom-web.crt SSLCertificateKeyFile /etc/pki/web/private/ourdom-web.key SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0 <Location /> Order allow,deny Allow from All Deny from None </Location> </VirtualHost>
5. Configuration
Point your browser to
- Wiki name: OurDomain
- Contact e-mail: postmaster@ourdom.com
- Language: Russian
- Copyright/license: No license metadata
- Admin username: admin
- Password: pass123
- Object caching: No caching
- E-mail features (global): Enabled
- User-to-user e-mail: Disabled
- E-mail notification about changes: Enabled for changes to user discussion pages, and to pages on watchlists
- E-mail address authentication: Enabled
- Database type: MySQL
- Database host: localhost
- Database name: wikidb
- DB username: wikiuser
- DB password: pass123
- Superuser account: No
- Database table prefix: wiki_
- Storage Engine: InnoDB
- Database character set: Backwards-compatible UTF-8
Click Install MediaWiki and make sure that Installation successful.
Save your settings:
cd /var/www/wiki mv config/LocalSettings.php . chown root:root LocalSettings.php chmod 644 LocalSettings.php
Change settings in LocalSettings.php:
$wgLogo = '/MyWikiLogo.png'; $wgCapitalLinks = false; $wgEnableUploads = true; $wgGoToEdit = false; $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['createaccount'] = false;
6. Wiki Favicon
Download
or
or
or favicon.ico in /var/www/wiki and adjust settings in LocalSettings.php:
$wgLogo = '/GlobalClimate.png';
7. Short page names
Add these lines in the apache configuration of wiki:
RewriteEngine on RewriteRule ^/wiki/(.*) /index.php/$1 [L,PT]
In the MediaWiki configuration file add the line:
$wgArticlePath = "/wiki/$1";
Вложения
soho-sample-favicon.ico 894 байта
php5-rhel4-x86_64-rpms.tar.gz 5.88 МБ

Комментарии
Отправить комментарий