Software installation
Contents
Mediawiki
To install MediaWiki on CentOS, you can mainly follow the step from their online manual.
However, there are a few steps need to be modified, or be cautioned:
SELinux
SELinux enforcement could cause a few problems when uploading files to the MediaWiki server. Follow this introduction before installing MediaWiki on the server. This is to prevent the file uploading issues caused by the SELinux
Upgrade php from 5.x to 7.0
The current MediaWiki require php 7.0, which is not included in CentOS's standard package Follow this introduction to update the php to version 7.x before
Firewall configuration
You also want to open ports in your firewall using
system-config-firewall-tui
Enable both the https and http services (follow the instructions of the configuration interface).
Add details (install system-config-firewall-tui and enable services)
yum install system-config-firewall-tui
firewall-cmd --zone=public --permanent --add-service=http
firewall-cmd --zone=public --permanent --add-service=httpsAdd <syntaxhiglight lang='bash>--permanent</syntaxhighlight> to make sure these rule will still apply after reboot.
file upload issue
Sometimes the file upload function won't work even if you enable the upload function in the Mediawiki. One of the likely issue is the SELinux security issue, and the other potential issue is the php.
[SPOTL]
1. 在Ubuntu中安裝gfortran的元件。安裝gfortran時他會同時安裝gcc。
原本以為一定要用g77作編譯,後來發現gfortran也可以,只是要改編譯用的flag
2. 下載SPOTL並在Ubuntu中解壓縮到任一資料夾。
3. 修改../SPOTL/src/MAKEFILE
這裡要把編譯器從g77改成gfortran,同時修改flag,刪除大多數的flag,只留下-o2這一項。
4. 修改../SPOTL/spotl.install
把Tobinary改成 sudo ./Tobinary。不然Tobinary無法正常執行。
5. 如果gzcat找不到的話可以
sudo ln /bin/zcat /bin/gzcat6. 執行
./spotl.install第一次可能會因為gfortran overflow而中突發生錯誤,如果發生,再重新執行一遍。
7. 編譯完成後到 spotl/working下執行
sudo chmod 755 *修改權限,不然無法執行script。
8. 如此應該大功告成..可以跑SPOTL了….