Posts by TheConsultancy

    I have a local setup that allows us to use a domain in place of a port by pointing our localhost to 127.0.0.1


    Is Perch not compatible with this type of setup?, if not I will amend our docker system for this site to use a port number?

    We are currently doing this on the staging name, I set up the var_dump on a page and the hostname didnt match so we set this up however we saw no change on this.


    Below is a copy of the results:


    array(52) {
    ["PHP_EXTRA_CONFIGURE_ARGS"]=>
    string(77) "--enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi"
    ["HOSTNAME"]=>
    string(44) "mcinnescommunications.echodigitalmedia.co.uk"
    ["PHP_INI_DIR"]=>
    string(18) "/usr/local/etc/php"
    ["HOME"]=>
    string(8) "/var/www"
    ["PHP_LDFLAGS"]=>
    string(34) "-Wl,-O1 -Wl,--hash-style=both -pie"
    ["PHP_CFLAGS"]=>
    string(40) "-fstack-protector-strong -fpic -fpie -O2"
    ["PHP_MD5"]=>
    string(0) ""
    ["PHP_VERSION"]=>
    string(6) "7.1.29"
    ["GPG_KEYS"]=>
    string(122) "A917B1ECDA84AEC2B568FED6F50ABC807BD5DCD0 528995BFEDFBA7191D46839EF9BA0ADA31CBD89E 1729F83938DA44E27BA0F4D3DBDB397470D12172"
    ["PHP_CPPFLAGS"]=>
    string(40) "-fstack-protector-strong -fpic -fpie -O2"
    ["PHP_ASC_URL"]=>
    string(62) "https://www.php.net/get/php-7.1.29.tar.xz.asc/from/this/mirror"
    ["PHP_URL"]=>
    string(58) "https://www.php.net/get/php-7.1.29.tar.xz/from/this/mirror"
    ["PATH"]=>
    string(60) "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
    ["PHPIZE_DEPS"]=>
    string(76) "autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c"
    ["PWD"]=>
    string(8) "/var/www"
    ["PHP_SHA256"]=>
    string(64) "b9a9b094687edc2d9c9553d5531e38e249b569127cf3b32fe1c84280509746fb"
    ["USER"]=>
    string(8) "www-data"
    ["HTTP_COOKIE"]=>
    string(252) "_ga=GA1.3.34154550.1530264162; __zlcmid=nLhTwpHrgKxObV; adiV=31089; _fbp=fb.2.1549271580934.776839055; lc_sso7630051=1558093889143; PHPSESSID=03d30354b225c80d81272e76ea2ec1aa; _hjid=2428cd48-67e5-43ca-b5fa-e982332bea67; _gid=GA1.3.1440309875.1570352666"
    ["HTTP_ACCEPT_LANGUAGE"]=>
    string(14) "en-US,en;q=0.9"
    ["HTTP_ACCEPT_ENCODING"]=>
    string(13) "gzip, deflate"
    ["HTTP_ACCEPT"]=>
    string(118) "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3"
    ["HTTP_USER_AGENT"]=>
    string(120) "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"
    ["HTTP_UPGRADE_INSECURE_REQUESTS"]=>
    string(1) "1"
    ["HTTP_CACHE_CONTROL"]=>
    string(8) "no-cache"
    ["HTTP_PRAGMA"]=>
    string(8) "no-cache"
    ["HTTP_CONNECTION"]=>
    string(10) "keep-alive"
    ["HTTP_HOST"]=>
    string(44) "mcinnescommunications.echodigitalmedia.co.uk"
    ["REDIRECT_STATUS"]=>
    string(3) "200"
    ["SERVER_NAME"]=>
    string(0) ""
    ["SERVER_PORT"]=>
    string(2) "80"
    ["SERVER_ADDR"]=>
    string(10) "172.20.0.5"
    ["REMOTE_PORT"]=>
    string(5) "40308"
    ["REMOTE_ADDR"]=>
    string(10) "172.20.0.1"
    ["SERVER_SOFTWARE"]=>
    string(13) "nginx/1.15.12"
    ["GATEWAY_INTERFACE"]=>
    string(7) "CGI/1.1"
    ["REQUEST_SCHEME"]=>
    string(4) "http"
    ["SERVER_PROTOCOL"]=>
    string(8) "HTTP/1.1"
    ["DOCUMENT_ROOT"]=>
    string(8) "/var/www"
    ["DOCUMENT_URI"]=>
    string(8) "/php.php"
    ["REQUEST_URI"]=>
    string(8) "/php.php"
    ["SCRIPT_NAME"]=>
    string(8) "/php.php"
    ["CONTENT_LENGTH"]=>
    string(0) ""
    ["CONTENT_TYPE"]=>
    string(0) ""
    ["REQUEST_METHOD"]=>
    string(3) "GET"
    ["QUERY_STRING"]=>
    string(0) ""
    ["SCRIPT_FILENAME"]=>
    string(16) "/var/www/php.php"
    ["FCGI_ROLE"]=>
    string(9) "RESPONDER"
    ["PHP_SELF"]=>
    string(8) "/php.php"
    ["REQUEST_TIME_FLOAT"]=>
    float(1570524442.3375)
    ["REQUEST_TIME"]=>
    int(1570524442)
    ["argv"]=>
    array(0) {
    }
    ["argc"]=>
    int(0)
    }

    Thanks for your response.


    The original website was built by another company, when we put it on our servers we had the same login issue.


    I saw people advising that it can be an issue with V2 on newer versions of PHP so a new V3 license was purchased by our client.


    Is there a way i can check that the correct version as been purchased with the Perch License details?

    Hi,


    We are taking control of a site built using Perch and although we have updated the Licence Key to a new one purchased in V3 and the site has been updated we are unable to log in.


    When logging in we get an error that the key isn't valid despite setting up the test environment within the Perch settings (Screenshots attached).


    I am currently using the staging domain, we do get the same error when using the Developmental domain.


    I'm currently running the site locally using a Docker environment.


    Anyone know if there is another setting that may be blocking this?


    Thanks.