ssh -i pemfile.pem ubuntu@ scp /Downloads/ Desktop/pemfile.pem ubuntu@ scp -i pemfile.pem /Users/siddharthshukla/Downloads/elements-engitech-it-solutions-services-wordpress-theme-L7HQWKA-7zffMgXj-04-20/ ubuntu@ unzip

I had the same issue with ec2 for php mail. install Sendmail by command: sudo apt-get install sendmail check the service whether it’s started or not by executing following command sudo service sendmail status Note: Output of the above command should be something – ‘Active: active (running)’ start the service if it is not running by the following command sudo service sendmail start After the service is started, send a test mail using the following…

Use this 4 step method to remove the redirect loop and mixed content problems when using ssl in WordPress. 1) Replace ‘http://’ with ‘//’ in database – This create all the relative url’s for images and other assets 2) in wp-config, define generic wp_home and wp_siteurl variables. define(‘WP_HOME’,’//’. $_SERVER[’SERVER_NAME’]); define(‘WP_SITEURL’,’//’. $_SERVER[’SERVER_NAME’]); 3) If you are using a load balancer, use ‘HTTP_X_FORWARDED_PROTO’ server variable to figure out the protocol used. To do this, add this line…

sudo nano /etc/apache2/sites-available/000-default.conf <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/website_name_laravel/public ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost> Folder Permission chmod -R 777 storage sudo /etc/init.d/apache2 restart sudo service apache2 restart Remove index.php from url sudo nano /etc/apache2/apache2.conf Change permission folder <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> sudo a2enmod rewrite sudo systemctl restart apache2