Requirements
Apache2 installation with PHP support
Install apache2 with PHP4 or PHP5 support in debian etch
#aptitude install apache2
This will complete the installation
Now you need to install php4 or php5 for apache2 server
For php4 users the following command
#aptitude install php4
For php5 users the following command
#aptitude install php5
Enable mod_php for apache2 server in etch
Use the following commands
For php4 users the following command
#aptitude install libapache2-mod-php4
For php5 users the following command
#aptitude install libapache2-mod-php5
If you install the PHP4 or PHP5 modules for Apache2 then they will automatically enable themselves.If you have any problem you can use the following commands to enable php modules manually.
For php4 users the following command
# a2enmod php4
For php5 users the following command
# a2enmod php5
Install apache2-mpm-itk on Debian
aptitude install apache2-mpm-itk
This will complete the installation.
Configure apache2-mpm-itk in Debain
apache2-mpm-itk is configured on a per-vhost basis, i.e., we don't have to set any global options, and there's only one directive we need to set in a vhost, AssignUserId, which takes two parameters, the user name and the group that the vhost will run as.
In this example we will use the default Debian Apache vhost (you can find its configuration in /etc/apache2/sites-available/default) with the document root /var/www (if you have different vhosts, please adjust this to your situation), and we want this vhost to run as the user web_test and group web.
If the user and group don't already exist, we can create them as follows:
#groupadd web
#useradd -s /bin/false -d /home/web_test -m -g web web_test
Then we open our vhost configuration and add the following lines to it:
<IfModule mpm_itk_module>
AssignUserId web_test web
</IfModule>
For Example
#vi /etc/apache2/sites-available/default
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2′s default start page
# in /apache2-default/, but still have / go to the right place
RedirectMatch ^/$ /apache2-default/
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
<IfModule mpm_itk_module>
AssignUserId web_test web
</IfModule>
</VirtualHost>
Restart Apache server using the following commands
#/etc/init.d/apache2 restart
Incoming search terms:
- apache2-mpm-itk (127)
- apache itk (34)
- apache mpm itk (31)
- apache assignuserid (30)
- mod itk (28)
- mpm_itk_module (25)
- mpm-itk (24)
- mpm itk (23)
- apache2 mpm itk (21)
- ifmodule mpm_itk_module (21)
-
http://www.subjectivereality.org ryan
-
Fredrik
-
http://cracknel.eu.org Cracknel
-
rasheed
-
Demia
