How to download mod_ssl.so for apache DSO? - apache

I want to load mod_ssl on centos7 apache 2.2.27. But I can't find where to download it...
I don't want to recompile or upgrade an apache. I just want to add mod_ssl.so in modules directory.
I tried to
yum install mod_ssl
but it only gives a mod_ssl.so only for apache 2.4.x emitting an error like this(https://github.com/bombadil/mod_proxy_msrpc/issues/9 ).
What can I do for this? Thank you in advance.

Related

Cannot find the pachkage apache2-mpm-worker

getting error on installing mpm-worker in ubuntu apache2.
How to fix this problem?
There is no apache2-mpm-worker package because the mpm_worker module is included by default when you install Apache on Ubuntu's newer versions. It is contained in the apache2-bin package that is a dependency of apache2:
sudo a2dismod prefork event php* && sudo a2enmod worker
If you see any errors like cannot enable module (similar), then let me know with the whole output. Make sure you enable php-fpm when you use prefork, if you wish to use PHP.

Homebrew PHP Install Breaks Apache 2.4

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.

mod_rewrite.so is missing under /etc/httpd/modules

I was trying to use mod_rewrite but without success.
I searched online and found some articled but didn't solve my problem.
I finally realised that this article must solve my problem http://www.ewhathow.com/2013/09/how-to-enable-mod_rewrite-on-apache/
but the file mod_rewrite.so is missing under my system.
I have to note that i am using Centos 6 64BIT
.Is there any way to solve this ?
I tried my self to install xampp on an other computer go to modules folder and copy the mod_rewrite.so file and copy it on my server .After that i added
this
LoadModule rewrite_module modules/mod_rewrite.so
on /etc/httpd/conf/httpd.conf
But after restarting apache…apache couldn't start…so i deleted again the line and apache restarted successfully.
I want to make mod_rewrite works on my server.Any help ?
Thanks in advance
I am using Apache on CentOS 6.5 installed from the installation CD and it does have /etc/httpd/modules/mod_rewrite.so file. If this file is missing, I think you would be compiling your own Apache. In this case, you need to modify the SPEC file for apache and add --enable-rewrite to the configure line in the %setup section:
SPEC file %setup section:
%setup
./configure --prefix=%apache_dir --enable-rewrite
Build apache again and install the RPM and the mod_rewrite.so should be in the modules folder after it finished installing.
Options and modules available to compile on Apache:
http://httpd.apache.org/docs/2.2/programs/configure.html
The other thing you could probably do would be to install Apache using yum install httpd on a test system and grab the mod_rewrite.so file from the installation, save and copy to the modules folder on the system you're trying to get working. This would be my last resort method..
Without more information on what you have installed:
rpm -qi httpd
it hard to tell what would work best for your situation.

How to setup php-fpm on CentOS 7?

There are a lot of guides out there about setup php-fpm for Apache on CentOS 5x or 6x but none of them are working on Centos 7. I searched for days but can't find any solution.
yum install php-fpm
This command succesfully working.
But then i stuck with this line:
yum install mod_fastcgi
The error is "There is no package as mod_fastcgi"
Is there any mod_fastcgi module compatible with CentOS 7? If so, how can i complete php-fpm setup? Please guide me.
My server have some trouble about memory usage. So i have to optimize Apache. Here is my "top" result.
Deploy PHP with FastCGI
If you are using PHP code with your application, you will need to implement “PHP-FastCGI” in order to allow Nginx to properly handle and parse PHP code. You can install this via YUM from the EPEL repository that was previously installed:
yum install php-cli php spawn-fcgi

SVN modules for Apache 2.4.2 HTTP server

Which SVN binaries support Apache 2.4.2 HTTP server?
Because I got an error on loading modules for SVN modules such as mod_dav_svn.so and mod_authz_svn.so.
Currently I am using Apache 2.4.2 with SVN 1.7.6 modules.
I managed to get it working on Windows with the binaries from Apache Haus:
https://www.apachehaus.com/cgi-bin/download.plx#MODULES24
Anyway, the error could be because of a missing library in the Apache bin folder.
You may try:
yum install mod24_dav_svn
See forum post mod_dav_svn for apache 2.4.