Giter Site home page Giter Site logo

amp config failed to read :7979 about amp HOT 6 CLOSED

amp-cli avatar amp-cli commented on July 22, 2024
amp config failed to read :7979

from amp.

Comments (6)

AbdealiLoKo avatar AbdealiLoKo commented on July 22, 2024

Note that I can see canary_81ukt has been created in my phpmyadmin

from amp.

AbdealiLoKo avatar AbdealiLoKo commented on July 22, 2024

@totten This is regarding your comment - #35 (comment)

Would the table canary_81ukt be created if mysql was using local sockets ?

from amp.

totten avatar totten commented on July 22, 2024

A few things:

  1. The general operation of the canary is to setup a demo app (db+http vhost) -- then send an HTTP request. The error indicates that the HTTP request failed (PHP Warning: file_get_contents(http://localhost:7979/index.php): failed to open stream: HTTP request failed! HTTP/1.0 500 Internal Server Error).
  2. Did you try the last suggestion ("Tip: Try running "amp config" and/or restarting the webserver.")? amp test almost always fails on the first try because it doesn't know how to restart apache. But if you alternate the command (amp test => apache2ctl restart => amp test), it should get around this.
  3. If it still doesn't work, inspect the Apache+PHP logs. Worst case, to figure out what's wrong, you can alternately send requests directly to http://localhost:7979/index.php and hack the files in ~/.amp/apache.d and ~/.amp/canary.
  4. Aside: I find worldWritable (aka chmod 1777) to be problematic with many web apps. It'll work for a while, but eventually there are conflicts where the web-user and shell-user fail to manipulate each other's files. I really recommend linuxAcl or osxAcl. (Related: http://civicrm.stackexchange.com/questions/2923/civicrm-does-not-have-permission-to-write-temp-files/2937#2937 )

from amp.

totten avatar totten commented on July 22, 2024

Aside: When I run amp test locally, I'm hitting another error due to the recent change to use amp.phar. Will post when that's patched.

from amp.

totten avatar totten commented on July 22, 2024

OK, the autoloading bug that affects amp test when using PHAR should be fixed (#39). That wasn't your problem, but it touches related code.

from amp.

AbdealiLoKo avatar AbdealiLoKo commented on July 22, 2024

Apparently that is what caused my problem (The logs said so)
Closing this now :)

from amp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.