How to install S-Cart


Version 3.x & Pro

- PHP >= 7.1.3
- OpenSSL PHP Extension
- PDO PHP Extension
- Mbstring PHP Extension
- Tokenizer PHP Extension
- XML PHP Extension
- Ctype PHP Extension
- JSON PHP Extension


Step 1: Download full version  here (Included vendor, so no need use composer)
Step 2: Make sure the directories and its subdirectories are writable: storage,  vendor, public/data
Step 3: Create a new database
Step 4: Create virtual host, then point domain to folder s-cart-folder/public
Step 5: Then, access link
(If installing with link "install.php" unsuccessful, you can install it manually below.)
OR manual installation:
- Import file sql database/s-cart.sql to database.
- Rename file .env.example to .env if file .env not exist.
- Genarate API key if APP_KEY is null. Use command "php artisan key:generate"
- Config value of file .env:
APP_DEBUG=false (Set "false" is security)
DB_HOST= (Database host)
DB_PORT=3306 (Database port)
DB_DATABASE=s-cart (Database name)
DB_USERNAME=root (User name use database)
DB_PASSWORD= (Password connect to database)
APP_URL=http://localhost (Your url)
ADMIN_URL=system_admin (Path to admin)
Step 6: NOTE - Please remove or rename file public/install.php so others cannot access it.

You can also install S-cart by using composer or git:

composer create-project lanhktc/s-cart

From git

git clone
Move to folder s-cart, run command "composer install" to install  vendors


- Make sure the directories and its subdirectories are writable: vendor, storage, public/data
- Make sure the virtual host of the website points to the public directory.
- Link admin: your-domain/sc_admin. User/pass default admin/admin.

Setup on server

Please make sure your virtual host points to s-cart's "public" directory. You can refer to the vhost configuration as below:
For websever Nginx
server {
        listen 80;
        root /home/domain/;
        index index.php index.html index.htm;
        location / {
                try_files $uri $uri/ /index.php?$query_string;
        location ~ \.php$ {
                try_files $uri =404;
                fastcgi_split_path_info ^(.+\.php)(/.+)$;
                fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                include fastcgi_params;
For websever Apache

    DocumentRoot "C:\xampp\htdocs\s-cart/public"

Guide for share-host service HERE.