# Installation CMS

## **Download CMS Full Form from PHPFast**

1. Visit the official **PHPFast** page at <https://cmsfullform.com/download> or the source to download the CMS Full Form source code.
2. Download the latest version of **CMS Full Form** (in .zip or .tar.gz format)
3. **Extract** the file and check that the files are extracted into the correct directory.

***

## Install CMS Full Form

* After successfully installing and extracting the files, place the extracted files into your **public** folder.&#x20;
* Create new folder and name `themes` in the `root` folder, copy folder `default` from `application/views/default` to `themes`.
* Change the configuration in `application/Config/Config.php`:

```php
'theme' => [
        'theme_path' => 'themes',
        'theme_name' => 'default'
    ]
```

* Then, navigate to the following URL: `http://yourdomain.com/install`

{% hint style="warning" %}
Note

Users are free to rename the **themes** folder to suit their preferences. However, ensure that you update the `theme_path` in `application/Config/Config.php` to match the new folder name. This ensures that the CMS correctly locates and applies your chosen theme.
{% endhint %}

Follow these detailed steps to ensure a successful installation:

***

<figure><img src="/files/HXwflNQhB8ZxuJF0jYR3" alt=""><figcaption></figcaption></figure>

### Step 1: Database Configuration

1. **Enter Database Information:**
   * **Database Host:** Enter the host name (e.g., localhost).
   * **Database Name:** Enter the name of the database you wish to use.
   * **Database Username:** Enter the database username.
   * **Database Password:** Enter the corresponding password.
2. **Test Connection:**
   * Click the **Test Connection** button to verify that the information you entered is correct.
   * If the connection is successful, the button to proceed to the next step will be activated.
   * If the connection fails, recheck your information and try again.
3. **Proceed to the Next Step:**
   * Once the connection is successful, click the **Next** button to continue.

***

<figure><img src="/files/0WdVHeaSWrWxsCDNV49j" alt=""><figcaption></figcaption></figure>

### Step 2: Website Configuration

1. **Enter Website Information:**
   * **Brand Website:** Enter the website’s brand name or title.
   * **Website URL:** Enter the full website URL (e.g., `http://yourdomain.com`).
   * **Site Email:** Enter the website email for notifications and contact purposes.
   * **Theme:** Select your desired theme from the list of available themes (this will determine your website’s appearance).
2. **Save Website Configuration:**
   * After filling in all the required fields, click **Next** to proceed to the next step.

***

<figure><img src="/files/XTvaTQb8gz0tmgL3VPtN" alt=""><figcaption></figcaption></figure>

### Step 3: Admin Account & Advanced Configuration

1. **Set Up the Admin Account:**
   * **Admin Username:** Enter the username for the admin account.
   * **Admin Email:** Enter the admin’s email address.
   * **Admin Password:** Enter a secure password for the admin account.
2. **Mail Configuration:**
   * **SMTP Host:** Enter the SMTP server address (e.g., smtp.yourdomain.com).
   * **SMTP Port:** Enter the SMTP port number (e.g., 587 or 465).
   * **SMTP Username:** Enter the SMTP account username.
   * **SMTP Password:** Enter the SMTP account password.
   * **Purpose***:* These settings allow the system to send notifications, password recovery emails, and other related functions.
   * **Test Mail**: Click the **Test Mail** button to verify that the information you entered is correct.
3. **Files Configuration:**
   * **File Storage Path:** Enter the server path where uploaded files will be stored (e.g., `/public/uploads`).
   * **Allowed File Formats:** List the allowed file formats (e.g., jpg, png, pdf, docx, etc.).
   * **File Size Limit:** Specify the maximum allowed file size (e.g., 2MB or 5MB).
   * **Purpose***:* This configuration ensures that file uploads comply with the specified format and size requirements.
4. **Save Admin & Advanced Settings:**
   * After entering all the required information, click **Next** to move to the final step.

***

<figure><img src="/files/KutOoydcIN4CfaFF3vtz" alt=""><figcaption></figcaption></figure>

### Step 4: Roles Configuration

1. **Configure User Roles:**
   * Confirm that the default Admin account you created has full access to all CMS Full Form functionalities.
   * If desired, create additional roles for other users with specific permissions.
   * A list of available permissions will be displayed, and you can adjust them as needed.
2. **Complete Installation:**
   * After reviewing and confirming all settings and permissions, click **Install** to complete the installation process.

{% hint style="warning" %}
Important

After successful installation, the system will automatically delete the **install.php** file. Please verify that this file has indeed been removed to ensure security. Once confirmed, you may choose to rename the newly created folder or leave it as is—depending on your preference. Be sure to update the configuration file accordingly so that it accurately reflects your system's folder structure and settings.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cmsfullform.com/cms/install.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
