Comments (6)
Note that I can see canary_81ukt
has been created in my phpmyadmin
from amp.
@totten This is regarding your comment - #35 (comment)
Would the table canary_81ukt
be created if mysql was using local sockets ?
from amp.
A few things:
- 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
). - 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. - 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
. - Aside: I find
worldWritable
(akachmod 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 recommendlinuxAcl
orosxAcl
. (Related: http://civicrm.stackexchange.com/questions/2923/civicrm-does-not-have-permission-to-write-temp-files/2937#2937 )
from amp.
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.
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.
Apparently that is what caused my problem (The logs said so)
Closing this now :)
from amp.
Related Issues (20)
- amp config - Better advice on httpd
- Connection must originate on localhost HOT 3
- Nginx support HOT 3
- Check for Apache mod_rewrite HOT 5
- NginX: Restrict access to sensitive directories
- Is app/defaults/services.yml distributed? HOT 1
- Warning: file_get_contents(http://localhost:7979/index.php): failed to open stream: Connection refused HOT 5
- nginx vhost view doesn't detect whether php is running on a port or a socket. HOT 3
- No random characters at the end of database name HOT 9
- amp config fails for invalid mysql config HOT 10
- Update README.md
- permissions: worldWritable not working for unprivileged users HOT 4
- Detect if we're running with encrypted home directories and suggest using AMPHOME instead HOT 3
- Allow longer database names HOT 5
- Make apache vhost config 12 factor friendly HOT 2
- Apache access denied without +x for user home directory
- Explicitly identify common stacks/environments
- Clarity / documentation
- Add ability to pass db user and password when creating (as we do with url etc) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amp.