html - Google App Engine and PHP Blank Page after deploying to the cloud. (Ubuntu 14.04 LTS) -
i'm trying make app lets users authenticate before login service. i'm using google app engine , php; application works fine in computer after deploy google cloud, php files doesn't work. have files in root directory.
this app.yaml
application: civil-topic-94103 version: 1 runtime: php55 api_version: 1 handlers: - url: /registration.php* script: registration.php - url: /login.php* script: login.php - url: / static_files: homepage.html upload: homepage.html # access static resources in root directory - url: /(.*) static_files: \1 upload: (.*)
this login.html file:
<html> <head> <title>login</title> </head> <body> <p><b>please login</b></p> <br> <form action="login.php" method="post"> user: <input type="text" name="username"><br> pass: <input type="text" name="password"><br> <input type="submit"> </form> </body> </html>
this login.php testing file:
<?php echo "message"; ?> incorrect username and/or password
this log:
after clicking submit button in login.html, blank page.
does know going on??
ok, how solved problem: took code website https://gist.github.com/darktable/873098
i created directory named "staticfiles" , moved html files it(exept homepage.html).
i changed:
- url: /(.*) static_files: \1 upload: (.*)
with
- url: /(.*\.html) mime_type: text/html static_files: staticfiles/\1 upload: staticfiles/(.*\.html)
Comments
Post a Comment