Hosting Cpanel

Deploying Seme Framework into hosting with Cpanel are the most manual task to do but easy to understand. This process will be splited into 3 steps there is:

Gettings Ready

On this step will explained about preparing your development files and directory using Seme Framework by compressing it into a single file archive. This step will be differents according to OS that you used it for. The main goals of this step is, compressing the files and directories inside your project into a single file archive like .zip or .tar. Because, Cpanel can only extract .zip or .tar and for compacting file upload process.

Compress File on Windows using 7-Zip

According to this issue , You will have to install 7-Zip before you can achieve this step. Or you can skip, if you have already know how to compress the file and directory using 7-zip or other tools. Here is the example for compress file and directory using CMD and 7-Zip.

# on this example
#  the Seme Framework located at
#    D:\XAMPP\htdocs\seme_framework
#  And, the 7-zip located at
#    C:\Program Files (x86)\7-Zip\7z.exe

# first change drive letter where is your Seme Framework are installed
D:

# then change directory to your Seme Framework working directory
cd \XAMPP\htdocs\seme_framework

# now compressing the Seme Framework files and directories
"C:\Program Files (x86)\7-Zip\7z.exe" v4.zip *

# this command will produce zip file at
#   D:\XAMPP\htdocs\seme_framework\v4.zip

Compress File on Mac

Here is the example for compress file and directory using terminal.

# on this example
#  the Seme Framework located at
#    /Applications/XAMPP/htdocs/seme_framework

# first change directory to your Seme Framework working directory
cd /Applications/XAMPP/htdocs/seme_framework

# now compressing the Seme Framework files and directories
zip -r9 --exclude="*.git" --exclude="v4.zip" --exclude="*node_modules*" v4.zip .
# at the end of command contain dot (.) dont missed it
#   will produce zip file on
#     /Applications/XAMPP/htdocs/seme_framework/v4.zip

Compress File on Linux

Here is the example for compress file and directory using terminal.

# on this example
#  the Seme Framework located at
#    /opt/lampp/htdocs/seme_framework

# first change directory to your Seme Framework working directory
cd /opt/lampp/htdocs/seme_framework

# now compressing the Seme Framework files and directories
zip -r9 --exclude="*.git" --exclude="v4.zip" --exclude="*node_modules*" v4.zip .
# at the end of command contain dot (.) dont missed it
#   will produce zip file on
#     /opt/lampp/htdocs/seme_framework/v4.zip

Uploading to Cpanel

The second step it is uploading the compressed file to your hosting by using cpanel

Login into cpanel

Open your browser like chrome, firefox, safari or edge and then open your cpanel URL. The URL usually is the domain name with port 2083, example: https://example.com:2083. If you do not know the Cpanel URL please contact your hosting provider.

Select Menu File Manager

After logged into Cpanel, the main page will show up. Find the File Manager menu and then click on it.

Select Public HTML Directory on File Manager

The public_html directory usually readable from web server. This configuration also may vary between hosting provider. And then click on public_html.

After inside on public_html directory, click on Upload menu, located at middle top page.

Upload the file

Click on select file button to browse your file that generated form step 1. Or just drag and drop the file onto this browser. The uploading process may take a times, you have to wait until it is done.

Extract From Context Menu

After upload process finished, close the File Upload window and then back to file manager and refresh the browser. You will see a new file that we uploaded before, right click on it and then the contextual menu will show up. Choose extract from the menu for extracting the file archive.

Extract Target Location

Please input the target location for extracting this archive. Usually the target location is public_html.

Extracted

After extracted the file archive, you will see the new list of files and directories. Also this indicated this step has been done.

Importing The Database

For importing the database, you have to export the development database first. If you do not know how to backup database into SQL file, you can google it first :).

Cpanel Database Wizard

For new Cpanel account, you have to follow the database wizard for database creation with database user also its privileges. And the after that, import the SQL by using PhpMyAdmin from Cpanel.