- # To enable PHP support in the Apache web server, a new AddType directive
- # must be added to the httpd.conf file.
- if ! grep "application/x-httpd-php" /etc/apache/httpd.conf \
- 1> /dev/null 2>&1; then
- echo "AddType application/x-httpd-php .php" >> /etc/apache/httpd.conf
- fi
+ if [ "x${USE_HTTPD}" = "xyes" ]; then
+ # To enable PHP support in the Apache web server, a new AddType
+ # directive must be added to the httpd.conf file.
+ if ! grep -q "application/x-httpd-php" /etc/httpd/httpd.conf; then
+ echo "AddType application/x-httpd-php .php" >> /etc/httpd/httpd.conf
+ fi
+
+ # Est-ce nécessaire?
+ #cgi.discard_path = 1