How do you run container commands on ElasticBeanstalk / Amazon Linux 2? - amazon-elastic-beanstalk

I currently have a Laravel application running on ElasticBeanstalk with the following file running a deployment command for me...
.ebextensions/deployment-commands.config
container_commands:
01-run-migrations:
command: "php artisan migrate --force"
cwd: "/var/app/ondeck"
leader_only: true
I'm trying to update my PHP version to 7.4 so I need to upgrade to an Amazon Linux 2 server. This command doesn't seem to work on the new Amazon Linux 2 setup so I'm wondering if it will pickup ebextensions anymore and if so do I need to change the cwd? Basically what do I need to do to get this deployment command to work?

I'm trying to update my PHP version to 7.4 so I need to upgrade to an Amazon Linux 2 server.
Not sure what do you mean here, but upgrading from Amazon Linux 1 (AL1) to AL2 may require many more changes then just upgrading php:
Migrating your Elastic Beanstalk Linux application to Amazon Linux 2
container_commands run in staging folder /var/app/staging. But you are trying to use different folder /var/app/ondeck which may be why you don't see the commands effects.

Related

Multiple xampp installations for multiple php versions

I have configured two Xampp servers in different drives. I have Xampp for php 7.4 and php 8 in C drive and D drive respectively. Previously, before installation of the xampp in the D drive, I have configured FastCGI on xampp server, the one in C drive, for running project of php 5.6 version. Hence I used to use php 5.6 and 7.4 both on C drive xampp server.
The fact is, the apache and mysql services are registered in WINDOWS 10 registry, where the ImagePath for both services is set at
\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\
Whenever we START the apache and mysql services from Xampp server it checks for the respective ImagePath in the Windows registry to run both the services.
The issue is, After configuration of second xampp in D drive, I have to manually change the ImagePath="C:\xampp\apache\bin\httpd.exe" -k runservice of Apache2.4 and ImagePath=C:\xampp\mysql\bin\mysqld.exe --defaults-file=c:\xampp\mysql\bin\my.ini mysql of mysql services which is getting a bit hectic as I have to run multiple projects of different PHP versions at the same time.
I need to know any way around for this if anyone has !
The setup i use for my preference and work is,
Xampp (latest) 8.2
Laragon(maintains multiple php versions)
On xampp i use database and on laragon i use php.
In this manner i get to run single database against any php version.
2nd i get multiple version of php on just a single click. Yes ot takes time to make this environment first but it's good. I have on my system 5.6, 7.0,7.2,7.3,7.4,8.0,8.2

How to configure Bitnami Redmine with the existing apache and mysql in my server?

I am having a Digital Ocean Droplet of Ubuntu 16.04 with Apache and mysql server configured for my wordpress sites . So now i am currently trying to install Bitnami Redmine into my server . While istalling the bitnami redmine , the stack again install apache and mysql server . So Is there any way to use the existing apache and mysql server for the Bitnami redmine .
Please let me know if there is any step by step documentation to proceed the further . Since i am newbie for ubuntu and redmine
The main advantage of using the Bitnami Redmine Stack is that you don't have to worry about configuring any other service/component that Redmine requires such as Apache, MySQL, Ruby, Git, Subversion, etc.
Therefore I recommend you to use the servers included in the Stack since they are up-to-date and already configured.
Redmine is configured to use Phusion Passenger on the Bitnami Stack. If you want to imitate the configuration that Bitnami uses to use your own Apache Server, you need to configure it to use Passenger.
https://www.phusionpassenger.com/library/deploy/apache/deploy/ruby/
Regarding the Database Configuration. You need to edit the file /installdir/apps/redmine/htdocs/config/database.yml.
Please note that you have to change "installdir" with the path to the directory where you installed the Redmine Stack.

Add mod_mam for ejabberd in ubuntu 12.04

I have successfully configured ejabberd 2.1.10 in ubuntu 12.04 environment with mysql storage. Now I need to integrate mod_mam module for my chat server. I have downloaded the mysql modules from the url https://svn.process-one.net/ejabberd-modules/ and configured using the steps mentioned here https://www.ejabberd.im/ejabberd-modules. But I couldn't find the mod_mam library in that repository.
At the same time, I installed ejabberd 16.02 in my windows 7 machine and found that the mod_mam is available by default. Please provide a solution for this.
Install latest version of ejabberd server put the following lines in module section of ejabberd.yml-
mod_mam:
db_type: odbc ##mnesia|odbc
default: always ##always|never|roster
request_activates_archiving: true ##true|false
assume_mam_usage: on_request ##if_enabled|on_request|never
cache_size: 1000
cache_life_time: 3600
for detail configration check here

Is a MongoDB database installed on a server?

I just started using MongoDB and Node.js with a MEAN Stack (MongoDB, Express, AngularJS, Node.js) on my local machine and at first I assumed that MongoDB was installed on the Node.js server kind of like MySQL is installed on Apache when you install the LAMP or WAMP stack.
But now I'm not so sure any more :)
How does it work? Where is MongoDB installed? Can I use it without Node.js? Can I use MySQL without a server?
Both MongoDB and MySQL are installed standalone on the host (in your case localhost).
MySQL is not installed on Apache. It's just the PHP interface to MySQL which requires Apache to serve it. You can use the MySQL command line (issue the mysql command in your shell console) without having Apache or PHP installed. The LAMP and WAMP stacks ship with the PHP MySQL interface configured.
MEAN is a similar stack, consisting of each individual component available independently as well as knit together seamlessly as per requirement. You can query a MongoDB hosted on a different machine from the machine you have the MEAN stack on too.

Need Help Installing MySQL

I have downloaded and stalled the MySQL server 5.5 version via .DMG on my Mac.
But I am confused as to what to do next. I have the preference settings bundle and it says that the MySQL server is running. But do I need to download a client separately? I'm trying to access MySQl in terminal to create an account or login but nothing is working.
You need to use the full path to mysql (/var/lib/mysql), or add the mysql directory to your $PATH var.
If you're trying to install LAMP environment on your mac, try a complete solution, such as MAMP (http://www.mamp.info/en/index.html) or XAMP.
These tools are bundled with phpmyadmin, which makes mysql administration easy