-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Welcome to the enlight-webfront wiki! The server software is mostly meant for running on our own server which is tied to an actual physical fountain, so these instructions are catered to members curious as to the set-up process (or disaster recovery if the server bites the dust - no worries, just re-download the source)! This wiki won't do much justice by way of explaining what Enlight actually is - for that, you should check out our blog - this is simply a down and dirty overview of the Webfront code.
Once you've downloaded the code (hopefully by forking it locally), you need to put it somewhere where your PHP service can see it (so you can test it by going to localhost/wherever). This is usually /var/www/someDirectory in many Unix distributions. If there's a directory called htdocs you'll want to use that. If you're using Windows, try out XAMPP (it's a pretty sketchy looking site but it's legit), which will place its web directory in C:/XAMPP/htdocs (I think). You'll also need to run a MySQL server, and import the most recent database file from /sql.
There are some common things that we will want to do with the Webfront, so these documents should outline how to go about doing those in the conventional/best manner.
An important distinction to make is between the testing environment and the distribution environment. Despite how amazing open-source is, certain things do need to be kept private (our site-wide salt value, the production database connection password, etc.) and as such any source files here on GitHub will contain dummy values for use in testing. In particular, here are the dummy values used with their respective files:
Site-wide salt (for user passwords) - in /SHADOW/SALT: lVZZ`F}x(`,6/GHi##7$]c.w=dm:pR3c10u5AnDfR4g113tH1ng5n3Ed5p3c141H4nD1InG:kr>M@v|pkL{P)50?V}QMf+yKg=vz6eX3L**
MySQL database password - in /php/startDatabase.php: ydvCN3q8z7qUFc7X
Again, these are the values that you need to change before deploying to production. These values are fine though for testing, which is why they're here by default.
Another small thing that may need to change before production is the MySQL database host (the default is localhost) which is stored in /php/session.php.
Fore more information about that, see the page on the MySQL configuration.