To set up Codono on your server, follow these steps:
- Download the Codono zip file from the provided download link.
- Extract the contents to your preferred directory.
- Open the
pure_config.php
file in a text editor. - Modify the necessary configurations, such as
SITE_URL
,DB_HOST
,DB_NAME
, and others.
- Set the database connection parameters according to your database setup in the
pure_config.php
file.
Example:
const DB_TYPE = 'mysql';
const DB_HOST = '127.0.0.1';
const DB_NAME = 'codonoexchange';
const DB_USER = 'root';
const DB_PWD = '';
const DB_PORT = '3306';
In this step, review and adjust other settings in the pure_config.php
file based on your specific requirements. Here are some of the key settings you might want to consider:
APP_DEMO
: Set this to0
to run Codono in production mode. If set to1
, Codono will run in DEMO mode.MOBILE_CODE
: Set this to0
to enable SMS authentication. Setting it to1
will bypass SMS authentication (risky).MOBILE_LAUNCHED
: Set this to1
if you want to integrate and enable MOBILE APP LOGIN.ENABLE_MOBILE_VERIFY
: Set this to1
to enable mobile verification.M_ONLY
: Set this to0
to allow users without SMS verification to use the system. Setting it to1
will restrict the system to only users with SMS verification.M_DEBUG
: Set this to0
for production mode. If set to1
, it enables site-wide debugging (not recommended for production).ADMIN_DEBUG
: Set this to0
for production mode. If set to1
, it enables full debugging for the admin.DEBUG_WINDOW
: Set this to0
for production mode. If set to1
, it shows a debug window on every page.KYC_OPTIONAL
: Set this to0
to turn on KYC on user signup and make it optional. If set to1
, KYC will be optional during signup.ENFORCE_KYC
: Set this to0
to allow users without KYC to withdraw and trade. If set to1
, only users with KYC will be able to withdraw and trade.ADMIN_KEY
: Set this to alphanumeric minimum 16-32 char for keeping your admin URL secureCRON_KEY
: Set this to alphanumeric minimum 16-20 char for keeping your Cron URL secure
Make sure to save the pure_config.php
file after making the necessary changes.
Example Admin URL after ADMIN_KEY
is set
http://exchange.local/Admin/Login/index/securecode/securekey
Complete Cronlist here
http://exchange.local/Admin/Login/index/securecode/securekey
Note: Review all other settings in the file carefully and update them based on your specific requirements.
Codono supports Redis caching for improved performance. To enable Redis caching, follow these steps:
-
Ensure that you have Redis installed on your server. If not, install Redis by referring to the official Redis documentation for your operating system.
-
In the
pure_config.php
file, set theREDIS_ENABLED
constant to1
to enable Redis caching. -
Set the
REDIS_PASSWORD
constant to your Redis password. If you haven't set a password for your Redis instance, leave the value as an empty string (''
).
// Enable Redis caching (1 for enabled, 0 for disabled)
const REDIS_ENABLED = 1;
// Set this as your Redis password
const REDIS_PASSWORD = 'your_redis_password_here';
- Save the changes to
pure_config.php
.
Codono requires specific PHP extensions to be installed and enabled. Ensure you have the following PHP extensions enabled in your php.ini
configuration file:
extension=exec
extension=openssl
extension=redis
extension=pdo_mysql
extension=mbstring
extension=curl
extension=tokenizer
extension=xml
extension=fileinfo
extension=ctype
extension=json
extension=bcmath
extension=zip
extension=gd
extension=allow_url_fopen
extension=iconv
extension=libsodium
extension=stream_socket_server
Please note that the exact method of enabling PHP extensions may vary depending on your server environment. After making changes to the php.ini
file, remember to restart your web server for the changes to take effect.
-
Extract the contents of the downloaded ZIP file to your web server's document root or the desired directory.
-
Ensure that the web server has proper read and write permissions for the Codono files and directories.
-
Create a new database for Codono in your MariaDB environment. You can do this using a graphical tool like phpMyAdmin or the MySQL command line.
-
Open the
pure_config.php
file and fill in the database connection details:
// Database Type
const DB_TYPE = 'mysql';
// DB Host
const DB_HOST = 'your_database_host'; // Usually 'localhost'
// DB Name
const DB_NAME = 'your_database_name';
// DB User
const DB_USER = 'your_database_username';
// DB PASSWORD
const DB_PWD = 'your_database_password';
// DB PORT (If not sure, leave it as default)
const DB_PORT = '3306';
-
Save the changes to
pure_config.php
. -
Import codonoexchange_x.sql to your_database_name.
You would need to setup coin nodes or thirdparty services to setup wallet system on exchange . Please refer to Docuemntation for Coin nodes setup.
-
Open your web browser and navigate to the URL where you placed the Codono files.
-
Goto exchange.local/install_check.php to see if all requirements are met.
-
Once the installation is complete, remove the
install_check.php
file. -
Setup all crons by visiting this link http://exchange.local/Cronlist/index/securecode/cronkey
-
You can now visit exchange.local
Congratulations! Your Codono exchange is now set up and ready to go. Test various functionalities, including user registration, trading, deposits, withdrawals, and admin features, to ensure everything works as expected.
Please remember to keep your server and Codono installation secure by regularly updating software, using strong passwords, and following other security best practices.