parallax background

More apps & fixes for amazon linux AMI ec2

Common commands for amazon linux AMI ec2
Common commands for amazon linux AMI ec2
07/01/2016
Best WordPress Plugins
Best WordPress Plugins
14/01/2016



Install FTP server

open ports 20-21 & 1024-1048 on AWS EC2 instance

sudo yum install vsftpd
sudo nano /etc/vsftpd/vsftpd.conf and disable anonymous: anonymous_enable=NO

add the following lines:

pasv_enable=YES
pasv_min_port=1024
pasv_max_port=1048
pasv_address=ServerIP

sudo /etc/init.d/vsftpd restart

Creating a new FTP user

sudo adduser user1
sudo passwd user1

sudo chkconfig --level 345 vsftpd on
sudo /etc/init.d/vsftpd restart

Resources: link



FIX uploaded file exceeds the upload_max_filesize

sudo nano /etc/php/7.0/apache2/php.ini
find upload_max_filesize = 2M and change to 200MB
sudo service apache2 restart

add this lines to .htaccess:

php_value upload_max_filesize 50M
php_value post_max_size 50M
php_value max_execution_time 500


php_value max_input_time 500

 

option #2


FIX PHP GD image library

sudo apt-get install php5-gd
restart

 



FIX ERROR 2006 (HY000): MySQL server has gone away

Adding this line into my.cnf max_allowed_packet=1000M
sudo nano /etc/my.cnf
sudo service mysqld stop
sudo service mysqld start

Resources: link

 



FIX BeTheme import

Fatal error: Class 'DOMDocument'

yum install php-xml

Resources: link

 



FIX Are You Sure You Want to Do This?” error

Add to wp-config.php this line: define('WP_MEMORY_LIMIT', '128M'); 

Upload the theme.zip file to the server and unzip it to  /var/www/html/wp-content/themes/

Resources: link

AND fix permissions on new theme folder:

sudo chmod 755 -R /var/www/html/wp-content/themes/brando

sudo find /var/www/html/wp-content/themes/brando/ -type f -exec chmod 644 {} +



FIX Are You Sure You Want to Do This? please try again” error

Add to wp-config.php this line: define('WP_MEMORY_LIMIT', '128M'); 

Upload the theme.zip file to the server and unzip it to  /var/www/html/wp-content/themes/

Resources: link

 



BackWPup Plugin:

FIX  “Job with ID 1” has started, but not responded for 10 seconds 

Add to wp-config.php this line: define( 'ALTERNATE_WP_CRON', true );

 

 



FIX  revslider/inc_php/framework/db.class.php and go to line no 29.

wp-content/plugins/revslider/inc_php/framework

Change line 29 of db.class.php from:
if(mysql_error()){

to:

if(mysqli_error()){

Reference: https://www.yanivp.net//premium.wpmudev.org/forums/topic/revolution-slider-network-activate-failed?utm_expid=3606929-94.SWGkQ9hyQQGxJNtgEiBgWA.0&utm_referrer=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-uncaught-error-call-to-undefined-function-mysql_error%2F

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *