travis
authorgggeek <giunta.gaetano@gmail.com>
Sat, 18 May 2019 10:57:59 +0000 (10:57 +0000)
committergggeek <giunta.gaetano@gmail.com>
Sat, 18 May 2019 10:57:59 +0000 (10:57 +0000)
tests/ci/travis/apache_vhost
tests/ci/travis/setup_apache.sh

index 99c67fa..1130479 100644 (file)
@@ -26,6 +26,9 @@
     Action php5-fcgi /php5-fcgi
     Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
     FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -host 127.0.0.1:9000 -pass-header Authorization
+    <Directory /usr/lib/cgi-bin>
+      Require all granted
+    </Directory>
   </IfModule>
 
 </VirtualHost>
@@ -57,6 +60,9 @@
     Action php5-fcgi /php5-fcgi
     Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
     #FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -host 127.0.0.1:9000 -pass-header Authorization
+    <Directory /usr/lib/cgi-bin>
+      Require all granted
+    </Directory>
   </IfModule>
 
   SSLEngine on
index e199c86..90a207e 100755 (executable)
@@ -1,8 +1,7 @@
 #!/bin/sh
 
-# make sure all files and folders are accisble by Apache
-
-sudo find /home -type d -exec chmod 755 {} \;
+# make sure all files and folders are accessible by Apache
+sudo find $(dirname $(pwd)) -type d -exec chmod 755 {} \;
 sudo find . -type f -name "*.php" -exec chmod 644 {} \;
 
 # set up Apache for php-fpm