How to 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



Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>