Ubuntu/Step by step:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Jinzd留言 | 贡献
Jinzd留言 | 贡献
第111行: 第111行:
sudo chmod -R 777 images
sudo chmod -R 777 images


// Configuration, access http://localhost/mediawiki and download LocalSettings.php and copy it to /var/lib/mediawiki
// Configuration, access http://localhost/mediawiki and download  
// LocalSettings.php and copy it to /var/lib/mediawiki


# for version 1.27.1 please execute below:
# for version 1.27.1 please execute below:
第117行: 第118行:
sudo apt-get install php-mbstring
sudo apt-get install php-mbstring
</pre>
</pre>
=End=
=End=

2016年10月26日 (三) 23:12的版本

Update & Upgrade

# Make sure your list of packages is update to date, and system upgrade 
sudo apt-get update

sudo apt-get upgrade

sudo apt-get dist-upgrade

sudo apt-get autoremove

Web Server (Apache2)

Please see Wiki Ubuntu Web Server and Help Web Server.

# Installation

sudo apt-get install apache2

# Create a new web site JUniverse
# Customer can create a directory named JUnivers, like ~/JUniverse.

cd /var/www/html

# Create link for JUniverse

sudo ln -s ~/JUniverse JUniverse

cd /etc/apache2/sites-available

sudo cp 000-default.conf juniverse.conf

sudo nano juniverse.conf

# updating it as below

<VirtualHost *:81>

DocumentRoot /var/www/JUniverse

# save and exit

# restart

sudo a2ensite juniverse.conf

sudo service apache2 restart

MySQL

sudo apt-get install mysql-server

PHP

sudo apt-get install php php-cli php-cgi php-xml php-xdebug 
libapache2-mod-php php-mysql php-mbstring

Mediawiki

Extension:Labeled Section Transclusion.

# Download from below url:

cd ~/Downloads

wget https://releases.wikimedia.org/mediawiki/1.27/mediawiki-1.27.1.tar.gz

# After download finished:

tar -xvzf ./mediawiki-*.tar.gz

sudo mv mediawiki-*/* /var/lib/mediawiki

# Config PHP

cd /etc/php/7.0/apache2

sudo nano php.ini

# update php.ini following things

upload_max_filesize = 20M

memory_limit = 128M

# save php.ini and exit

# restart apache2

sudo service apache2 restart

# mediawiki configuration

cd /var/www/html

sudo ln -s /var/lib/mediawiki mediawiki

# give the rights for upload operation

cd /var/lib/mediawiki

sudo chmod -R 777 images

// Configuration, access http://localhost/mediawiki and download 
// LocalSettings.php and copy it to /var/lib/mediawiki

# for version 1.27.1 please execute below:

sudo apt-get install php-mbstring

End