Fix php/apache settings in travis

pull/3064/head
Julio 6 years ago
parent 2bf9cf39cc
commit 13df164646
  1. 8
      .travis.yml
  2. 12
      tests/travis/travis-apache

@ -7,6 +7,7 @@ addons:
packages:
- apache2
- postfix
- libapache2-mod-fastcgi
- libappindicator1
- fonts-liberation
@ -90,8 +91,7 @@ before_install:
- sudo chmod +x /home/travis/build
- sudo service apache2 restart
- curl $VHOST_URL
- curl $VHOST_URL/public
- curl $VHOST_URL/public/login
- curl $VHOST_URL/login
- ls -la public/build
script:
@ -101,7 +101,9 @@ script:
- chromedriver --version
- cd tests/behat
- pwd
- travis_wait 45 ../../vendor/behat/behat/bin/behat -v
# - travis_wait 45 ../../vendor/behat/behat/bin/behat -v
- ../../vendor/behat/behat/bin/behat features/accessCompanyReports.feature
- ../../vendor/behat/behat/bin/behat features/adminFillUsers.feature
# - sudo cat /var/log/apache2/$VHOST_URL-access.log

@ -10,4 +10,16 @@
#ErrorLog ${APACHE_LOG_DIR}/%VHOST_URL%-error.log
LogLevel notice
#CustomLog ${APACHE_LOG_DIR}/%VHOST_URL%-access.log combined
<IfModule mod_fastcgi.c>
AddHandler php5-fcgi .php
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
</IfModule>
<Directory /usr/lib/cgi-bin>
Require all granted
</Directory>
</VirtualHost>

Loading…
Cancel
Save