First install Composer and PHP for the jailed user. This article has the steps composer require aws/aws-sdk-php — as the jailed user There might be an error – fopen(/usr/share/php/Composer/Autoload/../../../doc/composer/copyright): failed to open stream: No such file or directory You can copy the file using the root login mkdir -p /var/www/clients/client1/web1/usr/share/doc/composer cp /usr/share/doc/composer/copyright /var/www/clients/client1/web1/usr/share/doc/composer/ chown web1:client1… Continue reading Installing Amazon SDK on ISPConfig systems
Tag: php
Web 3D experiments with ThreeJS
Here is an experiment where a fixed background (or texture) has been used behind an interact-able 3D model. The model was created using Blender. From Blender (or any other 3D software) export the model as FBX file. The code formatting is getting horribly misaligned when pasted here. So here is the whole folder. Run the… Continue reading Web 3D experiments with ThreeJS
PHP code for Amazon SNS Auto Subscription Confirmation (HTTPS)
Amazon Simple Notification Service or SNS is a messaging service which be used to send notifications by SMS, Email, Push notification or to a URL endpoint. For a quick on setting up Amazon SNS see this article Amazon SNS setup for HTTPS and Email Code for auto confirmation of subscriptions <?php $json_write_to_text = file_get_contents(“php://input”); //read… Continue reading PHP code for Amazon SNS Auto Subscription Confirmation (HTTPS)
Amazon SNS setup for HTTPS and Email
Login to AWS Console Goto Simple Notification Service Create a Topic Add a Subscription – the easy and safe way to do this is by clicking the ARN of the Topic (in the topic listing page ) and going to the Topic details page. Choose your subscription protocol (in simpler words in which way you… Continue reading Amazon SNS setup for HTTPS and Email
ISPConfig PHP-FPM Session Problem
The problem I was facing – session variables not getting passed from page to page. On page1.php I set some session variables and then on going to page2.php all I was getting was Array() ! The problem drove me crazy as everything settings and permissions were fine. I have ISPConfig 3 on Ubuntu 18.04 and… Continue reading ISPConfig PHP-FPM Session Problem