lang/php

mcrypt

C/H 2014. 8. 30. 08:30



nginx php-fpm : Configure php5-mcrypt with php5-fpm (Ubuntu 14.04)

#php5-mcrypt should be installed already (it comes bundled with php5-fpm). Just for safety,
sudo apt-get install php5-mcrypt

#Create symlink to mods-avaliable,
sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available/mcrypt.ini

#Enable it.
sudo php5enmod mcrypt

#Restart php-fpm,
sudo service php5-fpm restart

#Restart nginx,
sudo service nginx restart


apache2 : mCrypt not prese
nt after Ubuntu upgrade to 13.10
# /ect/php5/mods-availables/mcrypt.ini 를 확인한다.
sudo apt-get install mcrypt php5-mcrypt

# 20-mcrypt.ini -> ../../mods-available/mcrypt.ini 확인
sudo php5enmod mcrypt

# 재시작
sudo service apache2 restart
반응형

'lang > php' 카테고리의 다른 글

PHP 비기너 동영상 튜토리얼  (0) 2014.10.29
CodeIgniter Lib  (0) 2014.09.15
Ubuntu 14.04 LTS PHP 5.3.29 소스설치  (0) 2014.08.23
PHP Cheat Sheet  (0) 2014.07.31
PHP RESTful Micro Frameworks  (0) 2014.07.20