Last active
September 14, 2015 09:12
-
-
Save kaerer/104e549f892af6657dc9 to your computer and use it in GitHub Desktop.
Centos 6 first steps - yii2
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
#centos 6~ | |
sudo su | |
#- Repos | |
yum install epel-release | |
mkdir /root/repos | |
cd /root/repos | |
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
sudo rpm -Uvh epel-release-6*.rpm | |
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm | |
sudo rpm -Uvh remi-release-6*.rpm | |
#yum repolist | |
#yum repolist disabled | |
#- Genel | |
yum install gcc gcc-c++ make autoconf automake mlocate make libtool sysstat | |
yum install mc git-all cvs nano vi wget unzip zip | |
#- Php | |
yum install php55w php55w-bcmath php55w-cli php55w-common php55w-devel php55w-gd php55w-mbstring php55w-mcrypt php55w-mysql php55w-pdo php55w-pear php55w-pecl-apcu php55w-pecl-memcache php55w-soap php55w-xml php55w-xmlrpc php55w-intl | |
#- Fix old icu | |
yum remove php55w-intl | |
# http://site.icu-project.org/download - src versiyonunun adresini al kullan aşağıda | |
mkdir /root/src | |
cd /root/src | |
wget http://download.icu-project.org/files/icu4c/****** | |
tar zxf icu4c-*** | |
cd icu/source | |
./configure --prefix=/opt/icu && make && make install | |
pecl install intl | |
echo "extension=intl.so" > /etc/php.d/intl.ini | |
#- Apache | |
yum install http httpd-tools mod_ssl httpd-devel mod_ssl mod_rewrite | |
#- Mysql | |
yum install mysql-server mysql php55w-mysql | |
#- Composer | |
curl -sS https://getcomposer.org/installer | php | |
mv composer.phar /usr/local/bin/composer | |
#- composer yii requirement | |
composer global require "fxp/composer-asset-plugin:~1.0.3" | |
#- Bölge ayarı | |
cd /etc | |
mv localtime localtime.org | |
ln -sf /usr/share/zoneinfo/Turkey localtime |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment