Github
Download source code from github and set it yourself
Last updated
Download source code from github and set it yourself
Last updated
Before proceeding with the installation and setup of Lekir, ensure you have the following prerequisites installed on your system:
Git: Version control system for managing the Lekir source code.
Apache: Web server software to host the Lekir web application.
MySQL: Relational database management system (RDBMS) for storing Lekir's data.
Development Environment (Choose one):
XAMPP, LAMP, or Laragon (for Windows, Mac): Bundled software packages that include Apache, MySQL, PHP, and other tools necessary for web development.
Text Editor (Choose one):
Nano
Vi or Vim
Notepad or Notepad++
Sublime Text
Visual Studio Code (VSCode)
These prerequisites are essential for setting up and running the Lekir web application on your system.
Open Command Prompt (cmd) and run the following command. Make sure you have Git installed:
Once the download is complete, move the "lekir" folder to your default server root directory, typically named "htdocs" or "www".
Next, locate and edit the configuration file at:
To import the "lekir.sql" file into your MySQL database, you can follow these steps:
Open Command Prompt: Launch Command Prompt (cmd) on your Windows system.
Navigate to MySQL Bin Directory (Optional): If MySQL's bin directory is not in your system's PATH, navigate to it using the cd
command. For example:
Creating database: Once in the MySQL bin directory, execute the following command to create "lekir" database.
Enter your password when prompted and execute the following MySQL commands:
Import SQL File: After creating the database, import the "lekir.sql" file into your database with the following command:
You'll be prompted to enter your password again for exporting the .sql file
By following these steps, you've successfully created the "lekir" database and imported the necessary SQL file. This ensures that the database structure and data required for the Lekir web application are set up correctly.
Access phpMyAdmin: Open your web browser and navigate to http://localhost/phpmyadmin
.
Login to phpMyAdmin: Enter your username and password to log in to phpMyAdmin.
on the to right conner click on New button
Create New Database:
Click on the "New" button located in the top-right corner of the phpMyAdmin interface.
In the dialog box that appears, enter lekir
as the database name and click on the "Create" button to create the new database.
Import SQL File:
After creating the lekir
database, ensure you're still on the lekir
database tab.
Navigate to the "Import" tab located in the top menu.
Click on the "Choose File" button and select the lekir.sql
file from your local system.
Once the file is selected, click on the "Import" button to initiate the import process.
Accessing Lekir Framework:
After the import process is complete, you should have access to the Lekir framework. You can verify this by navigating to the appropriate URL where the Lekir web application is hosted.
By following these steps, you can resolve collation problems that may occur during the import process in phpMyAdmin and successfully access the Lekir framework.
Note: If you encounter collation problems during import, follow these steps to resolve them:
After selecting the lekir.sql
file, scroll down to the "Options" section.
In the "Format" dropdown menu, select "SQL".
In the "Collation of the file" dropdown menu, choose the appropriate collation for your database (e.g., utf8_general_ci).
Click "Go" to proceed with the import.
clone lekir repo into opt folder and move it into server root directory - /var/www/html, then change permission and restart apache services
login into mysql. create lekir database, exit and importing lekir.sql into the newly created database.
After successful, you can visit the page using url
[http://localhost/lekir]
after login, you might notice that some function are disable by default. Usually it
Function display_errors: Disable
Function allow_url_fopen: Disable
to fix this, find you php.ini
linux
Find display_errors
by default it will be display_errors=Off , just change it to display_errors=On
Find allow_url_fopen
by default it will be allow_url_fopen=Off , just change it to allow_url_fopen=On
Windows
find php.ini and edit this file
Find display_errors
by default it will be display_errors=Off , just change it to display_errors=On
Find allow_url_fopen
by default it will be allow_url_fopen=Off , just change it to allow_url_fopen=On
restart your web service, xampp, lamp, laragon, etc
Note: Be cautious not to move the ".git" folder into the server root directory, as it may disclose the source code.