Installation
requirements
- XAMPP installed on your computer
- PHP 8.0 and latest
install locally
Steps
- Download and install XAMPP.
- Start the Apache and MySQL servers.
- Create a link to your project in the hosts file.
- Access your project in a web browser.
Download and install XAMPP
- Go to the XAMPP website and download the latest version of XAMPP for your operating system.
- Run the installer and follow the on-screen instructions.
Start the Apache and MySQL servers
- Open the XAMPP Control Panel.
- Click the Start buttons for the Apache and MySQL modules.
Create a link to your project in the hosts file
- Open the hosts file in a text editor.
C:\Windows\system32\drivers\etc\hosts
you can open it using vscode or any text editor
- 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
- 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
-
open Xampp Control Panel and restart apache & mysql
-
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
- Login to cPanel with the cPanel username and password.
- Click on the “MySQL Databases” icon.
- In the “Create New Database” section, enter a database name and click Create Database.
Create a User
- From the “MySQL Databases” page, scroll down to “MySQL Users”.
- Enter a MySQL username and password, click “Create User”.
Link User to Database
- From the “MySQL Databases” page, scroll down to the “Add User To Database” section.
- Select your new user and new database and click Add.
- Put a check next to “ALL PRIVILEGES,” or, optionally, select individual privileges.
- Click “Make Changes”.
Manage User Privileges
- From the “MySQL Databases” page, scroll to the “Current Databases” section.
- Find the database you’d like to modify.
- In the “Privileged Users” section of the database entry, click the name of the user you’d like to modify.
- Put a check next to “ALL PRIVILEGES,” or, optionally, select individual privileges.
- Click “Make Changes”.