[go: up one dir, main page]

0% found this document useful (0 votes)
3 views12 pages

Backend - Deploy

The document outlines the requirements and steps for deploying the JazakAllah backend using PHP on Cpanel, including the need for PHP version 8.2 and terminal access. It provides detailed instructions on setting up a MySQL database, uploading project files, configuring the .env file, and linking storage. Additionally, it explains how to integrate the backend URL into Android and admin panel code, emphasizing the importance of including '/api' in the URL.

Uploaded by

navagio.contact
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views12 pages

Backend - Deploy

The document outlines the requirements and steps for deploying the JazakAllah backend using PHP on Cpanel, including the need for PHP version 8.2 and terminal access. It provides detailed instructions on setting up a MySQL database, uploading project files, configuring the .env file, and linking storage. Additionally, it explains how to integrate the backend URL into Android and admin panel code, emphasizing the importance of including '/api' in the URL.

Uploaded by

navagio.contact
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

JazakAllah

Backend
Requirements
The backend of JazakAllah is developed in Php for the simplicity of
deploying the backend on any Cpanel. But there are still some
requirements that needs to be fullfilled

Php Version 8.2 Require


Cpanel must have Terminal enabled.

N. B. If all the requirements are met, then you can proceed on deploying
the backend.

If you want to deploy the Backend on VPS, contact with us,


we have a service package for that.

After Opening Cpanel, first you need setup your MySQL Database from main page. Click
MySQL Database Wizard.

Here you need to write the Database Name in the Text field . In this case, I wrote `demo` as a
database name and click on Next Step Button.
Now in the next step you need to create a user associated with the database. In test case I
write `demo` as a user name and a new password. remember databse name, username and
password for project configuration. Now click on the Create User Button.

In this section you need to select ALL PRIVILEGES. It will select all the section. Then you
need to click Next Step Button.
Now you will send to this page and you database are successfully created. Do nothing just
click on the Return Home Link.

Now on the main page Cpanel, You will see below interface. Just click on the File
Manager.
Now you will see below Interface in your public_html directory. Click on the Upload Button.

Now You will See this layout where you need to select the Project file and it will upload.
After Upload Complete. Go back to the public_html page and select the zip file and Extract
it.

After Extract the file. Select .env and edit the File.
.env file will look like this. Write the database creadential that you recently created on your

cpanel to the .env file. Also edit the Image_URL to you domain. Only change the domain just

like Image_URL="https://your-server-domain/../storage/" this.

Now Go back to the main Page and select phpMyAdmin.


In phpMyAdmin you need to configure a new table which credential are matched with the

.env file credential and table name. Now on the Import tab inside the new table. Import the

provided SQL or Database file.

After Successful Import go back to the main Menu and click on Terminal
After Open Terminal. Write `cd public_html` command to go to the public_html directory
and then run `php artisan storage:link` link. After that you will see below image.

Finally, Go back to the main page and click on the Domains section.
Here you can find your main url of the JazakAllah Backend.

Copy this url and paste it on your app and admin website file. Open your Android Studio and

the project. Then open lib>data>utility> urls.dart file and paste your url after

https://YOUR_URL/api or http://YOUR_URL/api



If SSL Certificate is enabled it will be https:// else it will be http://

Do not forget to put “/api” after placing your url.


Similarly, open VS Code and open Admin panel code, open the .env file and paste paste your
url after

https://YOUR_URL/api or http://YOUR_URL/api



If SSL Certificate is enabled it will be https:// else it will be http://

Do not forget to put “/api” after placing your url.

You might also like