X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage5%2Fpkg%2Fphp;h=60ed4408d4cb7b9f942a602df4b6e2673349a3b8;hb=09e97cf36729cd6a72ed87f97b921c2d17086b2c;hp=c23ba587a7bdb93bb09e62638a7b0f9adad54573;hpb=305cb288ba63239087a799237e8a3bd680b09b22;p=hvlinux.git diff --git a/stage5/pkg/php b/stage5/pkg/php index c23ba58..60ed440 100644 --- a/stage5/pkg/php +++ b/stage5/pkg/php @@ -43,17 +43,19 @@ hvbuild_post() fi cp ${LFS_TMP}/${PACKAGE}/php.ini-production /etc/php.ini - # 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 - 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 + # Est-ce nécessaire? + #cgi.discard_path = 1 - if ! grep -q "DirectoryIndex" /etc/apache/httpd.conf | grep "index.php"; then - sed -i -e "s!\(^\s*DirectoryIndex index.html.*\)!\1 index.php!g" \ - /etc/apache/httpd.conf + 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/httpd/httpd.conf + fi fi }