travis
[plcapi.git] / tests / ci / travis / setup_apache.sh
index ee33d94..0ce2f18 100755 (executable)
@@ -1,9 +1,8 @@
 #!/bin/sh
 
-# make sure all files and folders are accisble by Apache
-
-find . -type d -exec chmod 755 {} \;
-#find . -type f -exec chmod 644 {} \;
+# make sure all files and folders are accessible by Apache
+sudo find / -type d -exec chmod 755 {} \;
+sudo find . -type f -name "*.php" -exec chmod 644 {} \;
 
 # set up Apache for php-fpm
 # @see https://github.com/travis-ci/travis-ci.github.com/blob/master/docs/user/languages/php.md#apache--php