Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

CentOS YUM how to install and configure mod_fastcgi after installing Apache2

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly shows you "CentOS YUM install Apache2 after how to install and configure mod_fastcgi", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "CentOS YUM install Apache2 after how to install and configure mod_fastcgi" this article.

Because php php-fpm is compiled and installed, httpd is installed by yum

Yum search mod_fastcgi was not found when installing fastcgi. Then only compile and install mod_fastcgi

Step by step

Cd / usr/local/vipcloud/src/wget http://www.fastcgi.com/dist/mod_fastcgi-current.tar.gztar-zxvf mod_fastcgi-current.tar.gzcd mod_fastcgi-2.4.6more README

Then I found that I needed to see INSTALL.AP2.

Go ahead

More INSTALL.AP2

See

* NIX = $cd $cp Makefile.AP2 Makefile $make $make install If your Apache2 installation isn't in / usr/local/apache2, then set the top_dir variable when running make (or edit the Makefile), e.g. $make top_dir=/opt/httpd/2.0.40 Add an entry to httpd.conf like this: LoadModule fastcgi_module modules/mod_fastcgi.so

Looking at line 7, you need to specify the installation directory for apache2

Since apache is installed by yum, there is no specific installation directory. Think of the directory where module is needed anyway, so set the

Cp Makefile.AP2 Makefilevim Makfiel replaced top_dir= with top_dir= / usr/lib64/httpd

Then make & & make install

Report an error.

It seems that this cannot be done directly.

Du Niang.

What du Niang comes out is the fastcgi installation of compiling and installing apache

Google

Http://www.cyberciti.biz/tips/rhel-centos-fedora-apache2-fastcgi-php-configuration.html

Yum install libtool httpd-devel apr-devel apr

Then install it in make make install.

Touch / var/www/cgi-bin/php.fcgivim / varbind www PHP_CGI=/usr/local/vipcloud/php/bin/php-cgi php installation path PHP_FCGI_CHILDREN=4PHP_FCGI_MAX_REQUESTS=1000### no editing below # export PHP_FCGI_CHILDRENexport PHP_FCGI_ MAX_REQUESTSexec $PHP_CGIcd / etc/httpd/conf.dvim fsatcgi.php.confDirectoryIndex index.html index.shtml index.cgi index.phpAddHandler php5-fcgi .phpAction php5-fcgi / php5-fcgiAlias / php5-fcgi / var/www/cgi-bin/php.fcgiFastCgiExternalServer / var/www/cgi-bin/php.fcgi-idle-timeout 60-host 127.0.0.1 PhpAction 9000-pass-header Authorization

Touch / var/www/html/test.php

Echo "" > test.php

The above is all the contents of the article "how to install and configure Apache2 after CentOS YUM installs mod_fastcgi". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 293

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report