Change Apache config directory to /etc/httpd
[hvlinux.git] / stage5 / pkg / php
index c23ba58..5b34926 100644 (file)
@@ -45,15 +45,15 @@ hvbuild_post()
 
     # 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/apache/httpd.conf; then
-        echo "AddType application/x-httpd-php .php" >> /etc/apache/httpd.conf
+    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
 
-    if ! grep -q "DirectoryIndex" /etc/apache/httpd.conf | grep "index.php"; then
+    if ! grep -q "DirectoryIndex" /etc/httpd/httpd.conf | grep "index.php"; then
         sed -i -e "s!\(^\s*DirectoryIndex index.html.*\)!\1 index.php!g" \
-            /etc/apache/httpd.conf
+            /etc/httpd/httpd.conf
     fi
 }