How do I put extracted folder 'Cleanto' on my website root so that the path should look like http://yourwebsite/cleanto/index.php [closed]
As you have not specified which version of Ubuntu you're using, nor whether you are using Apache or nginx, I am going to assume the following:
- you are running Ubuntu Server 18.04 or newer
- you are running Apache 2.4 or newer
- you have a properly functional PHP installation
- your Apache root directory is located in
/var/www/html
and you have not created any virtual hosts - you have
Cleanto.zip
located in your home directory on the server
With this in mind, you can do the following:
- Really ensure you have a proper backup of your site by making a
tar
file:
Note: This will create a file likesudo tar -cvf backup_$(date +\%Y-\%m-\%d).tar /var/www/html/*
backup_2021-12-23.tar
in the current directory. - Create a directory for your appointment booking software:
IMPORTANT: If your Apache root directory is notsudo mkdir /var/www/html/cleanto
html
, be sure to change it to the correct directory. - Move to the new directory and unzip the files:
Note: If thecd /var/www/html/cleanto unzip ~/Cleanto.zip .
Cleanto.zip
file is not located in your home directory (eg:/home/ubuntu/
), then change~
to the full path to the file. - Ensure Apache owns the files:
sudo chown -R www-data:www-data *
- There is no step 4. You're done and can move on to the next part of the installation process.
Note: If you find that unzipping the Cleanto.zip
file has created another cleanto
directory in the directory you just created, move those files to the proper location like this:
sudo cp /var/www/html/cleanto/cleanto/* /var/www/html/cleanto
If any of the five assumptions at the start of this answer are incorrect, then the solution may not work for you. If this is the case, you will want to edit your question to include more specific details about your server and your Apache installation.