Installation doesn't work

Issue #160 new
Fribb created an issue

I spend two days now to figure out how to install the Atarashii API

I tried the PHP included web server which started but couldn't access the files. I tried vagrant but while starting the VM it timed out. I tried setting it up manually with Nginx and Symfony, at least that starts and I can access the websites, however, whenever I try to access the app_dev.php my browser, even though it seems correctly configured, downloads instead of executes the PHP files.

I don't know what I'm doing wrong since I can't really check how it actually should behave.

It would be good if you could expand the "Deploying On a Web Server" section a bit or provide a working vagrant/docker build.

Comments (5)

  1. Michael Johnson

    The issue with deployment is that there isn't really a standard way to configure or deploy the project as each web server type can require a different configuration.

    The first thing to try is running locally with the built-in server. If that works properly, then it's down to the configuration of the actual web server. Have you been able to get that part working?

    As for Docker or Vagrant, there aren't any plans to provide a Docker build at this time. MAL is actually working on an updated API that will cover everything this one can do eventually. For Vagrant, check docs/VAGRANT.md.

  2. Fribb reporter

    Well, the problem is that I tried all the things as described in my initial post. Locally, couldn't access the files, vagrant, VM timed out when starting NGinx and Symfony, only downloads the PHP files instead of executing even though I should have configured it correctly.

    While I do know that MAL is working on an updated API the problem with that is that they said that for years, I wrote my own a few years back to offer a backend to my own project but this was quick and dirty and while it still works I can't maintain or expand it anymore because of time restrictions.

    Your API looks great and I want to use it however for that I would need to get it running first, which I can't because there is either contradictory information or my ability to find what is wrong.

  3. Michael Johnson

    They actually are working on an updated API. It's in limited private access right now as it is developed. It may still be a bit before it's available for wider use.

    Anyway, make sure you're using the develop branch. The master branch is outdated and I'll probably be merging develop into it soon. The Vagrant configuration and setup should work on that. For setting up under NGINX, check out this documentation. It's referenced in the updated install doc in the develop branch.

  4. Fribb reporter

    It is about time that they finally do that.

    I actually got it working after spending half a day on it again. The first mistake I made was I took the installation and configuration part too literal. I had to use

    php app/console server:run 0.0.0.0:8080
    

    for it to work.

    Next thing I tried was to get it working with a docker container (because this was my goal from the start) and it was "quite easy" as well

    I took the basis from here, removed the MYSQL and elk part and set the folder of the atarashii API as Symfony app path (in the .env file). let it spin up and set the cache permissions and it works.

    Unfortunately, I can't install docker on my productive system because of an error I don't know how to fix yet but good to know that I could get it running.

  5. Fribb reporter

    Okay, I tried Vagrant again:

    I used Vagrant 1.8.1 and VirtualBox 5.0.40_Ubuntur115130 on Ubuntu. I started the virtual machine with vagrant up e17 and it downloads the virtual machine and tries to start them, but after waiting for it to boot there is a timeout, the virtual machine is running but not responding. Even when I try to ssh into it says "connection reset by peer"

    The same is the case with the el6 virtual machine.

  6. Log in to comment