Skip to content

Instantly share code, notes, and snippets.

@seancolsen
Created July 23, 2017 22:35
Show Gist options
  • Save seancolsen/db4732098909914f7423ab6cf0faea1b to your computer and use it in GitHub Desktop.
Save seancolsen/db4732098909914f7423ab6cf0faea1b to your computer and use it in GitHub Desktop.
Create test application
Create data directory: /home/sean/.amp/canary/data/kMPtKRrAp5ugpMRqFeSRQ0OP46UJfD9p
AMP_URL='http://localhost:7979'
AMP_ROOT='/home/sean/.amp/canary'
AMP_DB_DSN='mysql://canary_9e1ct:[email protected]:3306/canary_9e1ct?new_link=true'
AMP_DB_USER='canary_9e1ct'
AMP_DB_PASS='daNfLSMv1DRlh8Rx'
AMP_DB_HOST='127.0.0.1'
AMP_DB_PORT='3306'
AMP_DB_NAME='canary_9e1ct'
AMP_DB_ARGS='--defaults-file='\''/home/sean/.amp/my.cnf.d/my.cnf-7e8a4121c4e337a292f2da4b371a8756'\'' canary_9e1ct'
Connect to test application
Expect response: "response-code-q805qfPkTz"
Warning: file_get_contents(http://localhost:7979/index.php): failed to open stream: Connection refused in phar:///home/sean/buildkit/bin/amp/src/Amp/Command/TestCommand.php on line 163
Call Stack:
0.0001 361952 1. {main}() /home/sean/buildkit/bin/amp:0
0.0041 551632 2. require('phar:///home/sean/buildkit/bin/amp/bin/amp') /home/sean/buildkit/bin/amp:10
0.0061 852832 3. Amp\Application::main() phar:///home/sean/buildkit/bin/amp/bin/amp:18
0.0373 3090872 4. Symfony\Component\Console\Application->run() phar:///home/sean/buildkit/bin/amp/src/Amp/Application.php:59
0.0374 3094008 5. Symfony\Component\Console\Application->doRun() phar:///home/sean/buildkit/bin/amp/vendor/symfony/console/Symfony/Component/Console/Application.php:124
0.0375 3094008 6. Symfony\Component\Console\Application->doRunCommand() phar:///home/sean/buildkit/bin/amp/vendor/symfony/console/Symfony/Component/Console/Application.php:193
0.0375 3092640 7. Symfony\Component\Console\Command\Command->run() phar:///home/sean/buildkit/bin/amp/vendor/symfony/console/Symfony/Component/Console/Application.php:889
0.0376 3094200 8. Amp\Command\TestCommand->execute() phar:///home/sean/buildkit/bin/amp/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:252
1.1708 3739936 9. Amp\Command\TestCommand->doPost() phar:///home/sean/buildkit/bin/amp/src/Amp/Command/TestCommand.php:77
1.1709 3741880 10. file_get_contents() phar:///home/sean/buildkit/bin/amp/src/Amp/Command/TestCommand.php:163
Received incorrect response: ""
Tips for common issues:
 - (Re)run "amp config"
 - Double-check the httpd_type (apache24) along with any displayed instructions.
 - Double-check the httpd_restart_command.
 - (Re)run "amp test"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment