Coder Writes

AWS EC2 automatic volume daily/weekly/monthly snapshots

Connecting Cyfe with AWS EC2 database

Step 1: Create new database user

Step 2: Allow access from remote server

Step 3: Restart mysql

Removing index.php from codeigniter + LAMP

1. Create a .htaccess file in your application root directory.

2. Change configurations.

3. Enable mod_rewrite module on server

4. Restart apache

5. To use mod_rewrite from within .htaccess files edit the default VirtualHost.

6. Search for “DocumentRoot /var/www/html” and add the following lines directly below.

7. Restart apache

Fix: Auto-stopping of mysql service on AWS micro instance

Error reason:

InnoDB: Fatal error: cannot allocate memory for the buffer pool

Solution: Change below value in my.cnf file

File Location:

CentOS: /etc/my.cnf

Ubuntu: /etc/mysql/my.cnf


innodb_buffer_pool_size = 10M