php(26)
-
apache의 mod_expire를 통한 php 캐쉬 설정
apache의 mod_expire를 통한 PHP 캐쉬 설정 httpd.conf 파일에 아래와 같이 추가해준다. #expire를 통한 캐쉬 ExpiresActive On ExpiresDefault A0 Header set cache-control: "no-store" Header append Cache-Control "public" ExpiresByType image/gif A2592000 ExpiresByType image/jpg A2592000 ExpiresByType image/png A2592000
2014.02.21 -
mongoDB 설치와 php 연동
1. mongoDB설치 apt-get install mongodb php5-mongo 2. php에 so 설정 추가 vi /etc/php5/conf.d/mongo.ini extension=mongo.so 추가
2013.09.03 -
php에서 memcache 사용하기
1. memcache 설치 apt-get install memcache php.iniextension=memcache.so 추가 2. php 에서 memcache 연결 $mem = new memcache;$mem->connect('localhost',11211); 3. 캐쉬 등록 $mem->set('key',$value); 4. 캐쉬 사용 $mem->get('key'); 참조:http://www.solanara.net/solanara/memcached
2013.09.02 -
Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
* Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName ... waiting .apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName 라고 나올 경우 아파치에서 기본값으로 지정된 서버 네임이 없어서 발생한다 아파치 설정 파일을 연 후 vi /etc/apache2/apache2.conf 서버네임을 등록해준다. ServerName localhost
2013.06.20 -
ubuntu 에서 nginx + php-cgi + mysql 설치하기
아래의 소스는 ubuntu 12.04 64bit에서 작성했습니다. 관련 프로그램 설치 apt-get install nginx php5-cli php5-fpm php5-cgi php5-mysql mysql-server mysql-client php5-gd php5-mcrypt spawn-fcgi sysv-rc-conf 에서 mysql nginx를 2345 레벨에서 동작하도록 등록 없다면 apt-get install sysv-rc-conf 로 설치 nginx 설정하기 cd /etc/nginx/sites-available/ vi default index 리스트에 index.php 추가 php 관련 옵션 부분 아래와 같이 주석 해제 location ~ \.php$ { fastcgi_split_path_info ..
2013.06.18 -
yum 을 이용해서 mysql 설치시 phpmyadmin 오류
The mysqli extension is missing. Please check your PHP configuration. 라고 나온다면 yum install -y php-mysql mysql 데몬이 꺼져있는지도 확인
2013.06.06