FAQ
One of the standard tasks that can be solved by using .htaccess is restricting access to a specific directory on the server. For example, you need to give access to a certain directory to individual visitors, providing them with a unique login and password. In the directory to which we want to restrict access by […]
Sometimes it becomes necessary to deny access to certain files. For example, to configuration files containing access details to databases, interfaces, etc. Let’s say in the config.cfg file you store the login/password for accessing the database. Create a .htaccess file in this directory with the following directives: <FilesMatch “\.(cfg)$”> Order allow,deny Deny from all </FilesMatch> Now, if a visitor […]
The PHP interpreter automatically processes files with the following extensions as PHP scripts: *.php *.phtml That is, files with such extensions will be automatically processed by the web server as PHP scripts. For example, index.php or 123.phtml. The user can independently add their own extensions to process the corresponding files as PHP scripts by placing […]
To work with MySQL, you can use the tools built into the PHP language, which are already supported by the hosting. PHP has a developed and understandable interface to this DBMS, which makes working with MySQL from PHP the simplest and most convenient, especially for novice webmasters and web programmers. # connect to the server […]
Errors in the HTTP protocol are behavior of a web server when, for some reason, it cannot successfully send the requested document to the client. The server communicates the error code to the client in the HTTP header. Each error issued by the web server has a code corresponding to the class of error that […]
Error 500 “Internal Server Error” occurs when the script that you placed on the server cannot be run, when there are errors in the script, or when an incorrect instruction is placed in the .htaccess file. This list of reasons for the 500 error is not exhaustive; there are many more reasons why the 500 […]
This error occurs when the server was unable to complete the request due to denied access to the file. This most often occurs in three cases: There is no index file in the directory (index.html, for example) and viewing the list of files in this directory* or on the entire virtual server is prohibited. You […]
Let’s look at a few of the most popular situations: A-record: it is necessary that the site opens from another server If this needs to be done for the domain specified in the “DNS zones” section, click on it with the mouse and, if there is an entry on the new page: @ IN A <ava.hosting […]
Below are examples of cron jobs. I hope this information will help you better understand how this program works.\ # perform the task once per hour for 0 minutes 0 */1 * * * /home/u12345/script.pl # perform the task every three hours at 0 minutes 0 */3 * * * /home/u12345/script.pl # complete the task […]
Cron configuration occurs through the unix shell. First of all, you need to determine which programs you want to run and find out the full path to them on the server disk. To do this, cd into the directory where the program you are running is located, and find out the full path to that […]