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

Installer #23

Open
2 of 6 tasks
Arrow768 opened this issue Apr 2, 2015 · 11 comments
Open
2 of 6 tasks

Installer #23

Arrow768 opened this issue Apr 2, 2015 · 11 comments
Assignees
Labels

Comments

@Arrow768
Copy link
Member

Arrow768 commented Apr 2, 2015

Intro

Add a installer to the Webpanel, that helps with the initial setup of the WebPanel and the Store Plugin

It should check if:

  • The requirements are fulfilled
  • The chmod is set correctly (uploads folder, settings folder)
  • The webpanel db exists and import the db if it doesnt
    • It imports the webpanel db without checking first if its already imported.
    • It doesnt matter because it just drops the webpanel tables and reimports them afterwards if they already exist
  • The store database exists and inform the user if it doesnt
  • Force a change of the admin password
    • This could be resolved via a check in the authcontroller for the password: password
  • It should create a INSTALLED file when the installation is finished and allow only another run if the file is deleted
    • The database.php is used for that

The following procedure has been suggested by @Drixevel :

  • Download/Install webpanel onto a webserver and go through an installation setup similar to forum softwares.
  • Install the SQL database entries from there then offer basic instructions on where to install the store main plugin modules & item modules, etc.
  • Then they download the plugins from there and install each of those on the servers and you give them an example database config entry they can add to their database.cfg files similar to Sourcebans and how it does it.

Solves #16

@Arrow768 Arrow768 self-assigned this Apr 2, 2015
@Shigbeard
Copy link

By requirements, you do also mean ensuring the software isn't already installed?

Security, ofc.

@Arrow768
Copy link
Member Author

Arrow768 commented Apr 2, 2015

By requirements, I mean the requirements listed in the Wiki

The first version of the installer is only intendet for the initial setup.
Updating might be covered by #25

@Shigbeard
Copy link

Shigbeard commented Apr 2, 2015 via email

@Arrow768
Copy link
Member Author

Arrow768 commented Jul 4, 2015

A installer for the old webpanel is unlikely to happen.
The new webpanel can be installed by running 3 cli commands and editing a config file

@Arrow768 Arrow768 closed this as completed Jul 4, 2015
@Shigbeard
Copy link

Shigbeard commented Jul 4, 2015 via email

@Arrow768
Copy link
Member Author

Arrow768 commented Jul 4, 2015

It already works in the new webpanel.
So I dont see a need to add a installer in the old webpanel (which wont be further developed when the new webpanel is stable).
But if you create a merge request with a working installer, I am happy to merge it.

@Shigbeard
Copy link

Shigbeard commented Jul 4, 2015 via email

@Arrow768
Copy link
Member Author

Arrow768 commented Jul 4, 2015

Feel free to create / modify the files / folders you need to implement the installer.

About the authorized user:
I think it would be enough if the first question of the installer is the question for the db credentials.
Only the admin can answer the question.
Once it installer is finished it should lock itself out.
(Maybe by creating a installed file thats checked for when running the installer ?)

@Arrow768 Arrow768 reopened this Jul 4, 2015
@Shigbeard
Copy link

Hmm, ok. An installed file sounds fine.

@Shigbeard
Copy link

Did a bit of thinking about that installed file. I could get away with just using the database.php file that you are supposed to rename from database.sample.php. The implication there is that by having that file there, the software is considered "installed" and ready for use. If for some reason you need to re-install, deleting or editing that file would logically be involved in that process.

Plus the installer would create it from the sample file anyway.

@Shigbeard
Copy link

DONE

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

No branches or pull requests

2 participants