How to install specific apache version? - apache

I developed one module for apache 2.4 server, I want to test my module with different apache versions.
I installed apache2.4 using following command.
apt-get -y install apache2
Can I install previous apache versions using apt-get?

You can install the package name with version number
apt-get install <packagename>=<complete version name>
The below command will show the list of versions
apt-cache showpkg <pachagename>

Related

lampp php5.6 install redis via pecl

I need to install redis on my lampp(php5.6.40) via pecl in mint 20
cd /opt/lampp/bin
sudo ./pecl install redis
but I got an error :
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
pecl/redis requires PHP (version >= 7.0.0), installed version is 5.6.40
can you help my to solve this issu, I need install redis on php5.6 because my project required php5.6 .
phpredis 5.x.x are drop PHP5 support
https://pecl.php.net/package-changelog.php?package=redis
try old version install.
pecl install redis-4.3.0

How to update the Jmeter latest version in ubuntu 16.04?

I am currently using Ubuntu 16.04 LTS and Java 1.8.0_171
I used bellow commands to install the Jmeter.
sudo apt-get update
sudo apt-get install jmeter
But it installed 2.11 version.
You can download directly latest JMeter version from
http://jmeter.apache.org/download_jmeter.cgi or
http://ftp.ps.pl/pub/apache//jmeter/binaries/
and then follow installation guide:
unzip the zip/tar file into the directory where you want JMeter to be installed

how install pdo-mysql in centos7

I install laravel 5 and then install packages neede.
I install php-pdo and some other but now i cant install pdo-mysql and laravel return error.
PDOException in PDOConnection.php line 47: could not find driver
I am use Centos 7 and PHP 5-6-29.
Check which package is installed (which provider) and provides the stack, then use the same namespace.
Webtatic uses php56w-*
IUS uses php56u-*
remi-safe (SCL packages) use php56-php-*
remi-php56 simply use php-*
other providers can use something else
As you need pdo_mysql driver, simply
yum install <namespace>-pdo_mysql
(using the ext name, yum will find the correct package name which provides this ext).
Also check you don't have any "exclude" lines in the yum configuration (such as the ones provided in altered cpanel distributions)
Try using this
yum install php-mysql
systemctl restart httpd
You can search package like
yum search php
Pick the ones you need and install them like this:
yum -y install php-mysqlnd php-pdo
In the next step I will install some common PHP modules that are required by CMS Systems like Wordpress, Joomla, and Drupal:
yum -y install php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-soap curl curl-devel
https://webtatic.com/packages/php56/
I believe the driver is php56w-mysql so yum install php56w-mysql should do the job.

Launching latest version of MonoDevelop on Ubuntu 14.04 LTS

I installed MonoDevelop using following commands:
sudo add-apt-repository ppa:ermshiperete/monodevelop
sudo apt-get update
sudo apt-get install monodevelop-current
because I wanted latest version.
sudo apt-get install monodevelop
results in installing 4.x version which I wasn't interested in.
Now I can launch application via terminal using:
/opt/monodevelop/bin/monodevelop-launcher.sh
but "monodevelop" command results in following information:
The program 'monodevelop' is currently not installed. You can install it by typing:
sudo apt-get install monodevelop
and creating monodevelop.desktop file doesn't result in having program icon in launcher. Any ideas what I should do to be able to run MonoDevelop using "monodevelop" command?
I installed MonoDevelop using following commands:
sudo add-apt-repository ppa:ermshiperete/monodevelop
Do you realize that when adding a repository, you're trusting this user (what he decides to package in his repository), and that the version you get is the one that he himself alone decided to package?
I recommend you to add the repository of the official developers/packagers instead. Follow the instructions here (but uninstall any old packages first).

Amazon web services and ubuntu 10.04 ec2 instance

I have created ubuntu 10.04 ec2 image and now I need to install tomcat apache and jdk6 on my instance but whenever I use the command sudo apt-get install sun-java6-jdk or sudo apt-get install tomcat6 admin or sudo apt-get install ec2-api-tools
Package ec2-api-tools is not available, but is referred to by another package.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ec2-api-tools is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package ec2-api-tools has no installation candidate
Another option is to add their official repository to apt - this will provide you up to date AWS tools:
sudo apt-add-repository ppa:awstools-dev/awstools
sudo apt-get update
sudo apt-get install ec2-api-tools -y
This is extremely useful for farther releases and and for up to date official bug fixes etc. just by running the usual
sudo apt-get update
sudo apt-get upgrade -y
Ubuntu doesn't have the Sun JDKs available by default so in /etc/apt/sources.list uncomment:
deb http://archive.canonical.com/ubuntu maverick partner
deb-src http://archive.canonical.com/ubuntu maverick partner
and then:
sudo apt-get update
sudo apt-get install sun-java6-jdk
ec2-api-tools requires the multiverse lines in sources.list to be uncommented first (remember to apt-get update also).
I am a bit confused, if you just want to install Java and Tomcat, why are you also trying to install the ec2 tools?
In any case, I also want to mention the free BitNami Cloud Tools installer (disclaimer: I am one of the developers). It includes the JDK and all EC2-related tools. We keep it fairly up-to-date and can run as a regular user.