Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to even install it? #704

Open
StefanQuick opened this issue Aug 16, 2023 · 2 comments
Open

How to even install it? #704

StefanQuick opened this issue Aug 16, 2023 · 2 comments

Comments

@StefanQuick
Copy link

Current Behavior

Trying to surf the ip-adress gives::
( ! ) Warning: require(/code/vendor/autoload.php): failed to open stream: No such file or directory in /code/index.php on line 3

Possible Solution

Steps to Reproduce (for bugs)

  1. First i installed Ubuntu server 22.04 with docker snap

2: then mysql
sudo apt install mysql-server
sudo mysql
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
exit

3: then php
sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php8.1
sudo apt install php8.1-mysql
sudo apt install php8.1-snmp
sudo apt install php8.1-gd

  1. then composer
    sudo apt install php-cli unzip
    curl -sS https://getcomposer.org/installer -o /tmp/composer-setup.php
    HASH=curl -sS https://composer.github.io/installer.sig
    echo $HASH
    php -r "if (hash_file('SHA384', '/tmp/composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
    sudo php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer

  2. then lansuit
    sudo git clone https://github.com/lansuite/lansuite.git
    cd lansuite
    sudo touch ./inc/base/config.php
    sudo chmod a+rw ./inc/base/config.php
    sudo chmod -R a+rwX ./ext_inc/
    sudo cp docker/mysql.env.dist docker/mysql.env
    sudo docker-compose up

  3. Here begins errors
    $ docker-compose run php composer install

  • gives a long list of 39 problems

Context

I want to install it.

Your Environment

  • Version used: Latest
  • Operating System and version: Ubuntu Server 22.04
  • Enabled features: Snap Docker
@andygrunwald
Copy link
Collaborator

Hey @StefanQuick,

Thanks for the ticket. I agree; the setup guide could be more detailed.
A few notes on what I observed in the guide above:

  1. The current Docker-Compose setup is more development focussed, rather than production focussed.
  2. You don't need to install composer itself - We should publish releases (tar.gz files) with all dependencies installed
  3. If you aim to install the master branch - you are heading in the right direction
  4. You aim to install Mysql and PHP on the machine itself, but those are part of the docker-compose setup already

What I want to see (and like heading to):

  1. Release regular "production" builds (tar.gz + production docker images)
  2. Have better documentation on how to set up a development and production setup based on master

@M4LuZ What do you think about preparing the first alpha-Version of a new LanSuite release?

@StefanQuick
Copy link
Author

StefanQuick commented Aug 17, 2023

Hello @andygrunwald, thanks for anwser.

Oh ok, it seems like i misinterpreted the dev and prod releases. I dont even know what direction im heading...
My aim and goal was to get the suit up and running before my lanparty wich is comming in a few weeks :)

But i saw so many active lan-partys using this software, i thought it was stable enough to try it out for myself. Even if i know nothing about linux.

Can i hope for a near-future alpha release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants