Im using a vagrant build vm and trying to install mod_php.
yum install mod_php
.....
Error: php70u-common conflicts with php-common-5.6.17-1.el6.remi.x86_64
Error: httpd24u conflicts with httpd-2.2.15-47.el6.centos.1.x86_64
Error: httpd24u-tools conflicts with httpd-tools-2.2.15-47.el6.centos.1.x86_64
I guess hes trying to download the module for php 7?
How can i install it for php 5.6?
you're installing the wrong version of mod_php. try: yum install mod_php70u
Related
When I execute pkg install py37-certbot on my FreeBSD 12.2 NAS, trying to use it for Apache, it get the Message:
"pkg: No packages available to install matching'py37-certbot' have been found in the repositories"
Have do I have to do to get Certbot working?
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>
I have RedHat Enterprise Linux Server 7, and I downloaded the linux kernel version 4.12.10 which I am trying to compile but when I execute the following command:
make modules
I get the following error:
scripts/sign-file.c:25:30: fatal error: openssl/opensslv.h: No such file or directory
Does anyone have an idea to fix this please ?
To fix this problem, you have to install OpenSSL development package, which is available in standard repositories of all modern Linux distributions.
To install OpenSSL development package on Debian, Ubuntu or their derivatives:
$ sudo apt-get install libssl-dev
To install OpenSSL development package on Fedora, CentOS or RHEL:
$ sudo yum install openssl-devel
Edit :
As #isapir has pointed out, for Fedora version>=22 use the DNF package manager :
dnf install openssl-devel
For Alpine Linux:
apk add openssl-dev
On CYGwin, you can install this as a typical package in the first screen. Look for
libssl-devel
for resolving this issue install:
# yum install openssl openssl-devel
and then try again to do make bzImage.
When I recently installed PHP56 via Homebrew, Apache would no longer start, with this error in the logs:
Cannot load /usr/local/opt/php56/libexec/apache2/libphp5.so into server: dlopen(/usr/local/opt/php56/libexec/apache2/libphp5.so, 10): image not found
Note: I'm running Apache 2.4 on Mac El-Capitan.
How can I resolve this error and get Apache running again?
I've seen this before. If you brew options php56, it says:
With the release of macOS Sierra the Apache module is now not built by default. If you want to build it on your system
you have to install php with the --with-apache option. See brew options php56 for more details.
Thus, try uninstalling (brew uninstall php56) then reinstalling php56 with the flag --with-apache for Apache v2.4.x (--with-apache22 for Apache 2.2). Generally, you can check your Apache version by typing in command line: httpd -v.
My version is 2.4.18, so I would brew install php56 --with-apache, which creates the proper file path /usr/local/opt/php56/libexec/apache2/libphp5.so.
Now, it is properly compiled with Apache Handler module.
IMPORTANT: installing php56 with this option appears to also install httpd24. From a brew program stance, this makes sense. However, this may break your server set up. If you don't want to use brew's Apache install, do a brew unlink httpd24 after this.
To see additional brew build options, try brew options php56.
I install ssh2 on my server
but when i check the result is :
PHP Warning: PHP Startup: ssh2: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20090626
These options need to match in Unknown on line 0
I uses centos 6 and directadmin
libssh2 is notoriously difficult to install. Personally, I would recommend you try phpseclib, a pure PHP SSH2 implementation.
You could try to install ssh2 through yum, enabling remi.repo if required:
$ sudo yum install php-pecl-ssh2
It will install php-pecl-ssh2 package of the same version as your PHP is.
But it also possible to install it through pecl if you have any reasons to do it:
# yum install php-devel
# pecl channel-update pecl.php.net
# pecl install ssh2
Tested for Oracle Linux 7.