EXEC and Virtual Hosts. This document describes how to use Apache's su. EXEC module in order to have virtual hosts running as a unprivileged user. How do I install ModSecurity - an open source intrusion detection and prevention engine for web applications under CentOS / RHEL / Red Hat Enterprise Linux 5.x server? Manual Para Programar En Pic-c Compiler more.
On this page • • • • How To Set Up Apache2 With mod_fcgid And PHP5 On CentOS 5.2 Version 1.0 Author: Falko Timme This tutorial describes how you can install Apache2 with mod_fcgid and PHP5 on CentOS 5.2. Mod_fcgid is a compatible alternative to the older mod_fastcgi. It lets you execute PHP scripts with the permissions of their owners instead of the Apache user. I do not issue any guarantee that this will work for you! 1 Preliminary Note I'm using a CentOS 5.2 server in this tutorial with the hostname server1.example.com and the IP address 192.168.0.100.
I will create two Apache vhosts in this tutorial, www.example1.com and www.example2.com, to demonstrate the usage of mod_fcgid. Before we start, make sure that SELinux is disabled. Run system-config-securitylevel to disable SELinux, and. Setenforce 0.
For the change to take effect. 2 Installing Apache2/mod_fcgi/PHP5 mod_fcgid is not available in the official CentOS repositories, but there's a package for CentOS 5.x in the testing repository. We enable the repository as follows: cd /etc/yum.repos.d/ wget Next we open /etc/yum.repos.d/kbsingh-CentOS-Extras.repo. Vi /etc/yum.repos.d/kbsingh-CentOS-Extras.repo. And set gpgcheck to 0 and enabled to 1 in the [kbs-CentOS-Testing] section: [.] [kbs-CentOS-Testing] name=CentOS.Karan.Org-EL$releasever - Testing gpgcheck=0 gpgkey=enabled=1 baseurl=Afterwards we can install Apache2, mod_fcgid, and PHP5: yum install httpd mod_fcgid php-cli If Apache2 was already installed with PHP5 as an Apache module, disable the PHP5 module now - open /etc/httpd/conf.d/php.conf. Vi /etc/httpd/conf.d/php.conf. And comment out everything in that file: # # PHP is an HTML-embedded scripting language which attempts to make it # easy for developers to write dynamically generated webpages.