This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:centos6 | |
MAINTAINER [email protected] | |
# Apache | |
RUN yum install -y httpd httpd-devel | |
RUN chkconfig httpd on | |
RUN apachectl start | |
# Dependencies | |
RUN yum groupinstall -y "Development tools" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
make default python version to python3.4 | |
We have given python3.4 a higher priority 2 which means, | |
if no python alternative is selected the python3.4 will be used as default. | |
#alternatives --install /usr/bin/python python /usr/bin/python3.4 2 | |
#alternatives --install /usr/bin/python python /usr/bin/python2.7 1 | |
$sudo pip3.4 install django | |
$sudo dnf install python3-mod_wsgi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Steps to Install Oracle Instant client and cx_Oracle on Fedora/CentOS/RHEL | |
1) Download Instant client from oracle website | |
http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html | |
e.g. for Linux 86_64 | |
http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html | |
Download | |
1) oracle-instantclient11.2-basic-11.2.0.3.0-1.x86_64.rpm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ALLOW USER BY IP | |
#<Limit GET POST> | |
# order deny,allow | |
# deny from all | |
# allow from 86.67.58.216 | |
# allow from 117.222.4.100 | |
#</Limit> | |
# BAN USER BY IP | |
<Limit GET POST> |