The 7 Things I Know About Cyber Security After 25 Years | April 2024
How to add your PHP/MySQL site to Safelly protection
1. How to add your PHP/MySQL
site to protection
Safelly.com
2. This presentation will let you add your PHP-based (with optional MySQL database) site/shop/application
to Safelly protection. If you use WordPress please refer to 2.a. presentation instead.
Whole process will take about 10 - 20 minutes.
3. After you log in to the Safelly app dashboard click "+ Add a site" icon.
4. On the language page you can leave the "PHP…" and "MySQL…".
Click "Begin installation" button.
5. Name your site. This will be visible in the Safelly app. You also need to provide URL to your site.
Click "Next step" when you have finished here.
6. After max. 1 minute you should see longer instruction page.
First step of the installation is to download the script.
7. After max. 1 minute you should see that your browser has downloaded safelly.com-some-random-
letters.php file.
Now you need to upload it to your server. Take a look at next slide.
8. To upload created PHP file to your site you can use for example FTP. Use your favorite FTP client - for
example FileZilla.
Connect with your FTP server.
If you don't know/remember FTP credentials - check the e-mail you got from your service provided when
you bought the server/hosting.
If you still can't find it - contact with your server/hosting provide or with your admin.
9. You need to find public directory of your site (this may be called public_html, public, global or www).
Now just drag newly downloaded PHP file to the main directory of your site in order to upload it.
10. In the third step you need to provide URL to the uploaded file.
This should be simple and the formula is: address of your site (incl. http/s) + slash ("/") + full file name of
downloaded PHP.
Take a look at the example on the image.
Click "Check your connection".
If you have any troubles - just contact your assistant or contact us directly using chat.
11. This information means that hardest part is over. Now it's time for configuration.
Click "Next step" button.
12. You should now see list of the files that will be protected. Make sure that everything that is important for
you is selected. Grayed out name means Safelly won't synchronize this directory or file.
Take a minute or two to review selected files.
13. Then you are sure everything is correct click "Save" button at the bottom of the list.
14. If you don't want to protect the database you can skip this and next steps.
If you want to protect MySQL/MariaDb-based database you need to find database data.
If you don't know/remember database credentials - check the e-mail you got from your service provided
when you bought the server/hosting. You may also find it in config file of your site (it will look like
something you can see on this screenshot).
If you still can't find it - contact with your server/hosting provide, with your admin or programmer.
15. If you already have your database credentials - put them in the last step of configuration.
16. Click "Check connection and save" button to protect your database.
It you don't want to protect database for now - click "Skip" button.
17. You should now see list of the databases and tables that will be protected. Make sure that everything
that is important for you is selected. Grayed out name means Safelly won't synchronize this database or
table.
Take a minute or two to review selected items.
Click "Save" button when you are ready.
18. That's all - your site is properly added and configured.
19. This is very important to check if everything work as expected. Remember, that there are many factors
that affect success.
You have to check after about a week if synchronizations of your site with Safelly are correct.
We highly recommend to test the restoration process. In order to do this you need to prepare manual
backup of your whole site and the data. Then remove it and restore the site using Safelly.
Read next presentation for the steps required to recover your site.