Skip to content

Installation

requirements

  • XAMPP installed on your computer
  • PHP 8.0 and latest

install locally

Steps

  1. Download and install XAMPP.
  2. Start the Apache and MySQL servers.
  3. Create a link to your project in the hosts file.
  4. Access your project in a web browser.

Download and install XAMPP

  1. Go to the XAMPP website and download the latest version of XAMPP for your operating system.
  2. Run the installer and follow the on-screen instructions.

Start the Apache and MySQL servers

  1. Open the XAMPP Control Panel.
  2. Click the Start buttons for the Apache and MySQL modules. A starry night sky.
  1. Open the hosts file in a text editor.
C:\Windows\system32\drivers\etc\hosts

you can open it using vscode or any text editor

  1. Add a new line with the following format:
127.0.0.1   project-name.test

For example, if your project is called “menu,” you would add the following line to the hosts file:

127.0.0.1   menu.test
  1. open file:
C:\xampp\apache\conf\extra\httpd-vhosts.conf

and add content end file

<VirtualHost menu.test:80>
    ServerAdmin webmaster@menu.test
    DocumentRoot "C:/xampp/htdocs/menu"
    ServerName www.menu.test
    ServerAlias menu.test

    <Directory "C:/xampp/htdocs/menu">
            Options Indexes FollowSymLinks Includes ExecCGI
            AllowOverride All
            Require all granted
        </Directory>

    ErrorLog "logs/menu.local-error.log"
    CustomLog "logs/menu.local-access.log" common
</VirtualHost>

save it and close it

  1. open Xampp Control Panel and restart apache & mysql

  2. open browser and write menu.test and visit it

Install CPanel

  • Login to cPanel and navigate to File Manager

  • Do not develop in a subfolder. Create a subdomain or use it in the main domain.

  • Click “Upload”

  • Select your zip file.

  • Wait for the upload to complete.

  • Unzip the uploaded file.

  • Go back to cPanel.

  • Navigate to Databases.

Create Database

Before installing, you will need to create a new database. If you already know how to do this or have already created one, skip to the next step.Please use empty database. In most cases you should be able to create a database from your cpanel.

Useful resources

MySQL Database Wizard

  1. Login to cPanel with the cPanel username and password.
  2. Click on the “MySQL Databases” icon.
  3. In the “Create New Database” section, enter a database name and click Create Database.

Create a User

  1. From the “MySQL Databases” page, scroll down to “MySQL Users”.
  2. Enter a MySQL username and password, click “Create User”.
  1. From the “MySQL Databases” page, scroll down to the “Add User To Database” section.
  2. Select your new user and new database and click Add.
  3. Put a check next to “ALL PRIVILEGES,” or, optionally, select individual privileges.
  4. Click “Make Changes”.

Manage User Privileges

  1. From the “MySQL Databases” page, scroll to the “Current Databases” section.
  2. Find the database you’d like to modify.
  3. In the “Privileged Users” section of the database entry, click the name of the user you’d like to modify.
  4. Put a check next to “ALL PRIVILEGES,” or, optionally, select individual privileges.
  5. Click “Make Changes”.