Difference between revisions of "How to Set Up a MediaWiki 1.23 Server on CentOS 6"
From steamWiki
| Line 6: | Line 6: | ||
#Install Apache | #Install Apache | ||
##run ''sudo yum install httpd'' to install apache and its dependencies | ##run ''sudo yum install httpd'' to install apache and its dependencies | ||
| − | |||
##run ''sudo chkconfig httpd on'' to make sure apache starts on boot | ##run ''sudo chkconfig httpd on'' to make sure apache starts on boot | ||
| − | + | ##Add the following lines to your ''/etc/sysconfig/iptables'' file to allow web traffic | |
| + | ##*<nowiki>#</nowiki> Accept web traffic. | ||
| + | ##*-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT | ||
| + | ##restart to ensure the iptables are reloaded and check that apache is correctly started at boot | ||
| + | ##Visit the ip address of your server, preferably from a different computer, to ensure everything is working properly. You should see something like this. | ||
| + | ##*[[File:Apache_2_Test.jpg|600px]] | ||
==References== | ==References== | ||
*https://www.digitalocean.com/community/tutorials/how-to-install-mediawiki-on-centos-6-4 | *https://www.digitalocean.com/community/tutorials/how-to-install-mediawiki-on-centos-6-4 | ||
*https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-centos-6 | *https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-centos-6 | ||
Revision as of 19:45, 16 July 2014
UNDER CONSTRUCTION
Setting Up a Secure CentOS 6 Server
MediaWiki
- Install Apache
- run sudo yum install httpd to install apache and its dependencies
- run sudo chkconfig httpd on to make sure apache starts on boot
- Add the following lines to your /etc/sysconfig/iptables file to allow web traffic
- # Accept web traffic.
- -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
- restart to ensure the iptables are reloaded and check that apache is correctly started at boot
- Visit the ip address of your server, preferably from a different computer, to ensure everything is working properly. You should see something like this.