|
Learning with Texts - Fork 2.5.3-fork
Learn foreign languages with texts
|
Let's install the LWT server. LWT uses a client-server architecture, which means it will run in your browser as a classical website. You can use any computer as the server, here are some ways to do it.
Two main softwares can be used to set up a local server on your computer: XAMPP and EasyPHP. We recommand XAMPP because it supports higher PHP version, but feel free to use any softare you like.
Get the latest GitHub release, unzip it.
You can also try to download the latest stable version if you want the cutting-edge updates (that may include some bugs)
If you start up Windows, you must repeat steps 4 and 5.
If you want to start "XAMPP Control Panel" every time you start Windows and to avoid Step 4.1, put a "XAMPP Control Panel" link to "C:\xampp\xampp-control.exe" into "C:\Users\(YourUID)\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup". To autostart also the Apache and MySQL modules, please open "Config" within the XAMPP Control Panel and check the two checkboxes.
Hint: To fix a "XAMPP Control Panel" error "Xampp-control.ini Access is denied", please read and do the instructions in https://www.codermen.com/fix-xampp-server-error-xampp-control-ini-access-is-denied/
Now you must only do step 4.2 to start LWT.
Get the latest GitHub release, unzip it.
You can also try to download the latest stable version if you want the cutting-edge updates (that may include some bugs)
If you start up EasyPHP, you must repeat step 5.1 and 5.2.
If you want to start EasyPHP every time you start Windows and avoid step 5.1, put an EasyPHP link into "C:\Users\(YourUID)\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup".
Now you must only do step 5.2 to start LWT.
This section may be obsolete! Your help is welcome!
Get the latest GitHub release, unzip it.
You can also try to download the latest stable version if you want the cutting-edge updates (that may include some bugs)
/Applications/MAMP/htdocs/lwt. Rename the file connect_mamp.inc.php to connect.inc.php.MAMP.app in /Applications/MAMP. Accept the messages from the firewall. Apache and MySQL start automatically.If you want to use LWT again, just do steps 6 and 7. The local webserver (MAMP) will be automatically stopped by quitting the MAMP application.
The following instruction were tested on Raspbian Stretch.
Installation of LAMP:
/etc/php/{{desired PHP version}}/{{PHP type}}/)sudo nano php.ini.extension=mbstring and extension=mysqli.Set MySQL root Password to "abcxyz"
```bash sudo mysql ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'abcxyz'; FLUSH privileges; QUIT; ```
Check MySQL access (if you see the MySQL prompt mysql> after the first command, everything is OK):
```bash mysql -u root -p abcxyz QUIT; ```
Get the latest GitHub release.
You can also try to download the latest stable version if you want the cutting-edge updates (that may include some bugs)
$passwd = "";. Change it to $passwd = "abcxyz";. Save the edited file connect.inc.php.Open a Terminal window, type and execute the following commands:
If you want to use LWT again, just do step 7.
Currently being repaired! See issue #37 for more details!
It is the easiest way to install LWT, but the drawback is that it will use more or less 1 GB on your system.
If LWT is already downloaded, you only need to build the image by going into the project root folder and run using
By default the server can be accessed on port 8010 (http://localhost:8010).
To remove the created containers run
Otherwise, you can download the official image with
If you have a technical knowledge of how Composer works for dependency management, you may consider using Composer. It is required for contributors only, but advanced users may want to use it as well. The official repository is at https://packagist.org/packages/hugofara/lwt.
Get the latest GitHub release.
You can also try to download the latest stable version if you want the cutting-edge updates (that may include some bugs)
Need more help? You can contact us through GitHub and Discord!