continuation
With the file manager you can directly edit small (up to 100 kb) text files. To edit a file, click on the Edit file icon
.
If this icon is missing in the Options field next to the file, it means that the file is too large or it is not a text file.
After clicking on the Edit file icon, a text field with the contents of the file you selected appears in front of you. After editing it, click the "Save" button to save the changes. To cancel editing, click the "Cancel" button. When editing text files with Russian characters, the encoding is automatically detected, so you don't have to manually select the correct encoding. When you save a file, its encoding is saved.
To upload a file to the server, you must first make the directory where
the file will be uploaded current. After that, click the Upload file to directory
icon from the menu.
In the information block that appears at the top, click the "Browse" button, select the file on your local computer and click the "Upload" button. Uploading a file to the server may take a significant amount of time (depending on the size of the file being uploaded and the speed of your computer's Internet connection), so do not interrupt the file upload to the server and wait for the message about the completion of the upload to appear.
When uploading files to the server, they undergo additional processing. Thus, in text files defined by the file manager as cgi scripts, the so-called DOS line breaks are eliminated (recall that in UNIX systems, text file lines are separated by one byte - 0x0D (\n), while in Windows family OS - by two - 0x0A 0x0D (\r\n)). Such "little things" at first glance often become the reason for scripts not working and the occurrence of server error number 500. Also, for all executable files, the execution bit X is set in the access mode (
Since no more than one file can be uploaded to the server at a time, then filling a site containing many small files can turn into a long, boring torment. However, do not despair - to simultaneously upload a large number of files to the server, we recommend that you use the unique unzipping archives feature on the server.
This function is necessary so that after editing a file on the local computer, you can upload it back to the server. Of course, you can use a simple file upload to the server, but for a correct replacement, we recommend using this function, since the name of the file being uploaded is ignored in this case (for example, with the usual method of uploading a file, the names of the old and uploaded files must match up to the case of each letter in the file names).
To replace a file, click on the Replace file icon and use the standard file upload form that appears to upload the file to the server.
Для загрузки файла с сервера на ваш компьютер вам достаточно
кликнуть иконку Загрузить файл с домашнего каталога
.
После этого начнётся процесс загрузки файла на ваш компьютер. Если для закачки
файлов из Интернет вы используете так называемые менеджеры закачек (download
managers), то загрузить любой файл вы можете точно таким же способом, как
обычный файл из Интернет.
Данная функция файл-менеджера была специально реализована для наполнения сайта большим числом файлов. Благодаря этой функции вы одновременно решаете две проблемы: загрузка файлов на сервер происходит всего одним файлом, а его обьём меньше суммарного объема отдельных файлов (для текстовых файлов степень сжатия может достигать 10-ти и более раз!).
Всё что вам необходимо для использования данной функции - это заархивировать одной из программ-архиваторов/упаковщиков файлы, требующие загрузки на сервер и загрузить полученный архив как обычный файл. Файл-менеджером поддерживаются самые популярные архивы в форматах zip, rar, tar, gz, bzip2, tgz и tbz2.
После того, как архив будет загружен на сервер, вам достаточно
нажать на иконку Распаковать архив в текущий каталог
.
Следует помнить, что при разархивировании существующие файлы могут быть
перезаписаны файлами из архива (при условии полного совпадения их имён).
Поэтому прежде чем распаковывать архив убедитесь, что такая ситуация не может
возникнуть, или существующие в вашем домашнем каталоге старые файлы вам не
нужны. Если архив содержит информацию о "дереве файлов" (т. е.
в нём содержатся файлы и каталоги), соответствующие каталоги будут созданы
автоматически.
При разархивировании архивов все файлы из него проходят такую же дополнительную обработку, как и при загрузке файлов. Так что советуем вам хотя бы один раз воспользоваться удобной возможностью разархивирования архивов на сервере.
Создание нового каталога - наверно самое простое действие для
наполнения вашего сайта. Чтобы создать новый каталог, сделайте текущим тот
каталог, в котором нужно создать новый. Затем нажмите на иконке Создать
новый каталог в данном и в появившейся форме введите имя для нового
каталога. После нажатия кнопки "Создать" указанный каталог будет создан! Теперь
вы можете перейти в него для наполнения вашего сайта.
Каждый каталог веб-сервера Apache может иметь так называемый
файл настроек каталога с именем .htaccess. Вы наверно видели подобный
файл среди тех, которые были изначально при заведении ХоОбыкновенногонного
в каталоге htdocs. С помощью данного файла можно реализовать множество
интересных возможностей. Поскольку таких директив множество, начинающим
веб-программистам довольно сложно найти именно ту директиву, которая поможет
им реализовать задуманное. Мы предлагаем простой и удобный редактор настроек
каталога, вызываемый нажатием на иконку Редактировать настройки каталога
(.htaccess) .
Набор поддерживаемых редактором директив невелик, однако среди них мы собрали наиболее часто употребляемые и необходимые. Для тех, кто хочет более детально изучить директивы веб-сервера Apache мы советуем обратиться на официальный сайт http://www.apache.org/. Добавленные вами вручную в файл .htaccess директивы, не поддерживаемые нашим редактором, после редактирования этого файла с помощью редактора настроек каталога не удаляются, а добавляются после стандартных директив после строки
# User defined directivesПо умолчанию, эта строка отсутствует. Однако, если вы всё же решите вручную редактировать файл .htaccess, рекомендуем вам дописать данную строчку (перед вашими директивами), поскольку все коментарии до этой строчки после редактирования с помощью нашего редактора директив автоматически удаляются.
The Apache web server allows you to implement password access to some directories or files of your site (or to the entire site). To implement HTTP authentication, you need to do 2 things: create a so-called password file (.htpasswd), which stores user logins and their encrypted passwords), and also specify in the directory settings file (.htaccess), for which site documents HTTP authentication is required. HTTP authentication itself is performed using the password file .htpasswd - if it contains an authenticated user and their encrypted password matches the one specified in the password file, then this user is allowed access to the document.
HTTP authentication is edited in the file manager by clicking on the icon B>Edit directory access from the menu (this icon appears in all directories except the root and ~/logs). In the HTTP authentication window that appears, you are asked to configure authentication parameters:
Editing the password file .htpasswd itself is done using the corresponding links in the window described above (editing existing files is also possible using the icon in the Options field when viewing the contents of directories). To add a user to the password file .htpasswd, you must enter the login and password (twice) in the appropriate fields.
To delete users from the password file .htpasswd, you must select the logins and click the Delete button.
When you create a hosting account, two directories are automatically created in your home directory: cgi-bin (directory for CGI scripts, it also contains the PHP interpreter) and htdocs. These directories contain example files that allow you to verify that the hosting is working and, if necessary, you can use them as examples for your scripts.
If you accidentally deleted some files that caused the hosting to stop working, you can select the link
"restore original files" (), while in the root directory of your home directory. In the window that appears, you can select the files you want to restore. The "Replace existing files" option deletes existing files when restoring, so use it only if you are confident in your actions.
To the beginning |