# VPS

This document will help you to update your project using VPS.

## Step 1: Access VPS At first

you need to access your VPS. You can use SSH to access your VPS. If you don't have SSH, you can use any other method to access your VPS.

You can use ssh to access your VPS via Putty if you are windows user or use terminal if you are linux user.

    ssh username@ipaddress

then enter your password.

Now upload the files to the directory,

1. Extract the investra package that you downloaded the latest version from CodeCanyon.
2. On that folder, you'll get another file called `core.zip`.
3. Now extract the core.zip file to the core folder.
4. now you'll get the `admin.zip` file on core folder.

Now upload this files to the server,

Upload the admin.zip file to the /var/www/investra/admin directory,

    scp -r core/admin.zip  root@server:/var/www/investra/admin

Now, extract the admin.zip file,

    cd /var/www/investra/admin
    unzip -o admin.zip -d /var/www/investra/admin
    rm -rf admin.zip

Give permission to the admin folder,

    sudo chown -R www-data:www-data /var/www/investra/admin/bootstrap/cache
    sudo chown -R www-data:www-data /var/www/investra/admin/storage

### Step 2: Restart Nginx

Now, restart the Nginx service and PHP-FPM service,

    sudo systemctl restart php8.3-fpm
    sudo systemctl restart nginx

### Step 3: restart supervisor

    sudo supervisorctl reread
    sudo supervisorctl update
    sudo supervisorctl start investra-worker:*

Now you have successfully updated your investra.