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
1. Create a .htaccess file in your application root directory. | |
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteCond $1 !^(index\.php|public|\.txt) | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)$ index.php?$1 | |
</IfModule> | |
<IfModule !mod_rewrite.c> |
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
# By default aws does not allow remote connection to database | |
# So we will need to enable it to connect with cyfe | |
# **Step 1: Create new database user** | |
# For two reasons | |
# i. We don't want to give root access to any application | |
# ii. By default root has access from localhost only | |
# Don't define host for this user(wildcard) | |
# Step 2: Allow access from remote server |
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
#!/usr/bin/php -q | |
<?php | |
date_default_timezone_set('UCT'); | |
$dryrun = FALSE; | |
$volumes = array(''); | |
$api_key = ''; | |
$api_secret = ''; | |
$ec2_region = 'us-east-1'; | |
require 'aws/aws-autoloader.php'; |
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
/* 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*/ | |
[mysqld] |