http://link2me.tistory.com/431

/includes/libs/objectcache/APCBagOStuff.php on line 51 Warning: require(): Unable to allocate memory for pool. in /includes/AutoLoader.php on line 90 Warning: require(): Unable to allocate memory for pool. in 

/includes/AutoLoader.php on line 90 Warning: require(): Unable to allocate memory for pool. in 

/includes/AutoLoader.php on line 90 Warning: require(): Unable to allocate memory for pool. in 

/includes/AutoLoader.php on line 90 Warning: require(): Unable to allocate memory for pool. in 

/includes/AutoLoader.php on line 90 Warning: apc_store(): Unable to allocate memory for pool. in /includes/libs/objectcache/APCBagOStuff.php on line 51



Unable to allocate memory for pool. in 에러 해결방법 중 하나입니다.


http://www.cyberciti.biz/faq/linux-unix-php-warning-unable-to-allocate-memory-for-pool/


# vi /etc/php.d/apc.ini


apc.shm_size=96M


apc.ttl=3600
apc.user_ttl=3600
apc.gc_ttl=3600

# service httpd restart



2015-06-18 09:44:49 12997 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11

2015-06-18 09:44:49 12997 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.

2015-06-18 09:44:49 12997 [Note] InnoDB: Unable to open the first data file

2015-06-18 09:44:49 7fb71a3e4740  InnoDB: Operating system error number 11 in a file operation.



위와 같은 에러가 나온다면.. find명령어로 ibdata1 파일 위치를 확인 한 후 아래와 같이..


# mv ibdata1 ibdata1.bak
# cp -a ibdata1.bak ibdata1


nano /etc/httpd/conf/httpd.conf 에 AllowOverride All 로 변경






참고 : http://ghkdxodn.tistory.com/39



다음 위치에  node.module 의      $variables['display_submitted'] = 값을 FALSE; 로 수정하면 됩니다.


위치 : /var/www/html/070uplus/contact/modules/node


  // Display post information only on certain node types.

  if (variable_get('node_submitted_' . $node->type, TRUE)) {

    $variables['display_submitted'] = FALSE;

    $variables['submitted'] = t('Submitted by !username on !datetime', array('!$

    $variables['user_picture'] = theme_get_setting('toggle_node_user_picture') $

  }

  else {                 

    $variables['display_submitted'] = FALSE;

    $variables['submitted'] = '';

    $variables['user_picture'] = '';





출처 : https://www.drupal.org/node/1193888


changing 1st occurence of
$variables['display_submitted'] = TRUE;
to
$variables['display_submitted'] = FALSE;
in
drupal7/modules/node/node.module
as shown below works for me.

  // Display post information only on certain node types.
  if (variable_get('node_submitted_' . $node->type, TRUE)) {
    //$variables['display_submitted'] = TRUE;
    $variables['display_submitted'] = FALSE;
    $variables['submitted'] = t('Submitted by !username on !datetime', array('!username' => $variables['name'], '!datetime' => $variables['date']));
    $variables['user_picture'] = theme_get_setting('toggle_node_user_picture') ? theme('user_picture', array('account' => $node)) : '';
  }
  else {
    $variables['display_submitted'] = FALSE;
    $variables['submitted'] = '';
    $variables['user_picture'] = '';
  }

or if leave as TRUE can change what is printed by altering the

$variables['submitted'] = t('Submitted by !username on !datetime', array('!username' => $variables['name'], '!datetime' => $variables['date']));

line.



ftp등으로 업로드한 파일에 권한 주기.
# chmod 777 -R ./wordpress


mysql database 생성 명령어 (wordpress 라는 db를 생성 하는 예)
# mysql -u root -p
Enter password: 
mysql> CREATE DATABASE wordpress DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
mysql> exit





(XAMPP) MySQL root 비밀번호 변경/초기화, MYSQL root 패스워드 복구

1. 각자의 방법으로 MySQL service를 stop합니다. (아래 이미지는 참고)

2. command 창을 open합니다. 그 후 mysql 이 설치된 디렉토리의 bin폴더로 이동합니다.

3. mysqld.exe --skip-grant 라고 입력 후 엔터

   본 command창은 그대로 두고 새로운 command창을 open합니다.

4. 2번처럼 mysql이 설치된 bin 폴더로 이동 후 mysql을 입렬 후 엔터

5. 아래와 같은 순서로 입력 후 엔터를 입력합니다.


 

mysql> use mysql; 

mysql> UPDATE user SET password=PASSWORD('123456789') where user='root'; 

mysql> FLUSH PRIVILEGES;







mysql> quit

6. 이렇게 하면 root의 암호는 123456789로 변경 됩니다.




1. mod download


mod_bw 다운로드 (윈도우 Apache 2.2.17에서 작동 되었습니다.)

위 파일을 다운로드한 후 Apache Module폴더에 복사 합니다. mod_bw.dll의 파일명과 확장자를 가집니다. 검색엔진으로 찾아보면 mod_bw.so파일의 확장자를 가지는 버전도 있습니다. 둘의 차이를 잘모르겠습니다. 이 버번은 구굴을 검색해서 찾은 최신의 버전이였습니다.

자세한 사항은 아래 링크 참조.

 http://ivn.cl/2010/01/06/downloads-for-bandwidth-mod/
 

  • mod_bw v0.92 – Source Code – [Download][Readme]
  • mod_bw v0.9 – Source Code – [Download][Readme]
  • mod_bw v0.91 – Windows Release for Apache 2.2.14 – [Download]
  • mod_bw SLN – Visual Studio 2008 Solution – [Download][Readme]

    Purpose :

  • Restrict the number of simultaneous connections per vhost/dir
  • Limit the bandwidth for files on vhost/dir
  • Get some basic stats
  • Changelog for v0.92 :

  • 0.92 Fixes the ap_get_server_banner issue.
  • 0.91 introduces fixes mainly for users running on Windows. See Readme.
  • Fixed an “invisible” memory leak, and a signed/unsigned issue affecting MinBandWidth
  • Code Cleanup for Visual Studio
  • Status page for running vhost!
  • Platforms :

  • Linux/x86
  • FreeBSD/x86 v5.2
  • MacOS X/ppc x86
  • Solaris 8/sparc
  • Microsoft Windows


  • 2. mod_setting

    예제1)
    50MB 이상 사이즈파일에 대해서 1024KB(1MBps)의 대역폭으로 제한하려고 한다면 아래를
    httpd.conf에 추가
     
    #대역폭 제한(mod_bw)
    LoadModule bw_module modules/mod_bw.dll
    <IfModule bw_module>
    BandWidthModule On
    ForceBandWidthModule On
    LargeFileLimit * 51200  1024000
    </IfModule>
     
    LargeFileLimit(큰파일제한) *(모든파일) 20480(크기) 1024000(제한속도)


    예제2)

     
    LoadModule bw_module modules/mod_bw.dll

    <IfModule bw_module>
     BandwidthModule On
     ForceBandWidthModule On
     Bandwidth all 819200
     MinBandWidth all 51200
     LargeFileLimit * 500 4096
     MaxConnection all 30
    </IfModule>

    아래 3가지 옵션을 추가로 설정 할 수 있음.
    Bandwidth all 819200
    MinBandWidth all
    51200
    MaxConnection all 30

    모든 다운로드되는 파일은 51kb/sec 의 속도로 제한이 되었음.



    <크기 계산 참고>
    52428800바이트(B)
    51200킬로바이트(KB)
    50메가바이트(MB)

    <속도 계산 참고>
    1024000바이트(B)
    1000킬로바이트(KB)
    0.976563메가바이트(MB)


    참고(출처) 사이트 :
    http://suminstory.tistory.com/81
    http://jnstory.net/6
    http://wonsama.tistory.com/150
    http://ivn.cl/2010/01/06/downloads-for-bandwidth-mod/

    + Recent posts