jmarantz commented on issue #1763: Ubuntu 16.04  : make apache_install_conf 
fails
URL: 
https://github.com/apache/incubator-pagespeed-mod/issues/1763#issuecomment-394223694
 
 
   But in any case this bug isn't about MapProxyDomain; it's about building 
from source.  I think the scripts have gotten a bit stale; here's a patch that 
helped me install on a fresh machine:
   ```
   diff --git a/devel/apache_configure_php5_from_etc_php5.sh 
b/devel/apache_configure_php5_from_etc_php5.sh
   index 9f72d37..a41eb96 100755
   --- a/devel/apache_configure_php5_from_etc_php5.sh
   +++ b/devel/apache_configure_php5_from_etc_php5.sh
   @@ -62,7 +62,7 @@ 
SRC_FCGID_MODULE=${APACHE_ROOT}/modules/mod_fcgid-src_build.so
    
    # Bail if PHP5 isn't installed [where we expect it].
    
   -if [[ ! -r "/usr/bin/php5-cgi" ||
   +if [[ ! -r "/usr/bin/php-cgi7.0" ||
          ! -r "${SRC_FCGID_MODULE}" ]]; then
      echo "*** PHP5 is not installed, or is not installed where we expect" >&2
      echo "    under /etc/php5 and /usr/lib/apache2. Please run:"          >&2
   diff --git a/install/ubuntu/install_required_packages.sh 
b/install/ubuntu/install_required_packages.sh
   index b0101fd..3c428cc 100644
   --- a/install/ubuntu/install_required_packages.sh
   +++ b/install/ubuntu/install_required_packages.sh
   @@ -59,7 +59,7 @@ function first_available_package() {
    install_redis_from_src=false
    if "$additional_dev_packages"; then
      binary_packages+=(memcached autoconf valgrind libev-dev libssl-dev
   -    libpcre3-dev openjdk-7-jre language-pack-tr-base gperf uuid-dev 
pkg-config)
   +    libpcre3-dev openjdk-8-jre language-pack-tr-base gperf uuid-dev 
pkg-config)
    
      if version_compare $(lsb_release -sr) -ge 16.04; then
        binary_packages+=(redis-server)
   ```
   
   I'm not sure if that's the best solution, and in fact tests are still not 
passing due to:
   ```
   TEST: But do proxy content if the Content-Type header is present.
        check_from fgrep -q 200 OK
   FAILed Input: HTTP/1.1 403 Forbidden
   Date: Mon, 04 Jun 2018 00:39:06 GMT
   Server: Apache/2.4.26 (Unix) mod_fcgid/2.3.10-dev OpenSSL/1.0.2g
   Cache-Control: max-age=0, no-cache
   Content-Length: 50
   Content-Type: text/html
   
   Missing Content-Type required for proxied resource
   
/home/josh/dev/incubator-pagespeed-mod/pagespeed/automatic/system_test_helpers.sh:445:
 check_from
   
/home/josh/dev/incubator-pagespeed-mod/pagespeed/apache/system_tests/proxying.sh:54:
 source
   
/home/josh/dev/incubator-pagespeed-mod/pagespeed/automatic/system_test_helpers.sh:249:
 run_test_helper
   
/home/josh/dev/incubator-pagespeed-mod/pagespeed/automatic/system_test_helpers.sh:226:
 run_test
   /home/josh/dev/incubator-pagespeed-mod/pagespeed/apache/system_test.sh:178: 
main
        failure at line 54
   in 'But do proxy content if the Content-Type header is present.'
   FAIL.
   /home/josh/dev/incubator-pagespeed-mod/install/Makefile.tests:115: recipe 
for target 'apache_debug_smoke_test' failed
   make[1]: *** [apache_debug_smoke_test] Error 1
   /home/josh/dev/incubator-pagespeed-mod/install/Makefile.tests:42: recipe for 
target 'apache_vm_system_tests' failed
   make: *** [apache_vm_system_tests] Error 2
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to